SPECS: prelink.spec - updated from fedora core prelink-0.3.6-2.src...

glen glen at pld-linux.org
Fri Jan 6 14:09:50 CET 2006


Author: glen                         Date: Fri Jan  6 13:09:50 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- updated from fedora core prelink-0.3.6-2.src.rpm

---- Files affected:
SPECS:
   prelink.spec (1.27 -> 1.28) 

---- Diffs:

================================================================
Index: SPECS/prelink.spec
diff -u SPECS/prelink.spec:1.27 SPECS/prelink.spec:1.28
--- SPECS/prelink.spec:1.27	Wed Dec 21 16:35:01 2005
+++ SPECS/prelink.spec	Fri Jan  6 14:09:44 2006
@@ -2,12 +2,13 @@
 #
 # Conditional build:
 %bcond_without	selinux		# build without SELinux support
+%bcond_with	tests		# perform tests (break right now, missing deps?)
 #
 Summary:	Tool to optimize relocations in object files
 Summary(pl):	Narzędzie optymalizujące relokacje w plikach obiektów
 Name:		prelink
 Version:	20050610
-Release:	1
+Release:	0.1
 License:	GPL
 Group:		Development/Tools
 Source0:	ftp://people.redhat.com/jakub/prelink/%{name}-%{version}.tar.bz2
@@ -15,6 +16,8 @@
 Source1:	%{name}.conf
 Source2:	ftp://people.redhat.com/jakub/prelink/%{name}.pdf
 # Source2-md5:	50946b654da9ccb26230cc1e00ccc53c
+Source3:	%{name}.cron
+Source4:	%{name}.sysconfig
 Patch0:		%{name}-Makefile.patch
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -52,36 +55,58 @@
 	%{!?with_selinux:ac_cv_lib_selinux_is_selinux_enabled=no} \
 
 %{__make}
+%if %{with tests}
+%{__make} -C testsuite check-harder
+%{__make} -C testsuite check-cycle
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rpm}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{sysconfig,rpm,cron.daily}}
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
 install %{SOURCE2} .
+cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.daily/prelink
+cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/prelink
 
-cat > $RPM_BUILD_ROOT/etc/rpm/macros.prelink <<"EOF"
+install -d $RPM_BUILD_ROOT/var/{lib/misc,log}
+touch $RPM_BUILD_ROOT/var/lib/misc/prelink.full
+touch $RPM_BUILD_ROOT/var/lib/misc/prelink.quick
+touch $RPM_BUILD_ROOT/var/lib/misc/prelink.force
+touch $RPM_BUILD_ROOT/var/log/prelink.log
+
+cat > $RPM_BUILD_ROOT/etc/rpm/macros.prelink <<'EOF'
 # rpm-4.1 verifies prelinked libraries using a prelink undo helper.
 #       Note: The 2nd token is used as argv[0] and "library" is a
 #       placeholder that will be deleted and replaced with the appropriate
 #       library file path.
-%%__prelink_undo_cmd	/usr/sbin/prelink prelink -y library
+%%__prelink_undo_cmd %{_sbindir}/prelink prelink -y library
 EOF
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+umask 002
+touch /var/lib/misc/prelink.force
+
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README THANKS TODO prelink.pdf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/prelink.conf
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/prelink
+/etc/rpm/macros.prelink
+%attr(755,root,root) /etc/cron.daily/prelink
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) %{_sbindir}/*
 %{_mandir}/man?/*
-%config(noreplace) %verify(not md5 mtime size) /etc/prelink.conf
-/etc/rpm/macros.prelink
+%attr(644,root,root) %verify(not md5 mtime size) %ghost %config(missingok,noreplace) /var/lib/misc/prelink.full
+%attr(644,root,root) %verify(not md5 mtime size) %ghost %config(missingok,noreplace) /var/lib/misc/prelink.quick
+%attr(644,root,root) %verify(not md5 mtime size) %ghost %config(missingok,noreplace) /var/lib/misc/prelink.force
+%attr(644,root,root) %verify(not md5 mtime size) %ghost %config(missingok,noreplace) /var/log/prelink.log
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -89,6 +114,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.28  2006/01/06 13:09:44  glen
+- updated from fedora core prelink-0.3.6-2.src.rpm
+
 Revision 1.27  2005/12/21 15:35:01  freetz
 - too much adapterize (?)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/prelink.spec?r1=1.27&r2=1.28&f=u



More information about the pld-cvs-commit mailing list