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
10 Source1001: libelf0.manifest
11 BuildRequires: pkgconfig
12 BuildRoot: %{_tmppath}/%{name}-%{version}-build
15 The libelf package contains a library for accessing ELF object files.
16 Libelf allows you to access the internals of the ELF object file
17 format, so you can see the different sections of an ELF file.
20 Summary: Include Files and Libraries mandatory for Development
21 Group: Development/Libraries/C and C++
22 Requires: %{name} = %{version}
23 Requires: glibc-devel,
24 Conflicts: libelf1-devel
27 This package contains all necessary include files and libraries needed
28 to develop applications that require these.
31 %package noasan-static
32 Summary: An ELF Object File Access Library (static library build without of ASan)
33 Group: Development/Libraries/C and C++
34 Requires: glibc-devel,
35 Conflicts: libelf1-devel
37 %description noasan-static
38 This package contains static library built without of ASan.
39 It is required for static builds in full ASan sanitized environment.
43 %setup -q -n libelf-%{version}
47 export LDFLAGS+=" -z relro"
48 %configure --disable-nls
52 /usr/bin/gcc-unforce-options
55 ../configure --disable-nls --disable-shared
56 make %{?_smp_mflags} all
61 make install instroot=%{buildroot}
62 %{?asan:cp ./noasan/lib/libelf.a %{buildroot}%{_libdir}/libelf-noasan.a}
63 # remove the wrapper includes
64 rm -f %{buildroot}%{_includedir}/*.h
65 # remove unneeded *.la and *.a files
66 rm -f %{buildroot}%{_libdir}/*.la
68 %post -p /sbin/ldconfig
70 %postun -p /sbin/ldconfig
73 %manifest %{name}.manifest
76 %{_libdir}/libelf.so.*
79 %manifest %{name}.manifest
83 %{_libdir}/pkgconfig/libelf.pc
88 %manifest %{name}.manifest
90 %{_libdir}/libelf-noasan.a