]> git.pld-linux.org Git - packages/elfutils.git/blob - elfutils.spec
- rel 9 for ac
[packages/elfutils.git] / elfutils.spec
1 Summary:        A collection of utilities and DSOs to handle compiled objects
2 Summary(pl):    Zestaw narzêdzi i bibliotek do obs³ugi skompilowanych obiektów
3 Name:           elfutils
4 Version:        0.76
5 Release:        9
6 License:        OSL 1.0 (http://www.opensource.org/licenses/osl.php)
7 Group:          Development/Tools
8 Source0:        ftp://sunsite.icm.edu.pl:21/vol/rzm7/linux-sunsite/distributions/gentoo/distfiles/%{name}-%{version}.tar.gz
9 # Source0-md5:  51adf608642cd5fd6a4e3f25545b3c42
10 Patch0:         %{name}-pl.po.patch
11 #URL:           file://home/devel/drepper
12 BuildRequires:  autoconf >= 2.54
13 BuildRequires:  automake >= 1.7
14 BuildRequires:  gcc >= 3.2
15 BuildRequires:  gettext-devel
16 BuildRequires:  libltdl-devel
17 BuildRequires:  sharutils
18 Requires:       elfutils-libelf = %{version}-%{release}
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define _programprefix eu-
22
23 %description
24 Elfutils is a collection of utilities, including ld (a linker), nm
25 (for listing symbols from object files), size (for listing the section
26 sizes of an object or archive file), strip (for discarding symbols),
27 readline (the see the raw ELF file structures), and elflint (to check
28 for well-formed ELF files). Also included are numerous helper
29 libraries which implement DWARF, ELF, and machine-specific ELF
30 handling.
31
32 %description -l pl
33 Elfutils to zestaw narzêdzi, sk³adaj±cy siê z ld (linkera), nm (do
34 listowania symboli z plików obiektów), size (do listowania rozmiarów
35 sekcji plików obiektów lub archiwów), strip (do usuwania symboli),
36 readline (do ogl±dania surowych struktur plików ELF) oraz elflint (do
37 sprawdzania poprawno¶ci plików ELF). Do³±czone s± tak¿e liczne
38 biblioteki pomocnicze z zaimplementowan± obs³ug± DWARF, ELF i ELF
39 specyficznych dla architektury.
40
41 %package devel
42 Summary:        Development part of libraries to handle compiled objects
43 Summary(pl):    Czê¶æ programistyczna bibliotek do obs³ugi skompilowanych obiektów
44 Group:          Development/Libraries
45 Obsoletes:      libelf-devel
46 Requires:       elfutils = %{version}-%{release}
47
48 %description devel
49 The elfutils-devel package contains the development part of libraries
50 to create applications for handling compiled objects. libelf allows
51 you to access the internals of the ELF object file format, so you can
52 see the different sections of an ELF file. libebl provides some
53 higher-level ELF access functionality. libdwarf provides access to the
54 DWARF debugging information. libasm provides a programmable assembler
55 interface.
56
57 %description devel -l pl
58 Pakiet elfutils-devel zawiera czê¶æ programistyczn± bibliotek do
59 tworzenia aplikacji obs³uguj±cych skompilowane obiekty. libelf pozwala
60 na dostêp do wnêtrzno¶ci formatu pliku obiektowego ELF, co pozwala na
61 ogl±danie ró¿nych sekcji pliku ELF. libebl udostêpnia funkcjonalno¶æ
62 dostêpu do plików ELF trochê wy¿szego poziomu. libdwarf pozwala na
63 dostêp do informacji DWARF s³u¿±cych do odpluskwiania. libasm
64 udostêpnia programowalny interfejs asemblera.
65
66 %package libelf
67 Summary:        Library to read and write ELF files
68 Summary(pl):    Biblioteki do odczytu i zapisu plików ELF
69 Group:          Libraries
70 #Obsoletes:     libelf
71
72 %description libelf
73 The elfutils-libelf package provides a DSO which allows reading and
74 writing ELF files on a high level. Third party programs depend on this
75 package to read internals of ELF files. The programs of the elfutils
76 package use it also to generate new ELF files.
77
78 %description libelf -l pl
79 Pakiet elfutils-libelf udostêpnia bibliotekê dzielon±, która pozwala
80 na wysokopoziomowe czytanie i zapisywanie plików ELF. Inne programy
81 wymagaj± tego pakietu, aby odczytywaæ zawarto¶æ plików ELF. Programy z
82 pakietu elfutils u¿ywaj± jej tak¿e do generowania nowych plików ELF.
83
84 %package static
85 Summary:        Static libraries to handle compiled objects
86 Summary(pl):    Statyczne biblioteki do obs³ugi skompilowanych obiektów
87 Group:          Development/Libraries
88 Obsoletes:      libelf-static
89 Requires:       elfutils-devel = %{version}-%{release}
90
91 %description static
92 The elfutils-static package contains the static libraries to create
93 applications for handling compiled objects. libelf allows you to
94 access the internals of the ELF object file format, so you can see the
95 different sections of an ELF file. libebl provides some higher-level
96 ELF access functionality. libdwarf provides access to the DWARF
97 debugging information. libasm provides a programmable assembler
98 interface.
99
100 %description static -l pl
101 Pakiet elfutils-static zawiera statyczne biblioteki do tworzenia
102 aplikacji obs³uguj±cych skompilowane obiekty. libelf pozwala na dostêp
103 do wnêtrzno¶ci formatu pliku obiektowego ELF, co pozwala na ogl±danie
104 ró¿nych sekcji pliku ELF. libebl udostêpnia funkcjonalno¶æ dostêpu do
105 plików ELF trochê wy¿szego poziomu. libdwarf pozwala na dostêp do
106 informacji DWARF s³u¿±cych do odpluskwiania. libasm udostêpnia
107 programowalny interfejs asemblera.
108
109 %prep
110 %setup -q
111 %patch -p1
112
113 %build
114 %{__gettextize}
115 %{__aclocal}
116 %{__autoheader}
117 %{__automake}
118 %{__autoconf}
119 %configure \
120         --program-prefix=%{_programprefix} \
121         --enable-shared
122
123 %{__make}
124
125 %install
126 rm -rf $RPM_BUILD_ROOT
127 install -d $RPM_BUILD_ROOT%{_prefix}
128
129 # *OBJEXT must be passed to workaround problem with messed gettext,
130 # which doesn't like *-po dir names
131 %{__make} install \
132         DESTDIR=$RPM_BUILD_ROOT \
133         CATOBJEXT=.gmo INSTOBJEXT=.mo
134
135 chmod +x $RPM_BUILD_ROOT%{_prefix}/%{_lib}/lib*.so*
136 chmod +x $RPM_BUILD_ROOT%{_prefix}/%{_lib}/elfutils/lib*.so*
137
138 %find_lang libelf
139 %find_lang libasm
140 %find_lang libdwarf
141 %find_lang libebl
142 %find_lang %{name}
143 cat libasm.lang libdwarf.lang libebl.lang >> %{name}.lang
144
145 %clean
146 rm -rf ${RPM_BUILD_ROOT}
147
148 %post   -p /sbin/ldconfig
149 %postun -p /sbin/ldconfig
150
151 %post   libelf -p /sbin/ldconfig
152 %postun libelf -p /sbin/ldconfig
153
154 %files -f %{name}.lang
155 %defattr(644,root,root,755)
156 %doc README TODO
157 %attr(755,root,root) %{_bindir}/*
158 %attr(755,root,root) %{_libdir}/lib*-*.so
159 %dir %{_libdir}/elfutils
160 %attr(755,root,root) %{_libdir}/elfutils/lib*.so
161 %exclude %{_libdir}/libelf-*.so
162
163 %files devel
164 %defattr(644,root,root,755)
165 %doc libdwarf/AVAILABLE
166 %{_includedir}/*
167 %{_libdir}/lib*.so
168 %exclude %{_libdir}/lib*-*.so
169
170 %files libelf -f libelf.lang
171 %defattr(644,root,root,755)
172 %attr(755,root,root) %{_libdir}/libelf-*.so
173
174 %files static
175 %defattr(644,root,root,755)
176 %{_libdir}/lib*.a
This page took 0.096849 seconds and 4 git commands to generate.