X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=elfutils.spec;h=596ccbb42093751e09fbfb22f93a5ec2691b24a4;hb=54a69a2e0422b200d46b902dc08a9c1f9f7683bf;hp=1db3028f174b12d64d6dce3cff9f3a23a43431ea;hpb=2a18e9135d7ce016b1618a10900288fda7cad28f;p=packages%2Felfutils.git diff --git a/elfutils.spec b/elfutils.spec index 1db3028..596ccbb 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -1,17 +1,54 @@ -Summary: A collection of utilities and DSOs to handle compiled objects. +# +# Conditional build: +%bcond_without tests # do not perform tests +# +Summary: A collection of utilities and DSOs to handle compiled objects +Summary(pl.UTF-8): Zestaw narzędzi i bibliotek do obsługi skompilowanych obiektów Name: elfutils -Version: 0.76 -Release: 5 -License: GPL +Version: 0.128 +Release: 1 +License: GPL v2 with OSL linking exception Group: Development/Tools -#URL: file://home/devel/drepper -Source0: %{name}-%{version}.tar.gz -Requires: elfutils-libelf = %{version}-%{release} -BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +# http://download.fedora.redhat.com/pub/fedora/linux/core/development/source/SRPMS/ +# or abuse systemtap to get .tar.gz directly +Source0: ftp://sources.redhat.com/pub/systemtap/elfutils/%{name}-%{version}.tar.gz +# Source0-md5: 4da87e49616101ec256e313218c421ef +Patch0: %{name}-pl.po.patch +Patch1: %{name}-debian-manpages.patch +Patch2: %{name}-portability.patch +Patch3: %{name}-robustify.patch +Patch4: %{name}-align.patch +Patch5: %{name}-paxflags.patch +Patch6: %{name}-sparc.patch +Patch7: %{name}-strip-copy-symtab.patch +Patch8: %{name}-gcc4.patch +Patch9: %{name}-inline.patch +Patch10: %{name}-Werror.patch +#URL: file://home/devel/drepper +BuildRequires: autoconf >= 2.59 +BuildRequires: automake >= 1:1.7 BuildRequires: gcc >= 3.2 +BuildRequires: gettext-devel +%ifarch %{x8664} alpha ia64 ppc64 s390x sparc64 +# PR*FAST{8,16} in were broken for 64-bit archs in older versions +# also needed for nanosecond timestamps on alpha +BuildRequires: glibc-devel >= 6:2.3.4 +%endif +BuildRequires: libltdl-devel +BuildRequires: perl-tools-pod +BuildRequires: rpmbuild(macros) >= 1.315 BuildRequires: sharutils +%if %{with tests} && %(test -d /proc/self ; echo $?) +# native test needs proc (for libdwfl -p PID to work) +BuildRequires: MOUNTED_PROC +%endif +Requires: %{name}-libelf = %{version}-%{release} +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +# fails to build with -Wl,-s +%define filterout_ld (-Wl,)?-[sS] (-Wl,)?--strip.* -%define _programprefix eu- +%define _programprefix eu- %description Elfutils is a collection of utilities, including ld (a linker), nm @@ -22,25 +59,45 @@ for well-formed ELF files). Also included are numerous helper libraries which implement DWARF, ELF, and machine-specific ELF handling. +%description -l pl.UTF-8 +Elfutils to zestaw narzędzi, składający się z ld (linkera), nm (do +listowania symboli z plików obiektów), size (do listowania rozmiarów +sekcji plików obiektów lub archiwów), strip (do usuwania symboli), +readline (do oglądania surowych struktur plików ELF) oraz elflint (do +sprawdzania poprawności plików ELF). Dołączone są także liczne +biblioteki pomocnicze z zaimplementowaną obsługą DWARF, ELF i ELF +specyficznych dla architektury. + %package devel -Summary: Development libraries to handle compiled objects. -Group: Development/Tools +Summary: Development part of libraries to handle compiled objects +Summary(pl.UTF-8): Część programistyczna bibliotek do obsługi skompilowanych obiektów +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} Obsoletes: libelf-devel -Requires: elfutils = %{version}-%{release} %description devel -The elfutils-devel package contains the libraries to create -applications for handling compiled objects. libelf allows you to -access the internals of the ELF object file format, so you can see the -different sections of an ELF file. libebl provides some higher-level -ELF access functionality. libdwarf provides access to the DWARF -debugging information. libasm provides a programmable assembler +The elfutils-devel package contains the development part of libraries +to create applications for handling compiled objects. libelf allows +you to access the internals of the ELF object file format, so you can +see the different sections of an ELF file. libebl provides some +higher-level ELF access functionality. libdwarf provides access to the +DWARF debugging information. libasm provides a programmable assembler interface. +%description devel -l pl.UTF-8 +Pakiet elfutils-devel zawiera część programistyczną bibliotek do +tworzenia aplikacji obsługujących skompilowane obiekty. libelf pozwala +na dostęp do wnętrzności formatu pliku obiektowego ELF, co pozwala na +oglądanie różnych sekcji pliku ELF. libebl udostępnia funkcjonalność +dostępu do plików ELF trochę wyższego poziomu. libdwarf pozwala na +dostęp do informacji DWARF służących do odpluskwiania. libasm +udostępnia programowalny interfejs asemblera. + %package libelf -Summary: Library to read and write ELF files. -Group: Development/Tools -Obsoletes: libelf +Summary: Library to read and write ELF files +Summary(pl.UTF-8): Biblioteki do odczytu i zapisu plików ELF +Group: Libraries +#Obsoletes: libelf %description libelf The elfutils-libelf package provides a DSO which allows reading and @@ -48,11 +105,18 @@ writing ELF files on a high level. Third party programs depend on this package to read internals of ELF files. The programs of the elfutils package use it also to generate new ELF files. +%description libelf -l pl.UTF-8 +Pakiet elfutils-libelf udostępnia bibliotekę dzieloną, która pozwala +na wysokopoziomowe czytanie i zapisywanie plików ELF. Inne programy +wymagają tego pakietu, aby odczytywać zawartość plików ELF. Programy z +pakietu elfutils używają jej także do generowania nowych plików ELF. + %package static -Summary: Development libraries to handle compiled objects - static. -Group: Development/Tools -Obsoletes: libelf-devel -Requires: elfutils-devel = %{version}-%{release} +Summary: Static libraries to handle compiled objects +Summary(pl.UTF-8): Statyczne biblioteki do obsługi skompilowanych obiektów +Group: Development/Libraries +Requires: %{name}-devel = %{version}-%{release} +Obsoletes: libelf-static %description static The elfutils-static package contains the static libraries to create @@ -63,63 +127,115 @@ ELF access functionality. libdwarf provides access to the DWARF debugging information. libasm provides a programmable assembler interface. +%description static -l pl.UTF-8 +Pakiet elfutils-static zawiera statyczne biblioteki do tworzenia +aplikacji obsługujących skompilowane obiekty. libelf pozwala na dostęp +do wnętrzności formatu pliku obiektowego ELF, co pozwala na oglądanie +różnych sekcji pliku ELF. libebl udostępnia funkcjonalność dostępu do +plików ELF trochę wyższego poziomu. libdwarf pozwala na dostęp do +informacji DWARF służących do odpluskwiania. libasm udostępnia +programowalny interfejs asemblera. %prep %setup -q +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6 -p1 +%patch7 -p1 +%patch8 -p1 +%patch9 -p1 +%patch10 -p1 + +rm -f po/stamp-po + +# strip-test5 needs adjusting for strip-copy-symtab patch (already in FC, but not worth bothering) +sed -i -e 's/ run-strip-test5\.sh / /' tests/Makefile.am %build +#%%{__gettextize} %{__aclocal} %{__autoheader} -%{__automake} %{__autoconf} +%{__automake} %configure \ - --program-prefix=%{_programprefix} \ - --enable-shared + --program-prefix=%{_programprefix} \ + --enable-shared + +# make check depends on test-nlist not stripped +%{__perl} -pi -e 's/^(LDFLAGS =.*)-s/$1/' tests/Makefile + +%{__make} +%{__make} -C debian/man + +%if %{with tests} +# some tests rely on English messages +LC_ALL=C \ +%{__make} -C tests check +%endif %install rm -rf $RPM_BUILD_ROOT -install -d ${RPM_BUILD_ROOT}%{_prefix} +install -d $RPM_BUILD_ROOT{%{_mandir}/man1,/%{_lib}} +# *OBJEXT must be passed to workaround problem with messed gettext, +# which doesn't like *-po dir names %{__make} install \ - DESTDIR=$RPM_BUILD_ROOT + DESTDIR=$RPM_BUILD_ROOT \ + MKINSTALLDIRS=$(pwd)/config/mkinstalldirs \ + CATOBJEXT=.gmo \ + INSTOBJEXT=.mo -chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/lib*.so* -chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/elfutils/lib*.so* +install debian/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 -#%%check -#make check +mv $RPM_BUILD_ROOT%{_libdir}/libelf-*.so $RPM_BUILD_ROOT/%{_lib} +ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib} ; echo libelf-*.so) \ + $RPM_BUILD_ROOT%{_libdir}/libelf.so -%clean -rm -rf ${RPM_BUILD_ROOT} +/sbin/ldconfig -n -N $RPM_BUILD_ROOT%{_libdir} +/sbin/ldconfig -n -N $RPM_BUILD_ROOT/%{_lib} -%post -p /sbin/ldconfig +%find_lang %{name} -%postun -p /sbin/ldconfig +%clean +rm -rf $RPM_BUILD_ROOT -%post libelf -p /sbin/ldconfig +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig -%postun libelf -p /sbin/ldconfig +%post libelf -p /sbin/ldconfig +%postun libelf -p /sbin/ldconfig %files %defattr(644,root,root,755) -%doc README TODO +%doc AUTHORS EXCEPTION NEWS NOTES README THANKS TODO %attr(755,root,root) %{_bindir}/* -%attr(755,root,root) %{_libdir}/lib*-*.so +%attr(755,root,root) %{_libdir}/libasm-*.so +%ghost %attr(755,root,root) %{_libdir}/libasm.so.* +%attr(755,root,root) %{_libdir}/libdw-*.so +%ghost %attr(755,root,root) %{_libdir}/libdw.so.* %dir %{_libdir}/elfutils %attr(755,root,root) %{_libdir}/elfutils/lib*.so -%exclude %{_libdir}/libelf-*.so +%{_mandir}/man1/*.1* %files devel -%doc libdwarf/AVAILABLE %defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libasm.so +%attr(755,root,root) %{_libdir}/libdw.so +%attr(755,root,root) %{_libdir}/libelf.so +%{_libdir}/libebl.a %{_includedir}/* -%{_libdir}/lib*.so -%exclude %{_libdir}/lib*-*.so -%files libelf +%files libelf -f %{name}.lang %defattr(644,root,root,755) -%{_libdir}/libelf-*.so +%attr(755,root,root) /%{_lib}/libelf-*.so +%ghost %attr(755,root,root) /%{_lib}/libelf.so.* %files static %defattr(644,root,root,755) -%{_libdir}/lib*.a +%{_libdir}/libasm.a +%{_libdir}/libdw.a +%{_libdir}/libelf.a