Fixed package groups, license
[platform/upstream/libelf0.git] / packaging / libelf0.spec
1 Name:           libelf0
2 Version:        0.8.13
3 Release:        0
4 License:        LGPL-2.1+
5 Summary:        An ELF Object File Access Library
6 Url:            http://www.mr511.de/software/
7 Group:          System/Libraries
8 Source:         libelf-%{version}.tar.bz2
9 Source2:        baselibs.conf
10 BuildRequires:  pkgconfig
11 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
12
13 %description
14 The libelf package contains a library for accessing ELF object files.
15 Libelf allows you to access the internals of the ELF object file
16 format, so you can see the different sections of an ELF file.
17
18 %package devel
19 Summary:        Include Files and Libraries mandatory for Development
20 Group:          Development/Libraries/C and C++
21 Requires:       %{name} = %{version}
22 Requires:       glibc-devel,
23 Conflicts:      libelf1-devel
24
25 %description devel
26 This package contains all necessary include files and libraries needed
27 to develop applications that require these.
28
29 %prep
30 %setup -q -n libelf-%{version}
31
32 %build
33 %configure --disable-nls
34 make %{?_smp_mflags}
35
36 %install
37 make install instroot=%{buildroot}
38 # remove the wrapper includes
39 rm -f %{buildroot}%{_includedir}/*.h
40 # remove unneeded *.la and *.a files
41 rm -f %{buildroot}%{_libdir}/*.la
42
43 %post -p /sbin/ldconfig
44
45 %postun -p /sbin/ldconfig
46
47 %files
48 %defattr(-,root,root)
49 %license COPYING.LIB 
50 %{_libdir}/libelf.so.*
51
52 %files devel
53 %defattr(-,root,root)
54 %{_libdir}/libelf.so
55 %{_libdir}/libelf.a
56 %{_libdir}/pkgconfig/libelf.pc
57 %{_includedir}/libelf
58
59 %changelog