]> git.pld-linux.org Git - packages/elfutils.git/blob - elfutils.spec
- automake epoch
[packages/elfutils.git] / elfutils.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform tests
4 #
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
7 Name:           elfutils
8 Version:        0.95
9 Release:        2
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.59
20 BuildRequires:  automake >= 1:1.7
21 BuildRequires:  gcc >= 3.2
22 BuildRequires:  gettext-devel
23 %ifarch alpha amd64 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
27 %endif
28 BuildRequires:  libltdl-devel
29 BuildRequires:  perl-tools-pod
30 BuildRequires:  sharutils
31 Requires:       %{name}-libelf = %{version}-%{release}
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %define         _programprefix  eu-
35
36 %description
37 Elfutils is a collection of utilities, including ld (a linker), nm
38 (for listing symbols from object files), size (for listing the section
39 sizes of an object or archive file), strip (for discarding symbols),
40 readline (the see the raw ELF file structures), and elflint (to check
41 for well-formed ELF files). Also included are numerous helper
42 libraries which implement DWARF, ELF, and machine-specific ELF
43 handling.
44
45 %description -l pl
46 Elfutils to zestaw narzêdzi, sk³adaj±cy siê z ld (linkera), nm (do
47 listowania symboli z plików obiektów), size (do listowania rozmiarów
48 sekcji plików obiektów lub archiwów), strip (do usuwania symboli),
49 readline (do ogl±dania surowych struktur plików ELF) oraz elflint (do
50 sprawdzania poprawno¶ci plików ELF). Do³±czone s± tak¿e liczne
51 biblioteki pomocnicze z zaimplementowan± obs³ug± DWARF, ELF i ELF
52 specyficznych dla architektury.
53
54 %package devel
55 Summary:        Development part of libraries to handle compiled objects
56 Summary(pl):    Czê¶æ programistyczna bibliotek do obs³ugi skompilowanych obiektów
57 Group:          Development/Libraries
58 Requires:       %{name} = %{version}-%{release}
59 Obsoletes:      libelf-devel
60
61 %description devel
62 The elfutils-devel package contains the development part of libraries
63 to create applications for handling compiled objects. libelf allows
64 you to access the internals of the ELF object file format, so you can
65 see the different sections of an ELF file. libebl provides some
66 higher-level ELF access functionality. libdwarf provides access to the
67 DWARF debugging information. libasm provides a programmable assembler
68 interface.
69
70 %description devel -l pl
71 Pakiet elfutils-devel zawiera czê¶æ programistyczn± bibliotek do
72 tworzenia aplikacji obs³uguj±cych skompilowane obiekty. libelf pozwala
73 na dostêp do wnêtrzno¶ci formatu pliku obiektowego ELF, co pozwala na
74 ogl±danie ró¿nych sekcji pliku ELF. libebl udostêpnia funkcjonalno¶æ
75 dostêpu do plików ELF trochê wy¿szego poziomu. libdwarf pozwala na
76 dostêp do informacji DWARF s³u¿±cych do odpluskwiania. libasm
77 udostêpnia programowalny interfejs asemblera.
78
79 %package libelf
80 Summary:        Library to read and write ELF files
81 Summary(pl):    Biblioteki do odczytu i zapisu plików ELF
82 Group:          Libraries
83 #Obsoletes:     libelf
84
85 %description libelf
86 The elfutils-libelf package provides a DSO which allows reading and
87 writing ELF files on a high level. Third party programs depend on this
88 package to read internals of ELF files. The programs of the elfutils
89 package use it also to generate new ELF files.
90
91 %description libelf -l pl
92 Pakiet elfutils-libelf udostêpnia bibliotekê dzielon±, która pozwala
93 na wysokopoziomowe czytanie i zapisywanie plików ELF. Inne programy
94 wymagaj± tego pakietu, aby odczytywaæ zawarto¶æ plików ELF. Programy z
95 pakietu elfutils u¿ywaj± jej tak¿e do generowania nowych plików ELF.
96
97 %package static
98 Summary:        Static libraries to handle compiled objects
99 Summary(pl):    Statyczne biblioteki do obs³ugi skompilowanych obiektów
100 Group:          Development/Libraries
101 Requires:       %{name}-devel = %{version}-%{release}
102 Obsoletes:      libelf-static
103
104 %description static
105 The elfutils-static package contains the static libraries to create
106 applications for handling compiled objects. libelf allows you to
107 access the internals of the ELF object file format, so you can see the
108 different sections of an ELF file. libebl provides some higher-level
109 ELF access functionality. libdwarf provides access to the DWARF
110 debugging information. libasm provides a programmable assembler
111 interface.
112
113 %description static -l pl
114 Pakiet elfutils-static zawiera statyczne biblioteki do tworzenia
115 aplikacji obs³uguj±cych skompilowane obiekty. libelf pozwala na dostêp
116 do wnêtrzno¶ci formatu pliku obiektowego ELF, co pozwala na ogl±danie
117 ró¿nych sekcji pliku ELF. libebl udostêpnia funkcjonalno¶æ dostêpu do
118 plików ELF trochê wy¿szego poziomu. libdwarf pozwala na dostêp do
119 informacji DWARF s³u¿±cych do odpluskwiania. libasm udostêpnia
120 programowalny interfejs asemblera.
121
122 %prep
123 %setup -q
124 %patch0 -p1
125 %patch1 -p1
126 # no nanosecond timestamps on sparc64 yet (alpha has them now)
127 %patch2 -p1
128
129 %build
130 %{__gettextize}
131 %{__aclocal}
132 %{__autoheader}
133 %{__automake}
134 %{__autoconf}
135 %configure \
136         --program-prefix=%{_programprefix} \
137         --enable-shared
138
139 # make check depends on test-nlist not stripped
140 %{__perl} -pi -e 's/^(LDFLAGS =.*)-s/$1/' tests/Makefile
141
142 %{__make}
143 %{__make} -C debian/man
144 %if %{with tests}
145 # $ORIGIN used in RPATH needs /proc to work - workaround it using LD_LIBRARY_PATH;
146 # ../libelf is needed also to use proper libelf by ../src/elflint during tests
147 LD_LIBRARY_PATH=../libasm:../libdw:../libebl:../libelf \
148 %{__make} -C tests check
149 %endif
150
151 %install
152 rm -rf $RPM_BUILD_ROOT
153 install -d $RPM_BUILD_ROOT%{_mandir}/man1
154
155 # *OBJEXT must be passed to workaround problem with messed gettext,
156 # which doesn't like *-po dir names
157 %{__make} install \
158         DESTDIR=$RPM_BUILD_ROOT \
159         MKINSTALLDIRS=$(pwd)/config/mkinstalldirs \
160         CATOBJEXT=.gmo \
161         INSTOBJEXT=.mo
162
163 install debian/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
164
165 %find_lang libelf
166 %find_lang %{name}
167
168 %clean
169 rm -rf $RPM_BUILD_ROOT
170
171 %post   -p /sbin/ldconfig
172 %postun -p /sbin/ldconfig
173
174 %post   libelf -p /sbin/ldconfig
175 %postun libelf -p /sbin/ldconfig
176
177 %files -f %{name}.lang
178 %defattr(644,root,root,755)
179 %doc AUTHORS COPYING NEWS NOTES README THANKS TODO
180 %attr(755,root,root) %{_bindir}/*
181 %attr(755,root,root) %{_libdir}/libasm-*.so
182 %attr(755,root,root) %{_libdir}/libdw-*.so
183 %dir %{_libdir}/elfutils
184 %attr(755,root,root) %{_libdir}/elfutils/lib*.so
185 %{_mandir}/man1/*.1*
186
187 %files devel
188 %defattr(644,root,root,755)
189 %doc doc/elfutils.sgml
190 %attr(755,root,root) %{_libdir}/libasm.so
191 %attr(755,root,root) %{_libdir}/libdw.so
192 %attr(755,root,root) %{_libdir}/libelf.so
193 %{_libdir}/libebl.a
194 %{_includedir}/*
195
196 %files libelf -f libelf.lang
197 %defattr(644,root,root,755)
198 %attr(755,root,root) %{_libdir}/libelf-*.so
199
200 %files static
201 %defattr(644,root,root,755)
202 %{_libdir}/libasm.a
203 %{_libdir}/libdw.a
204 %{_libdir}/libelf.a
This page took 0.080911 seconds and 3 git commands to generate.