From db51df57b1af72a53e313019927ef0cfb5dc968e Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Tue, 15 Aug 2006 11:37:48 +0000 Subject: [PATCH] Use %{name}-%{version} in URL field Remove Requires(postun) and (pre) on ldconfig Replace %makeinstall with make install DESTDIR=%{buildroot}. --- libtirpc-0.1.7-compile.patch | 4 ++-- libtirpc.spec | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/libtirpc-0.1.7-compile.patch b/libtirpc-0.1.7-compile.patch index 36109ba..029ce0b 100644 --- a/libtirpc-0.1.7-compile.patch +++ b/libtirpc-0.1.7-compile.patch @@ -39,5 +39,5 @@ install-exec-local: - cp -p ./doc/etc_netconfig /etc/netconfig - chmod 0644 /etc/netconfig -+ cp -p ./doc/etc_netconfig ${sysconfdir}/netconfig -+ chmod 0644 ${sysconfdir}/netconfig ++ cp -p ./doc/etc_netconfig $(DESTDIR)/etc/netconfig ++ chmod 0644 $(DESTDIR)/etc/netconfig diff --git a/libtirpc.spec b/libtirpc.spec index 4af6438..22e99ea 100644 --- a/libtirpc.spec +++ b/libtirpc.spec @@ -7,13 +7,10 @@ License: GPL URL: http://nfsv4.bullopensource.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n) -Source0: http://nfsv4.bullopensource.org/tarballs/tirpc/libtirpc-0.1.7.tar.bz2 +Source0: http://nfsv4.bullopensource.org/tarballs/tirpc/%{name}-%{version}.tar.bz2 BuildRequires: automake, autoconf, libtool, pkgconfig BuildRequires: libgssapi-devel - -Requires(postun): /sbin/ldconfig -Requires(pre): /sbin/ldconfig Requires: libgssapi %description @@ -61,7 +58,7 @@ make all %install rm -rf %{buildroot} mkdir -p %{buildroot}/etc -%makeinstall +make install DESTDIR=%{buildroot} %post -p /sbin/ldconfig