passwd-vl.spec 2.9 KB

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