From ccbb23d50077f7d04e0b6c0f64a787e1232f570f Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 6 Nov 2012 07:14:11 -0800 Subject: [PATCH] add packaging --- packaging/prelink.spec | 52 +++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/packaging/prelink.spec b/packaging/prelink.spec index 9a4acf0..e5de02f 100644 --- a/packaging/prelink.spec +++ b/packaging/prelink.spec @@ -1,19 +1,19 @@ Name: prelink +BuildRequires: gcc-c++ +BuildRequires: glibc-devel-static +BuildRequires: libelf0-devel +Summary: An ELF Prelinking Utility +License: GPL-2.0+ +Group: System/Base Version: 20111012 Release: 0 -License: GPL-2.0+ -Summary: An ELF Prelinking Utility Url: http://people.redhat.com/jakub/prelink/ -Group: System/Base -Source: http://people.redhat.com/jakub/prelink/%{name}-%{version}.tar.bz2 -Source2: %{name}.conf -Patch0: %{name}-make_it_cool.diff -Patch3: %{name}-tests.diff -Patch4: %{name}-make-dry-run-verbose.diff +Source: http://people.redhat.com/jakub/prelink/%name-%version.tar.bz2 +Source2: %name.conf +Patch0: %name-make_it_cool.diff +Patch3: %name-tests.diff +Patch4: %name-make-dry-run-verbose.diff Patch5: fix-copydtneeded.patch -BuildRequires: gcc-c++ -BuildRequires: glibc-devel-static -BuildRequires: libelf0-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build # It does not work at all on ia64, so let's listen upstream supported # architectures @@ -43,21 +43,21 @@ export LD_AS_NEEDED=0 export -n MALLOC_PERTURB_ unset MALLOC_PERTURB_ -CFLAGS="%{optflags}" \ +CFLAGS="$RPM_OPT_FLAGS" \ ./configure --prefix=/usr --mandir=%{_mandir} || cat config.log -make %{?_smp_mflags} +make %{?jobs:-j%jobs} %check make -C testsuite check-harder %install -%make_install -mkdir -p %{buildroot}/etc -sed -e "s,LIBDIR,%{_lib}," %{SOURCE2} > %{buildroot}%{_sysconfdir}/prelink.conf -mkdir -p $FILLUP_DIR %{buildroot}/sbin/conf.d -install -m 0755 -d %{buildroot}%{_localstatedir}/lib/prelink -mkdir -p %{buildroot}%{_sysconfdir}/rpm -cat > %{buildroot}%{_sysconfdir}/rpm/macros.prelink < $RPM_BUILD_ROOT/etc/prelink.conf +mkdir -p $FILLUP_DIR $RPM_BUILD_ROOT/sbin/conf.d +install -m 0755 -d $RPM_BUILD_ROOT/var/lib/prelink +mkdir -p $RPM_BUILD_ROOT/etc/rpm +cat > $RPM_BUILD_ROOT/etc/rpm/macros.prelink <