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