1 %define modulename pam_dotfile
2 Summary: A PAM module which allows users to have more than one password
3 Summary(pl.UTF-8): Moduł pozwalający na posiadanie więcej niż jednego hasła
4 Name: pam-%{modulename}
9 Group: Applications/System
10 Source0: http://0pointer.de/lennart/projects/pam_dotfile/%{modulename}-%{version}.tar.gz
11 # Source0-md5: 3c7249f4e6d8a9bd756bb4e09f2ed907
12 URL: http://0pointer.net/lennart/projects/pam_dotfile/
13 BuildRequires: autoconf >= 2.57
14 BuildRequires: automake
15 BuildRequires: libtool
17 BuildRequires: pam-devel
18 BuildRequires: sed >= 4.0
19 Obsoletes: pam_dotfile
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 pam_dotfile is a PAM module which allows users to have more than one
24 password for a single account, each for a different service.
26 %description -l pl.UTF-8
27 pam_dotfile jest modułem PAM pozwalającym użytkownikom na posiadanie
28 więcej niż jednego hasła do jednego konta, różne hasła do różnych
32 %setup -q -n %{modulename}-%{version}
34 sed -i -e "s#root#$(id -u)#g" src/Makefile*
35 sed -i -e "s#/lib/security#/%{_lib}/security#g" configure.ac
48 rm -rf $RPM_BUILD_ROOT
51 DESTDIR=$RPM_BUILD_ROOT
53 rm -f $RPM_BUILD_ROOT/%{_lib}/security/*.la
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %attr(755,root,root) /%{_lib}/security/pam_dotfile.so
62 %attr(755,root,root) %{_bindir}/pam*
63 %attr(4755,root,root) %{_sbindir}/pam*