Create separate static and devel sub-packages. (BZ 556040)

This commit is contained in:
Nicholas Clifton 2010-02-12 13:53:24 +00:00
parent eb2c3474d5
commit 5f3d2b56d0
1 changed files with 24 additions and 6 deletions

View File

@ -17,7 +17,7 @@
Summary: A GNU collection of binary utilities Summary: A GNU collection of binary utilities
Name: %{?cross}binutils%{?_with_debug:-debug} Name: %{?cross}binutils%{?_with_debug:-debug}
Version: 2.20.51.0.2 Version: 2.20.51.0.2
Release: 14%{?dist} Release: 15%{?dist}
License: GPLv3+ License: GPLv3+
Group: Development/Tools Group: Development/Tools
URL: http://sources.redhat.com/binutils URL: http://sources.redhat.com/binutils
@ -100,7 +100,7 @@ from files), strip (for discarding symbols), and addr2line (for
converting addresses to file and line). converting addresses to file and line).
%package devel %package devel
Summary: BFD and opcodes static libraries and header files Summary: BFD and opcodes dynamic libraries and header files
Group: System Environment/Libraries Group: System Environment/Libraries
Conflicts: binutils < 2.17.50.0.3-4 Conflicts: binutils < 2.17.50.0.3-4
Requires(post): /sbin/install-info Requires(post): /sbin/install-info
@ -108,11 +108,21 @@ Requires(preun): /sbin/install-info
Requires: zlib-devel Requires: zlib-devel
%description devel %description devel
This package contains BFD and opcodes static libraries and associated This package contains the generic BFD and opcodes dynamic libraries and
header files. Only *.a libraries are included, because BFD doesn't associated header files. Developers starting new projects are encouraged
have a stable ABI. Developers starting new projects are strongly encouraged
to consider using libelf instead of BFD. to consider using libelf instead of BFD.
%package static
Summary: BFD and opcodes static libraries
Group: System Environment/Libraries
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
%description static
This package contains BFD and opcodes static libraries. Developers
starting new projects are strongly encouraged to consider using
libelf instead of BFD.
%prep %prep
%setup -q -n binutils-%{version} %setup -q -n binutils-%{version}
%patch01 -p0 -b .libtool-lib64~ %patch01 -p0 -b .libtool-lib64~
@ -416,6 +426,7 @@ exit 0
%exclude %{_libdir}/libbfd.so %exclude %{_libdir}/libbfd.so
%exclude %{_libdir}/libopcodes.so %exclude %{_libdir}/libopcodes.so
%endif %endif
%if %{isnative} %if %{isnative}
%{_infodir}/[^b]*info* %{_infodir}/[^b]*info*
%{_infodir}/binutils*info* %{_infodir}/binutils*info*
@ -425,11 +436,18 @@ exit 0
%{_prefix}/include/* %{_prefix}/include/*
%{_libdir}/libbfd.so %{_libdir}/libbfd.so
%{_libdir}/libopcodes.so %{_libdir}/libopcodes.so
%{_libdir}/lib*.a
%{_infodir}/bfd*info* %{_infodir}/bfd*info*
%files static
%defattr(-,root,root,-)
%{_libdir}/lib*.a
%endif # %{isnative} %endif # %{isnative}
%changelog %changelog
* Fri Feb 12 2010 Nick Clifton <nickc@redhat.com> - 2.20.51.0.2-15
- Create separate static and devel sub-packages. (BZ 556040)
* Tue Feb 2 2010 Nick Clifton <nickc@redhat.com> - 2.20.51.0.2-14 * Tue Feb 2 2010 Nick Clifton <nickc@redhat.com> - 2.20.51.0.2-14
- Fix seg-fault when linking mixed x86 and x86_64 binaries. (BZ 487472) - Fix seg-fault when linking mixed x86 and x86_64 binaries. (BZ 487472)