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