- Use macros bit more and fix noreplace on folder, which is not

good.

OBS-URL: https://build.opensuse.org/package/show/security/keyutils?expand=0&rev=25
This commit is contained in:
Tomáš Chvátal 2013-07-29 08:38:34 +00:00 committed by Git OBS Bridge
parent 85f8df5b78
commit aaf6a49dac
2 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jul 29 08:37:36 UTC 2013 - tchvatal@suse.com
- Use macros bit more and fix noreplace on folder, which is not
good.
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Jun 16 16:59:30 UTC 2013 - lmuelle@suse.com Sun Jun 16 16:59:30 UTC 2013 - lmuelle@suse.com

View File

@ -60,10 +60,10 @@ This package provides headers and libraries for building key utilities.
%patch3 -p1 %patch3 -p1
%build %build
make %{?_smp_mflags} NO_ARLIB=1 CFLAGS="$RPM_OPT_FLAGS" CC="%__cc" make %{?_smp_mflags} NO_ARLIB=1 CFLAGS="%{optflags}" CC="%__cc"
%install %install
make install NO_ARLIB=1 DESTDIR=$RPM_BUILD_ROOT LIBDIR=/%_lib USRLIBDIR=/usr/%_lib make install NO_ARLIB=1 DESTDIR=%{buildroot} LIBDIR=/%{_lib} USRLIBDIR=%{_libdir}
%post -n %lname -p /sbin/ldconfig %post -n %lname -p /sbin/ldconfig
@ -74,10 +74,10 @@ make install NO_ARLIB=1 DESTDIR=$RPM_BUILD_ROOT LIBDIR=/%_lib USRLIBDIR=/usr/%_l
%doc README LICENCE.GPL %doc README LICENCE.GPL
/sbin/* /sbin/*
/bin/* /bin/*
/usr/share/keyutils %{_datadir}/keyutils
%{_mandir}/*/* %{_mandir}/*/*
%config(noreplace) /etc/* %config(noreplace) %{_sysconfdir}/request-key.conf
%dir /etc/request-key.d/ %dir %{_sysconfdir}/request-key.d/
%files -n %lname %files -n %lname
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -86,7 +86,7 @@ make install NO_ARLIB=1 DESTDIR=$RPM_BUILD_ROOT LIBDIR=/%_lib USRLIBDIR=/usr/%_l
%files devel %files devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
/usr/%{_lib}/libkeyutils.so %{_libdir}/libkeyutils.so
%{_includedir}/* %{_includedir}/*
%changelog %changelog