Added %{release} to buildroot Remove --prefix=%{buildroot} from %configure

line Added %config(noreplace) to netconfig file.
This commit is contained in:
Steve Dickson 2006-08-16 00:07:14 +00:00
parent baafab5c8d
commit 2cf59bc459

View File

@ -6,7 +6,7 @@ Group: System Environment/Libraries
License: GPL
URL: http://nfsv4.bullopensource.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: http://nfsv4.bullopensource.org/tarballs/tirpc/%{name}-%{version}.tar.bz2
BuildRequires: automake, autoconf, libtool, pkgconfig
@ -51,7 +51,7 @@ developing programs which use the tirpc library.
%build
autoreconf -fisv
%configure --enable-gss --prefix=%{buildroot}
%configure --enable-gss
make all
%install
@ -59,7 +59,7 @@ rm -rf %{buildroot}
mkdir -p %{buildroot}/etc
make install DESTDIR=%{buildroot}
# Don't package .a or .la files
rm -f $RPM_BUILD_ROOT%{_libdir}/*.{a,la}
rm -f %{buildroot}%{_libdir}/*.{a,la}
%post -p /sbin/ldconfig
@ -72,7 +72,7 @@ rm -rf %{buildroot}
%defattr(-,root,root)
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/libtirpc.so.*
%{_sysconfdir}/netconfig
%config(noreplace)%{_sysconfdir}/netconfig
%files devel
%defattr(0644,root,root,755)