Name: libelf0 Version: 0.8.13 Release: 0 License: LGPL-2.1+ Summary: An ELF Object File Access Library Url: http://www.mr511.de/software/ Group: System/Libraries Source: libelf-%{version}.tar.bz2 Source2: baselibs.conf Source1001: libelf0.manifest BuildRequires: pkgconfig BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The libelf package contains a library for accessing ELF object files. Libelf allows you to access the internals of the ELF object file format, so you can see the different sections of an ELF file. %package devel Summary: Include Files and Libraries mandatory for Development Group: Development/Libraries/C and C++ Requires: %{name} = %{version} Requires: glibc-devel, Conflicts: libelf1-devel %description devel This package contains all necessary include files and libraries needed to develop applications that require these. %if %{asan} %package noasan-static Summary: An ELF Object File Access Library (static library build without of ASan) Group: Development/Libraries/C and C++ Requires: glibc-devel, Conflicts: libelf1-devel %description noasan-static This package contains static library built without of ASan. It is required for static builds in full ASan sanitized environment. %endif %prep %setup -q -n libelf-%{version} cp %{SOURCE1001} . %build export LDFLAGS+=" -z relro" %configure --disable-nls make %{?_smp_mflags} %if %{asan} /usr/bin/gcc-unforce-options mkdir noasan cd noasan ../configure --disable-nls --disable-shared make %{?_smp_mflags} all cd .. %endif %install make install instroot=%{buildroot} %{?asan:cp ./noasan/lib/libelf.a %{buildroot}%{_libdir}/libelf-noasan.a} # remove the wrapper includes rm -f %{buildroot}%{_includedir}/*.h # remove unneeded *.la and *.a files rm -f %{buildroot}%{_libdir}/*.la %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %manifest %{name}.manifest %defattr(-,root,root) %license COPYING.LIB %{_libdir}/libelf.so.* %files devel %manifest %{name}.manifest %defattr(-,root,root) %{_libdir}/libelf.so %{_libdir}/libelf.a %{_libdir}/pkgconfig/libelf.pc %{_includedir}/libelf %if %{asan} %files noasan-static %manifest %{name}.manifest %defattr(-,root,root) %{_libdir}/libelf-noasan.a %endif %changelog