Use %{name}-%{version} in URL field Remove Requires(postun) and (pre) on

ldconfig Replace %makeinstall with make install DESTDIR=%{buildroot}.
This commit is contained in:
Steve Dickson 2006-08-15 11:37:48 +00:00
parent 8628a83046
commit db51df57b1
2 changed files with 4 additions and 7 deletions

View File

@ -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

View File

@ -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