Added %{release} to buildroot Remove --prefix=%{buildroot} from %configure
line Added %config(noreplace) to netconfig file.
This commit is contained in:
parent
baafab5c8d
commit
2cf59bc459
@ -6,7 +6,7 @@ Group: System Environment/Libraries
|
|||||||
License: GPL
|
License: GPL
|
||||||
URL: http://nfsv4.bullopensource.org/
|
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
|
Source0: http://nfsv4.bullopensource.org/tarballs/tirpc/%{name}-%{version}.tar.bz2
|
||||||
|
|
||||||
BuildRequires: automake, autoconf, libtool, pkgconfig
|
BuildRequires: automake, autoconf, libtool, pkgconfig
|
||||||
@ -51,7 +51,7 @@ developing programs which use the tirpc library.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fisv
|
autoreconf -fisv
|
||||||
%configure --enable-gss --prefix=%{buildroot}
|
%configure --enable-gss
|
||||||
make all
|
make all
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -59,7 +59,7 @@ rm -rf %{buildroot}
|
|||||||
mkdir -p %{buildroot}/etc
|
mkdir -p %{buildroot}/etc
|
||||||
make install DESTDIR=%{buildroot}
|
make install DESTDIR=%{buildroot}
|
||||||
# Don't package .a or .la files
|
# 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
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -72,7 +72,7 @@ rm -rf %{buildroot}
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc AUTHORS ChangeLog NEWS README
|
%doc AUTHORS ChangeLog NEWS README
|
||||||
%{_libdir}/libtirpc.so.*
|
%{_libdir}/libtirpc.so.*
|
||||||
%{_sysconfdir}/netconfig
|
%config(noreplace)%{_sysconfdir}/netconfig
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(0644,root,root,755)
|
%defattr(0644,root,root,755)
|
||||||
|
Loading…
Reference in New Issue
Block a user