3 %bcond_without tests # do not perform tests
5 Summary: A collection of utilities and DSOs to handle compiled objects
6 Summary(pl): Zestaw narzêdzi i bibliotek do obs³ugi skompilowanych obiektów
10 License: OSL 1.0 (http://www.opensource.org/licenses/osl.php)
11 Group: Development/Tools
12 # http://download.fedora.redhat.com/pub/fedora/linux/core/development/i386/SRPMS/
13 Source0: %{name}-%{version}.tar.gz
14 # Source0-md5: 41c3e3c918acef6cbf77519c6f10793e
15 Patch0: %{name}-pl.po.patch
16 Patch1: %{name}-debian-manpages.patch
17 Patch2: %{name}-alpha-stat.patch
18 #URL: file://home/devel/drepper
19 BuildRequires: autoconf >= 2.59
20 BuildRequires: automake >= 1:1.7
21 BuildRequires: gcc >= 3.2
22 BuildRequires: gettext-devel
23 %ifarch %{x8664} alpha ia64 ppc64 s390x sparc64
24 # PR*FAST{8,16} in <inttypes.h> were broken for 64-bit archs in older versions
25 # also needed for nanosecond timestamps on alpha
26 BuildRequires: glibc-devel >= 6:2.3.4
28 BuildRequires: libltdl-devel
29 BuildRequires: perl-tools-pod
30 BuildRequires: rpmbuild(macros) >= 1.213
31 BuildRequires: sharutils
32 Requires: %{name}-libelf = %{version}-%{release}
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 %define _programprefix eu-
38 Elfutils is a collection of utilities, including ld (a linker), nm
39 (for listing symbols from object files), size (for listing the section
40 sizes of an object or archive file), strip (for discarding symbols),
41 readline (the see the raw ELF file structures), and elflint (to check
42 for well-formed ELF files). Also included are numerous helper
43 libraries which implement DWARF, ELF, and machine-specific ELF
47 Elfutils to zestaw narzêdzi, sk³adaj±cy siê z ld (linkera), nm (do
48 listowania symboli z plików obiektów), size (do listowania rozmiarów
49 sekcji plików obiektów lub archiwów), strip (do usuwania symboli),
50 readline (do ogl±dania surowych struktur plików ELF) oraz elflint (do
51 sprawdzania poprawno¶ci plików ELF). Do³±czone s± tak¿e liczne
52 biblioteki pomocnicze z zaimplementowan± obs³ug± DWARF, ELF i ELF
53 specyficznych dla architektury.
56 Summary: Development part of libraries to handle compiled objects
57 Summary(pl): Czê¶æ programistyczna bibliotek do obs³ugi skompilowanych obiektów
58 Group: Development/Libraries
59 Requires: %{name} = %{version}-%{release}
60 Obsoletes: libelf-devel
63 The elfutils-devel package contains the development part of libraries
64 to create applications for handling compiled objects. libelf allows
65 you to access the internals of the ELF object file format, so you can
66 see the different sections of an ELF file. libebl provides some
67 higher-level ELF access functionality. libdwarf provides access to the
68 DWARF debugging information. libasm provides a programmable assembler
71 %description devel -l pl
72 Pakiet elfutils-devel zawiera czê¶æ programistyczn± bibliotek do
73 tworzenia aplikacji obs³uguj±cych skompilowane obiekty. libelf pozwala
74 na dostêp do wnêtrzno¶ci formatu pliku obiektowego ELF, co pozwala na
75 ogl±danie ró¿nych sekcji pliku ELF. libebl udostêpnia funkcjonalno¶æ
76 dostêpu do plików ELF trochê wy¿szego poziomu. libdwarf pozwala na
77 dostêp do informacji DWARF s³u¿±cych do odpluskwiania. libasm
78 udostêpnia programowalny interfejs asemblera.
81 Summary: Library to read and write ELF files
82 Summary(pl): Biblioteki do odczytu i zapisu plików ELF
87 The elfutils-libelf package provides a DSO which allows reading and
88 writing ELF files on a high level. Third party programs depend on this
89 package to read internals of ELF files. The programs of the elfutils
90 package use it also to generate new ELF files.
92 %description libelf -l pl
93 Pakiet elfutils-libelf udostêpnia bibliotekê dzielon±, która pozwala
94 na wysokopoziomowe czytanie i zapisywanie plików ELF. Inne programy
95 wymagaj± tego pakietu, aby odczytywaæ zawarto¶æ plików ELF. Programy z
96 pakietu elfutils u¿ywaj± jej tak¿e do generowania nowych plików ELF.
99 Summary: Static libraries to handle compiled objects
100 Summary(pl): Statyczne biblioteki do obs³ugi skompilowanych obiektów
101 Group: Development/Libraries
102 Requires: %{name}-devel = %{version}-%{release}
103 Obsoletes: libelf-static
106 The elfutils-static package contains the static libraries to create
107 applications for handling compiled objects. libelf allows you to
108 access the internals of the ELF object file format, so you can see the
109 different sections of an ELF file. libebl provides some higher-level
110 ELF access functionality. libdwarf provides access to the DWARF
111 debugging information. libasm provides a programmable assembler
114 %description static -l pl
115 Pakiet elfutils-static zawiera statyczne biblioteki do tworzenia
116 aplikacji obs³uguj±cych skompilowane obiekty. libelf pozwala na dostêp
117 do wnêtrzno¶ci formatu pliku obiektowego ELF, co pozwala na ogl±danie
118 ró¿nych sekcji pliku ELF. libebl udostêpnia funkcjonalno¶æ dostêpu do
119 plików ELF trochê wy¿szego poziomu. libdwarf pozwala na dostêp do
120 informacji DWARF s³u¿±cych do odpluskwiania. libasm udostêpnia
121 programowalny interfejs asemblera.
127 # no nanosecond timestamps on sparc64 yet (alpha has them now)
137 --program-prefix=%{_programprefix} \
140 # make check depends on test-nlist not stripped
141 %{__perl} -pi -e 's/^(LDFLAGS =.*)-s/$1/' tests/Makefile
144 %{__make} -C debian/man
146 # $ORIGIN used in RPATH needs /proc to work - workaround it using LD_LIBRARY_PATH;
147 # ../libelf is needed also to use proper libelf by ../src/elflint during tests
148 LD_LIBRARY_PATH=../libasm:../libdw:../libebl:../libelf \
149 %{__make} -C tests check
153 rm -rf $RPM_BUILD_ROOT
154 install -d $RPM_BUILD_ROOT%{_mandir}/man1
156 # *OBJEXT must be passed to workaround problem with messed gettext,
157 # which doesn't like *-po dir names
159 DESTDIR=$RPM_BUILD_ROOT \
160 MKINSTALLDIRS=$(pwd)/config/mkinstalldirs \
164 install debian/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
170 rm -rf $RPM_BUILD_ROOT
172 %post -p /sbin/ldconfig
173 %postun -p /sbin/ldconfig
175 %post libelf -p /sbin/ldconfig
176 %postun libelf -p /sbin/ldconfig
178 %files -f %{name}.lang
179 %defattr(644,root,root,755)
180 %doc AUTHORS COPYING NEWS NOTES README THANKS TODO
181 %attr(755,root,root) %{_bindir}/*
182 %attr(755,root,root) %{_libdir}/libasm-*.so
183 %attr(755,root,root) %{_libdir}/libdw-*.so
184 %dir %{_libdir}/elfutils
185 %attr(755,root,root) %{_libdir}/elfutils/lib*.so
189 %defattr(644,root,root,755)
190 %doc doc/elfutils.sgml
191 %attr(755,root,root) %{_libdir}/libasm.so
192 %attr(755,root,root) %{_libdir}/libdw.so
193 %attr(755,root,root) %{_libdir}/libelf.so
197 %files libelf -f libelf.lang
198 %defattr(644,root,root,755)
199 %attr(755,root,root) %{_libdir}/libelf-*.so
202 %defattr(644,root,root,755)