]> git.pld-linux.org Git - packages/checkpassword-pam.git/blobdiff - checkpassword-pam.spec
- move binary to sbin
[packages/checkpassword-pam.git] / checkpassword-pam.spec
index 9a84d109e8abd660ed597f7335f0949fc84002b2..daf4993a148b7568a8231a95a067b5aa5d5f7e10 100644 (file)
@@ -2,13 +2,14 @@ Summary:      The uniform PAM password-checking interface
 Summary(pl):   Jednolity interfejs do sprawdzania haseĀ³ przez PAM
 Name:          checkpassword-pam
 Version:       0.99
-Release:       1
+Release:       1.4
 License:       GPL
 Group:         Applications/System
 Source0:       http://dl.sourceforge.net/checkpasswd-pam/%{name}-%{version}.tar.gz
 # Source0-md5: 47db7b71f281115b030d4947f09f4374
 URL:           http://checkpasswd-pam.sourceforge.net/
 BuildRequires: pam-devel
+BuildRequires: rpmbuild(macros) >= 1.177
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -47,15 +48,27 @@ obs
 %install
 rm -rf $RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8}
-install checkpassword-pam $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man8}
+install checkpassword-pam $RPM_BUILD_ROOT%{_sbindir}
+ln -s ../sbin/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
 install checkpassword-pam.8 $RPM_BUILD_ROOT%{_mandir}/man8
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%triggerpostun -- %{name} <= 0.99-1
+# TODO: any knowledge which configuration files to automatically "fix"?
+%banner %{name} -e <<EOF
+
+The %{name} binary was moved to %{_sbindir}, please update your
+configuration, as the compatability symlink might dissapear in the
+future!
+
+EOF
+
 %files
 %defattr(644,root,root,755)
-%doc README
+%doc AUTHORS README NEWS
 %attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_sbindir}/*
 %attr(644,root,root) %{_mandir}/man8/*
This page took 0.095645 seconds and 4 git commands to generate.