- Move libraries into a sub-package of their own.

This commit is contained in:
Petr Machata 2010-01-21 16:14:15 +00:00
parent 6689963599
commit 8c1a39ae06

View File

@ -1,7 +1,7 @@
Summary: A tool for creating scanners (text pattern recognizers) Summary: A tool for creating scanners (text pattern recognizers)
Name: flex Name: flex
Version: 2.5.35 Version: 2.5.35
Release: 8%{?dist} Release: 9%{?dist}
License: BSD License: BSD
Group: Development/Tools Group: Development/Tools
URL: http://flex.sourceforge.net/ URL: http://flex.sourceforge.net/
@ -15,6 +15,14 @@ BuildRequires: gettext bison m4
Requires(post): /sbin/install-info Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info Requires(preun): /sbin/install-info
# We need to pull in the static library package. That's necessary so
# that packages that just do BuildRequires: flex can still use -lfl.
# I suspect that linking to -lfl is actually rare and those (few)
# packages that do use it could be taught to require the sub-package
# explicitly. So at some point in future, this dependency may be
# dropped.
Requires: flex-static = %{version}
%description %description
The flex program generates scanners. Scanners are programs which can The flex program generates scanners. Scanners are programs which can
recognize lexical patterns in text. Flex takes pairs of regular recognize lexical patterns in text. Flex takes pairs of regular
@ -29,6 +37,18 @@ build process.
You should install flex if you are going to use your system for You should install flex if you are going to use your system for
application development. application development.
# We keep the libraries in separate sub-package to allow for multilib
# installations of flex.
%package static
Summary: Libraries for flex scanner generator
Group: Development/Tools
%description static
This package contains the library with default implementations of
`main' and `yywrap' functions that the client binary can choose to use
instead of implementing their own.
%prep %prep
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
@ -79,11 +99,17 @@ rm -rf ${RPM_BUILD_ROOT}
%doc COPYING NEWS README %doc COPYING NEWS README
%{_bindir}/* %{_bindir}/*
%{_mandir}/man1/* %{_mandir}/man1/*
%{_libdir}/*.a
%{_includedir}/FlexLexer.h %{_includedir}/FlexLexer.h
%{_infodir}/flex.info* %{_infodir}/flex.info*
%files static
%defattr(-,root,root)
%{_libdir}/*.a
%changelog %changelog
* Wed Jan 20 2010 Petr Machata <pmachata@redhat.com> - 2.5.35-9
- Move libraries into a sub-package of their own.
* Tue Jan 12 2010 Petr Machata <pmachata@redhat.com> - 2.5.35-8 * Tue Jan 12 2010 Petr Machata <pmachata@redhat.com> - 2.5.35-8
- Add source URL - Add source URL