]> git.pld-linux.org Git - packages/elfutils.git/blame - elfutils.spec
- release 5
[packages/elfutils.git] / elfutils.spec
CommitLineData
d5753979
AF
1Summary: A collection of utilities and DSOs to handle compiled objects.
2Name: elfutils
3Version: 0.76
2a18e913 4Release: 5
d5753979
AF
5License: GPL
6Group: Development/Tools
ecbc8f89 7#URL: file://home/devel/drepper
d5753979
AF
8Source0: %{name}-%{version}.tar.gz
9Requires: elfutils-libelf = %{version}-%{release}
10BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
11BuildRequires: gcc >= 3.2
12BuildRequires: sharutils
ecbc8f89 13
ecbc8f89
AF
14%define _programprefix eu-
15
16%description
d5753979
AF
17Elfutils is a collection of utilities, including ld (a linker), nm
18(for listing symbols from object files), size (for listing the section
19sizes of an object or archive file), strip (for discarding symbols),
20readline (the see the raw ELF file structures), and elflint (to check
21for well-formed ELF files). Also included are numerous helper
22libraries which implement DWARF, ELF, and machine-specific ELF
ecbc8f89
AF
23handling.
24
25%package devel
d5753979
AF
26Summary: Development libraries to handle compiled objects.
27Group: Development/Tools
28Obsoletes: libelf-devel
29Requires: elfutils = %{version}-%{release}
ecbc8f89
AF
30
31%description devel
32The elfutils-devel package contains the libraries to create
d5753979 33applications for handling compiled objects. libelf allows you to
ecbc8f89 34access the internals of the ELF object file format, so you can see the
d5753979
AF
35different sections of an ELF file. libebl provides some higher-level
36ELF access functionality. libdwarf provides access to the DWARF
37debugging information. libasm provides a programmable assembler
ecbc8f89
AF
38interface.
39
40%package libelf
d5753979
AF
41Summary: Library to read and write ELF files.
42Group: Development/Tools
43Obsoletes: libelf
ecbc8f89
AF
44
45%description libelf
46The elfutils-libelf package provides a DSO which allows reading and
d5753979
AF
47writing ELF files on a high level. Third party programs depend on this
48package to read internals of ELF files. The programs of the elfutils
49package use it also to generate new ELF files.
ecbc8f89 50
2a18e913
AF
51%package static
52Summary: Development libraries to handle compiled objects - static.
53Group: Development/Tools
54Obsoletes: libelf-devel
55Requires: elfutils-devel = %{version}-%{release}
56
57%description static
58The elfutils-static package contains the static libraries to create
59applications for handling compiled objects. libelf allows you to
60access the internals of the ELF object file format, so you can see the
61different sections of an ELF file. libebl provides some higher-level
62ELF access functionality. libdwarf provides access to the DWARF
63debugging information. libasm provides a programmable assembler
64interface.
65
66
ecbc8f89
AF
67%prep
68%setup -q
69
70%build
d5753979
AF
71%{__aclocal}
72%{__autoheader}
73%{__automake}
74%{__autoconf}
75%configure \
76 --program-prefix=%{_programprefix} \
77 --enable-shared
ecbc8f89
AF
78
79%install
d5753979
AF
80rm -rf $RPM_BUILD_ROOT
81install -d ${RPM_BUILD_ROOT}%{_prefix}
ecbc8f89 82
d5753979
AF
83%{__make} install \
84 DESTDIR=$RPM_BUILD_ROOT
ecbc8f89
AF
85
86chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/lib*.so*
87chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/elfutils/lib*.so*
88
d5753979
AF
89#%%check
90#make check
ecbc8f89
AF
91
92%clean
93rm -rf ${RPM_BUILD_ROOT}
94
95%post -p /sbin/ldconfig
96
97%postun -p /sbin/ldconfig
98
99%post libelf -p /sbin/ldconfig
100
101%postun libelf -p /sbin/ldconfig
102
103%files
d5753979 104%defattr(644,root,root,755)
2a18e913
AF
105%doc README TODO
106%attr(755,root,root) %{_bindir}/*
107%attr(755,root,root) %{_libdir}/lib*-*.so
ecbc8f89 108%dir %{_libdir}/elfutils
2a18e913
AF
109%attr(755,root,root) %{_libdir}/elfutils/lib*.so
110%exclude %{_libdir}/libelf-*.so
ecbc8f89
AF
111
112%files devel
2a18e913 113%doc libdwarf/AVAILABLE
d5753979 114%defattr(644,root,root,755)
2a18e913
AF
115%{_includedir}/*
116%{_libdir}/lib*.so
117%exclude %{_libdir}/lib*-*.so
ecbc8f89
AF
118
119%files libelf
d5753979 120%defattr(644,root,root,755)
2a18e913
AF
121%{_libdir}/libelf-*.so
122
123%files static
124%defattr(644,root,root,755)
125%{_libdir}/lib*.a
This page took 0.08416 seconds and 4 git commands to generate.