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: dc8e8f6af735e90ec7e6a0ca99851bff
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.54
20 BuildRequires: automake >= 1.7
21 BuildRequires: gcc >= 3.2
22 BuildRequires: gettext-devel
23 BuildRequires: libltdl-devel
24 BuildRequires: perl-tools-pod
25 BuildRequires: sharutils
26 Requires: %{name}-libelf = %{version}-%{release}
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define _programprefix eu-
32 Elfutils is a collection of utilities, including ld (a linker), nm
33 (for listing symbols from object files), size (for listing the section
34 sizes of an object or archive file), strip (for discarding symbols),
35 readline (the see the raw ELF file structures), and elflint (to check
36 for well-formed ELF files). Also included are numerous helper
37 libraries which implement DWARF, ELF, and machine-specific ELF
41 Elfutils to zestaw narzêdzi, sk³adaj±cy siê z ld (linkera), nm (do
42 listowania symboli z plików obiektów), size (do listowania rozmiarów
43 sekcji plików obiektów lub archiwów), strip (do usuwania symboli),
44 readline (do ogl±dania surowych struktur plików ELF) oraz elflint (do
45 sprawdzania poprawno¶ci plików ELF). Do³±czone s± tak¿e liczne
46 biblioteki pomocnicze z zaimplementowan± obs³ug± DWARF, ELF i ELF
47 specyficznych dla architektury.
50 Summary: Development part of libraries to handle compiled objects
51 Summary(pl): Czê¶æ programistyczna bibliotek do obs³ugi skompilowanych obiektów
52 Group: Development/Libraries
53 Requires: %{name} = %{version}-%{release}
54 Obsoletes: libelf-devel
57 The elfutils-devel package contains the development part of libraries
58 to create applications for handling compiled objects. libelf allows
59 you to access the internals of the ELF object file format, so you can
60 see the different sections of an ELF file. libebl provides some
61 higher-level ELF access functionality. libdwarf provides access to the
62 DWARF debugging information. libasm provides a programmable assembler
65 %description devel -l pl
66 Pakiet elfutils-devel zawiera czê¶æ programistyczn± bibliotek do
67 tworzenia aplikacji obs³uguj±cych skompilowane obiekty. libelf pozwala
68 na dostêp do wnêtrzno¶ci formatu pliku obiektowego ELF, co pozwala na
69 ogl±danie ró¿nych sekcji pliku ELF. libebl udostêpnia funkcjonalno¶æ
70 dostêpu do plików ELF trochê wy¿szego poziomu. libdwarf pozwala na
71 dostêp do informacji DWARF s³u¿±cych do odpluskwiania. libasm
72 udostêpnia programowalny interfejs asemblera.
75 Summary: Library to read and write ELF files
76 Summary(pl): Biblioteki do odczytu i zapisu plików ELF
81 The elfutils-libelf package provides a DSO which allows reading and
82 writing ELF files on a high level. Third party programs depend on this
83 package to read internals of ELF files. The programs of the elfutils
84 package use it also to generate new ELF files.
86 %description libelf -l pl
87 Pakiet elfutils-libelf udostêpnia bibliotekê dzielon±, która pozwala
88 na wysokopoziomowe czytanie i zapisywanie plików ELF. Inne programy
89 wymagaj± tego pakietu, aby odczytywaæ zawarto¶æ plików ELF. Programy z
90 pakietu elfutils u¿ywaj± jej tak¿e do generowania nowych plików ELF.
93 Summary: Static libraries to handle compiled objects
94 Summary(pl): Statyczne biblioteki do obs³ugi skompilowanych obiektów
95 Group: Development/Libraries
96 Requires: %{name}-devel = %{version}-%{release}
97 Obsoletes: libelf-static
100 The elfutils-static package contains the static libraries to create
101 applications for handling compiled objects. libelf allows you to
102 access the internals of the ELF object file format, so you can see the
103 different sections of an ELF file. libebl provides some higher-level
104 ELF access functionality. libdwarf provides access to the DWARF
105 debugging information. libasm provides a programmable assembler
108 %description static -l pl
109 Pakiet elfutils-static zawiera statyczne biblioteki do tworzenia
110 aplikacji obs³uguj±cych skompilowane obiekty. libelf pozwala na dostêp
111 do wnêtrzno¶ci formatu pliku obiektowego ELF, co pozwala na ogl±danie
112 ró¿nych sekcji pliku ELF. libebl udostêpnia funkcjonalno¶æ dostêpu do
113 plików ELF trochê wy¿szego poziomu. libdwarf pozwala na dostêp do
114 informacji DWARF s³u¿±cych do odpluskwiania. libasm udostêpnia
115 programowalny interfejs asemblera.
121 # to be removed || updated after switching to glibc 2.3.4
122 # (alpha stat64() with nsec fields was added in linux-2.6.4/glibc-2.3.4,
123 # I don't know if elfutils knows how to use it)
133 --program-prefix=%{_programprefix} \
136 # make check depends on test-nlist not stripped
137 %{__perl} -pi -e 's/^(LDFLAGS =.*)-s/$1/' tests/Makefile
140 %{__make} -C debian/man
142 # $ORIGIN used in RPATH needs /proc to work - workaround it using LD_LIBRARY_PATH
143 LD_LIBRARY_PATH=../libasm:../libdw:../libebl:../libelf \
144 %{__make} -C tests check
148 rm -rf $RPM_BUILD_ROOT
149 install -d $RPM_BUILD_ROOT%{_mandir}/man1
151 # *OBJEXT must be passed to workaround problem with messed gettext,
152 # which doesn't like *-po dir names
154 DESTDIR=$RPM_BUILD_ROOT \
155 MKINSTALLDIRS=$(pwd)/config/mkinstalldirs \
159 install debian/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
165 rm -rf $RPM_BUILD_ROOT
167 %post -p /sbin/ldconfig
168 %postun -p /sbin/ldconfig
170 %post libelf -p /sbin/ldconfig
171 %postun libelf -p /sbin/ldconfig
173 %files -f %{name}.lang
174 %defattr(644,root,root,755)
175 %doc AUTHORS COPYING NEWS NOTES README THANKS TODO
176 %attr(755,root,root) %{_bindir}/*
177 %attr(755,root,root) %{_libdir}/libasm-*.so
178 %attr(755,root,root) %{_libdir}/libdw-*.so
179 %dir %{_libdir}/elfutils
180 %attr(755,root,root) %{_libdir}/elfutils/lib*.so
184 %defattr(644,root,root,755)
185 %doc doc/elfutils.sgml
186 %attr(755,root,root) %{_libdir}/libasm.so
187 %attr(755,root,root) %{_libdir}/libdw.so
188 %attr(755,root,root) %{_libdir}/libelf.so
192 %files libelf -f libelf.lang
193 %defattr(644,root,root,755)
194 %attr(755,root,root) %{_libdir}/libelf-*.so
197 %defattr(644,root,root,755)