passwd-vl.spec 3.2 KB

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