| 1 | %define WITH_SELINUX 0 |
|---|
| 2 | |
|---|
| 3 | Summary: The passwd utility for setting/changing passwords using PAM. |
|---|
| 4 | Summary(ja): PAM を使用する、パスワードユーティリティ |
|---|
| 5 | Name: passwd |
|---|
| 6 | Version: 0.78 |
|---|
| 7 | Release: 1%{?_dist_release} |
|---|
| 8 | License: BSD |
|---|
| 9 | Group: System Environment/Base |
|---|
| 10 | Source: passwd-%{version}.tar.bz2 |
|---|
| 11 | |
|---|
| 12 | Buildroot: %{_tmppath}/%{name}-root |
|---|
| 13 | Requires: pam >= 0.99, /etc/pam.d/system-auth |
|---|
| 14 | BuildRequires: glib2-devel, libuser-devel, pam-devel |
|---|
| 15 | |
|---|
| 16 | Vendor: Project Vine |
|---|
| 17 | Distribution: Vine Linux |
|---|
| 18 | Packager: daisuke |
|---|
| 19 | |
|---|
| 20 | %description |
|---|
| 21 | The passwd package contains a system utility (passwd) which sets |
|---|
| 22 | and/or changes passwords, using PAM (Pluggable Authentication |
|---|
| 23 | Modules). |
|---|
| 24 | |
|---|
| 25 | To use passwd, you should have PAM installed on your system. |
|---|
| 26 | |
|---|
| 27 | %description -l ja |
|---|
| 28 | passwdパッケージはパスワードを設定/変更する為のユーティリティです。 |
|---|
| 29 | passwdは、PAM(Pluggable Authentication Modules)を使用します。 |
|---|
| 30 | |
|---|
| 31 | %prep |
|---|
| 32 | %setup -q |
|---|
| 33 | |
|---|
| 34 | %build |
|---|
| 35 | %configure \ |
|---|
| 36 | %if %{WITH_SELINUX} |
|---|
| 37 | --with-selinux |
|---|
| 38 | %else |
|---|
| 39 | --without-selinux |
|---|
| 40 | %endif |
|---|
| 41 | %__make %{?_smp_mflags} DEBUG= RPM_OPT_FLAGS="$RPM_OPT_FLAGS" |
|---|
| 42 | |
|---|
| 43 | %install |
|---|
| 44 | %__make install DESTDIR=$RPM_BUILD_ROOT bindir=%{_bindir} mandir=%{_mandir} |
|---|
| 45 | strip $RPM_BUILD_ROOT%{_bindir}/passwd |
|---|
| 46 | install -m 755 -d $RPM_BUILD_ROOT/etc/pam.d/ |
|---|
| 47 | install -m 644 passwd.pamd $RPM_BUILD_ROOT/etc/pam.d/passwd |
|---|
| 48 | |
|---|
| 49 | #rm -f $RPM_BUILD_ROOT/%{_bindir}/{chfn,chsh} |
|---|
| 50 | #rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/{chfn,chsh}.* |
|---|
| 51 | |
|---|
| 52 | %find_lang %{name} |
|---|
| 53 | |
|---|
| 54 | %clean |
|---|
| 55 | rm -rf $RPM_BUILD_ROOT |
|---|
| 56 | |
|---|
| 57 | %files -f %{name}.lang |
|---|
| 58 | %defattr(-,root,root) |
|---|
| 59 | %config /etc/pam.d/passwd |
|---|
| 60 | %attr(4511,root,root) %{_bindir}/passwd |
|---|
| 61 | %{_mandir}/man1/passwd.1* |
|---|
| 62 | |
|---|
| 63 | %changelog |
|---|
| 64 | * Wed Apr 13 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.78-1 |
|---|
| 65 | - new upstream release |
|---|
| 66 | |
|---|
| 67 | * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 0.71-1vl5 |
|---|
| 68 | - applied new versioning policy, spec in utf-8 |
|---|
| 69 | |
|---|
| 70 | * Tue Mar 14 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.71-0vl1 |
|---|
| 71 | - new upstream release |
|---|
| 72 | - build with pam-0.99.3.0 |
|---|
| 73 | |
|---|
| 74 | * Sat Apr 10 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 0.68-8vl1 |
|---|
| 75 | - sync with fedora |
|---|
| 76 | |
|---|
| 77 | * Thu Mar 27 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> |
|---|
| 78 | - 0.64.1-4vl3 |
|---|
| 79 | - rebuild with pam-0.75-48vl1 |
|---|
| 80 | |
|---|
| 81 | * Fri Aug 02 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> |
|---|
| 82 | - 0.64.1-4vl2 |
|---|
| 83 | - rebuild with pam-0.75-39vl1 |
|---|
| 84 | |
|---|
| 85 | * Wed Feb 21 2001 Kunio Murasawa <murasawa@marineroad.com> |
|---|
| 86 | - 0.64.1-4vl1 |
|---|
| 87 | - added Japanese summary and description |
|---|
| 88 | - changed Buildroot |
|---|
| 89 | |
|---|
| 90 | * Wed Jul 12 2000 Prospector <bugzilla@redhat.com> |
|---|
| 91 | - automatic rebuild |
|---|
| 92 | |
|---|
| 93 | * Mon Jun 5 2000 Nalin Dahyabhai <nalin@redhat.com> |
|---|
| 94 | - move man pages to %{_mandir} |
|---|
| 95 | |
|---|
| 96 | * Thu Jun 1 2000 Nalin Dahyabhai <nalin@redhat.com> |
|---|
| 97 | - modify PAM setup to use system-auth |
|---|
| 98 | - modify for building as non-root users |
|---|
| 99 | |
|---|
| 100 | * Mon Feb 7 2000 Bill Nottingham <notting@redhat.com> |
|---|
| 101 | - fix manpage links |
|---|
| 102 | |
|---|
| 103 | * Fri Feb 04 2000 Nalin Dahyabhai <nalin@redhat.com> |
|---|
| 104 | - document --stdin in man page |
|---|
| 105 | - fix for gzipped man pages |
|---|
| 106 | |
|---|
| 107 | * Sat Apr 10 1999 Cristian Gafton <gafton@redhat.com> |
|---|
| 108 | - first build from the new source code base. |
|---|