]> git.pld-linux.org Git - packages/elfutils.git/blame_incremental - elfutils.spec
move debuginfod library to subpackage; rel 3
[packages/elfutils.git] / elfutils.spec
... / ...
CommitLineData
1#
2# Conditional build:
3%bcond_without debuginfod # debuginfod server and client
4%bcond_without tests # do not perform tests
5#
6Summary: A collection of utilities and DSOs to handle compiled objects
7Summary(pl.UTF-8): Zestaw narzędzi i bibliotek do obsługi skompilowanych obiektów
8Name: elfutils
9Version: 0.187
10Release: 3
11License: GPL v2+ or LGPL v3+ (libraries), GPL v3+ (programs)
12Group: Development/Tools
13Source0: https://sourceware.org/elfutils/ftp/%{version}/%{name}-%{version}.tar.bz2
14# Source0-md5: cc04f07b53a71616b22553c0a458cf4b
15Patch0: %{name}-pl.po.patch
16Patch1: %{name}-debian-manpages.patch
17Patch2: %{name}-awk.patch
18Patch3: %{name}-align.patch
19Patch4: %{name}-paxflags.patch
20Patch5: %{name}-sparc.patch
21Patch6: disable-tests.patch
22URL: https://sourceware.org/elfutils/
23BuildRequires: autoconf >= 2.63
24BuildRequires: automake >= 1:1.11
25%{?with_tests:BuildRequires: bsdtar}
26BuildRequires: bzip2-devel
27BuildRequires: gawk
28BuildRequires: gcc >= 6:4.3
29BuildRequires: gettext-tools >= 0.19.6
30BuildRequires: glibc-devel >= 6:2.7
31BuildRequires: libstdc++-devel >= 6:4.7
32BuildRequires: perl-tools-pod
33BuildRequires: rpmbuild(macros) >= 1.527
34BuildRequires: sharutils
35BuildRequires: xz-devel
36BuildRequires: zlib-devel
37BuildRequires: zstd-devel
38%if %{with tests} && %(test -d /proc/self ; echo $?)
39# native test needs proc (for libdwfl -p PID to work)
40BuildRequires: MOUNTED_PROC
41%endif
42%if %{with debuginfod}
43BuildRequires: curl-devel >= 7.29.0
44BuildRequires: libarchive-devel >= 3.1.2
45BuildRequires: libmicrohttpd-devel >= 0.9.33
46BuildRequires: sqlite3-devel >= 3.7.17
47%endif
48Requires: %{name}-libelf = %{version}-%{release}
49BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
51# fails to build with -Wl,-s
52%define filterout_ld (-Wl,)?-[sS] (-Wl,)?--strip.*
53%if %{with tests} && 0%(echo %{rpmcflags} | grep -q '\<-g' ; echo $?)
54# tests require debug symbols
55%define specflags -g
56%endif
57
58%define programprefix eu-
59
60%description
61Elfutils is a collection of utilities, including ld (a linker), nm
62(for listing symbols from object files), size (for listing the section
63sizes of an object or archive file), strip (for discarding symbols),
64readline (the see the raw ELF file structures), and elflint (to check
65for well-formed ELF files). Also included are numerous helper
66libraries which implement DWARF, ELF, and machine-specific ELF
67handling.
68
69%description -l pl.UTF-8
70Elfutils to zestaw narzędzi, składający się z ld (linkera), nm (do
71listowania symboli z plików obiektów), size (do listowania rozmiarów
72sekcji plików obiektów lub archiwów), strip (do usuwania symboli),
73readline (do oglądania surowych struktur plików ELF) oraz elflint (do
74sprawdzania poprawności plików ELF). Dołączone są także liczne
75biblioteki pomocnicze z zaimplementowaną obsługą DWARF, ELF i ELF
76specyficznych dla architektury.
77
78%package devel
79Summary: Development part of libraries to handle compiled objects
80Summary(pl.UTF-8): Część programistyczna bibliotek do obsługi skompilowanych obiektów
81Group: Development/Libraries
82Requires: %{name} = %{version}-%{release}
83Requires: bzip2-devel
84Requires: xz-devel
85Requires: zlib-devel
86Obsoletes: libelf-devel < 0.8.14
87Obsoletes: libelf0-devel < 0.8.14
88
89%description devel
90The elfutils-devel package contains the development part of libraries
91to create applications for handling compiled objects. libelf allows
92you to access the internals of the ELF object file format, so you can
93see the different sections of an ELF file. libdw provides access to
94the DWARF debugging information. libasm provides a programmable
95assembler interface.
96
97%description devel -l pl.UTF-8
98Pakiet elfutils-devel zawiera część programistyczną bibliotek do
99tworzenia aplikacji obsługujących skompilowane obiekty. libelf pozwala
100na dostęp do wnętrzności formatu pliku obiektowego ELF, co pozwala na
101oglądanie różnych sekcji pliku ELF. libdw pozwala na dostęp do
102informacji DWARF służących do odpluskwiania. libasm udostępnia
103programowalny interfejs asemblera.
104
105%package libelf
106Summary: Library to read and write ELF files
107Summary(pl.UTF-8): Biblioteki do odczytu i zapisu plików ELF
108Group: Libraries
109#Obsoletes: libelf
110
111%description libelf
112The elfutils-libelf package provides a DSO which allows reading and
113writing ELF files on a high level. Third party programs depend on this
114package to read internals of ELF files. The programs of the elfutils
115package use it also to generate new ELF files.
116
117%description libelf -l pl.UTF-8
118Pakiet elfutils-libelf udostępnia bibliotekę dzieloną, która pozwala
119na wysokopoziomowe czytanie i zapisywanie plików ELF. Inne programy
120wymagają tego pakietu, aby odczytywać zawartość plików ELF. Programy z
121pakietu elfutils używają jej także do generowania nowych plików ELF.
122
123%package static
124Summary: Static libraries to handle compiled objects
125Summary(pl.UTF-8): Statyczne biblioteki do obsługi skompilowanych obiektów
126Group: Development/Libraries
127Requires: %{name}-devel = %{version}-%{release}
128Obsoletes: libelf-static < 0.8.14
129
130%description static
131The elfutils-static package contains the static libraries to create
132applications for handling compiled objects. libelf allows you to
133access the internals of the ELF object file format, so you can see the
134different sections of an ELF file. libdw provides access to the DWARF
135debugging information. libasm provides a programmable assembler
136interface.
137
138%description static -l pl.UTF-8
139Pakiet elfutils-static zawiera statyczne biblioteki do tworzenia
140aplikacji obsługujących skompilowane obiekty. libelf pozwala na dostęp
141do wnętrzności formatu pliku obiektowego ELF, co pozwala na oglądanie
142różnych sekcji pliku ELF. libdw pozwala na dostęp do informacji DWARF
143służących do odpluskwiania. libasm udostępnia programowalny interfejs
144asemblera.
145
146%package debuginfod
147Summary: debuginfod server and client
148Summary(pl.UTF-8): Serwer i klient debuginfod
149Group: Libraries
150Requires: %{name} = %{version}-%{release}
151Requires: %{name}-debuginfod-libs = %{version}-%{release}
152Requires: libarchive >= 3.1.2
153Requires: libmicrohttpd >= 0.9.33
154Requires: sqlite3 >= 3.7.17
155
156%description debuginfod
157debuginfod server and client.
158
159%description debuginfod -l pl.UTF-8
160Serwer i klient debuginfod.
161
162%package debuginfod-libs
163Summary: debuginfod library
164Summary(pl.UTF-8): Biblioteka debuginfod
165Group: Libraries
166Requires: curl-libs >= 7.29.0
167Conflicts: elfutils-debuginfod < 0.187-3
168
169%description debuginfod-libs
170debuginfod library.
171
172%description debuginfod-libs -l pl.UTF-8
173Biblioteka debuginfod.
174
175%package debuginfod-devel
176Summary: Header file for debuginfod library
177Summary(pl.UTF-8): Plik nagłówkowy biblioteki debuginfod
178Group: Development/Libraries
179Requires: %{name}-debuginfod-libs = %{version}-%{release}
180Requires: %{name}-devel = %{version}-%{release}
181
182%description debuginfod-devel
183Header file for debuginfod library.
184
185%description debuginfod-devel -l pl.UTF-8
186Plik nagłówkowy biblioteki debuginfod.
187
188%prep
189%setup -q
190%patch0 -p1
191%patch1 -p1
192%patch2 -p1
193%patch3 -p1
194%patch4 -p1
195%patch5 -p1
196%patch6 -p1
197
198%{__rm} po/stamp-po
199
200# temporarily disable failing tests (depending on arch)
201%ifarch x32
202%{__sed} -i -e 's/run-backtrace-native-biarch.sh//' tests/Makefile.am
203%endif
204
205# make sure this is not even tried on arch it has no chance to run
206%ifarch %{ix86}
207%{__sed} -i -e 's/run-disasm-x86-64.sh//' tests/Makefile.am
208%endif
209
210%build
211#%%{__gettextize}
212%{__aclocal} -I m4
213%{__autoconf}
214%{__autoheader}
215%{__automake}
216%configure \
217 --disable-silent-rules \
218 %{__enable_disable debuginfod} \
219 --program-prefix=%{programprefix}
220
221# make check depends on test-nlist not stripped
222%{__perl} -pi -e 's/^(LDFLAGS =.*)-s/$1/' tests/Makefile
223
224%{__make}
225%{__make} -C debian/man
226
227%if %{with tests}
228# some tests rely on English messages
229LC_ALL=C \
230%{__make} -C tests check
231%endif
232
233%install
234rm -rf $RPM_BUILD_ROOT
235install -d $RPM_BUILD_ROOT{%{_mandir}/man1,/%{_lib}}
236
237%{__make} install \
238 DESTDIR=$RPM_BUILD_ROOT
239
240install debian/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
241
242%{__mv} $RPM_BUILD_ROOT%{_libdir}/{libelf-*.so,libelf.so.*} $RPM_BUILD_ROOT/%{_lib}
243ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libelf-*.so) \
244 $RPM_BUILD_ROOT%{_libdir}/libelf.so
245
246%find_lang %{name}
247
248%clean
249rm -rf $RPM_BUILD_ROOT
250
251%post -p /sbin/ldconfig
252%postun -p /sbin/ldconfig
253
254%post libelf -p /sbin/ldconfig
255%postun libelf -p /sbin/ldconfig
256
257%post debuginfod-libs -p /sbin/ldconfig
258%postun debuginfod-libs -p /sbin/ldconfig
259
260%files
261%defattr(644,root,root,755)
262%doc AUTHORS CONTRIBUTING ChangeLog NEWS NOTES README THANKS TODO
263%attr(755,root,root) %{_bindir}/eu-*
264%attr(755,root,root) %{_libdir}/libasm-*.so
265%attr(755,root,root) %ghost %{_libdir}/libasm.so.1
266%attr(755,root,root) %{_libdir}/libdw-*.so
267%attr(755,root,root) %ghost %{_libdir}/libdw.so.1
268%{_mandir}/man1/eu-*.1*
269
270%files devel
271%defattr(644,root,root,755)
272%attr(755,root,root) %{_libdir}/libasm.so
273%attr(755,root,root) %{_libdir}/libdw.so
274%attr(755,root,root) %{_libdir}/libelf.so
275%{_includedir}/dwarf.h
276%{_includedir}/gelf.h
277%{_includedir}/libelf.h
278%{_includedir}/nlist.h
279%dir %{_includedir}/elfutils
280%{_includedir}/elfutils/elf-knowledge.h
281%{_includedir}/elfutils/known-dwarf.h
282%{_includedir}/elfutils/libasm.h
283%{_includedir}/elfutils/libdw.h
284%{_includedir}/elfutils/libdwelf.h
285%{_includedir}/elfutils/libdwfl.h
286%{_includedir}/elfutils/version.h
287%{_pkgconfigdir}/libdw.pc
288%{_pkgconfigdir}/libelf.pc
289%{_mandir}/man3/elf_begin.3*
290%{_mandir}/man3/elf_clone.3*
291%{_mandir}/man3/elf_getdata.3*
292%{_mandir}/man3/elf_update.3*
293
294%files libelf -f %{name}.lang
295%defattr(644,root,root,755)
296%attr(755,root,root) /%{_lib}/libelf-*.so
297%attr(755,root,root) %ghost /%{_lib}/libelf.so.1
298
299%files static
300%defattr(644,root,root,755)
301%{_libdir}/libasm.a
302%{_libdir}/libdw.a
303%{_libdir}/libelf.a
304
305%if %{with debuginfod}
306%files debuginfod
307%defattr(644,root,root,755)
308%attr(755,root,root) %{_bindir}/debuginfod
309%attr(755,root,root) %{_bindir}/debuginfod-find
310%{_mandir}/man1/debuginfod-find.1*
311%{_mandir}/man7/debuginfod-client-config.7*
312%{_mandir}/man8/debuginfod.8*
313%attr(755,root,root) /etc/profile.d/debuginfod.sh
314%attr(755,root,root) /etc/profile.d/debuginfod.csh
315
316%files debuginfod-libs
317%defattr(644,root,root,755)
318%attr(755,root,root) %{_libdir}/libdebuginfod-*.so
319%attr(755,root,root) %ghost %{_libdir}/libdebuginfod.so.1
320
321%files debuginfod-devel
322%defattr(644,root,root,755)
323%attr(755,root,root) %{_libdir}/libdebuginfod.so
324%{_includedir}/elfutils/debuginfod.h
325%{_pkgconfigdir}/libdebuginfod.pc
326%{_mandir}/man3/debuginfod_*.3*
327%endif
This page took 0.034806 seconds and 4 git commands to generate.