%global _hardened_build 1 %global libname joedog %global current 0 Name: lib%{libname} Version: %{current}.1.0 Release: 2%{?dist} Summary: Repack of the common code base of fido and siege as shared library Group: System Environment/Libraries License: GPLv2+ and LGPLv2+ URL: http://www.%{libname}.org/ Source0: https://github.com/rmohr/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz %{?el5:BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)} BuildRequires: libtool %description %{name} is a library containing the common code base of siege and fido by Jeff Fulmer. It consists mostly of convenience wrapper functions and a hash table implementation. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description devel %{summary} %prep %setup -q autoreconf -fi %build # force Immediate binding for hardenend build with autotools libtool export LDFLAGS="$LDFLAGS -Wl,-z,now" %configure --disable-static make %{?_smp_mflags} %install %if 0%{?el5} rm -rf %{buildroot} make install DESTDIR=%{buildroot} %else %make_install %endif rm -f %{buildroot}%{_libdir}/%{name}.la %clean %{?el5:rm -rf %{buildroot}} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc README ChangeLog COPYING %{_libdir}/%{name}.so.%{current} %{_libdir}/%{name}.so.%{version} %files devel %{_includedir}/%{libname} %{_libdir}/%{name}.so %changelog * Mon Jun 24 2013 Roman Mohr - 0.1.0-2 - fixed as proposed in bz #977367 comment 2 - enabled hardened build, trimmed BuildRequires, added Group for el5 - replaced hardcoded name with %%{name}, added %%{libname} - some clean-ups and improvement of readabilty - moving source to github * Sun Jun 23 2013 Roman Mohr - 0.1.0-1 - initial release