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