libpwquality-vl.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. Summary: A library for password generation and password quality checking
  2. Name: libpwquality
  3. Version: 1.2.0
  4. Release: 1%{?_dist_release}
  5. # The package is BSD licensed with option to relicense as GPLv2+
  6. # - this option is redundant as the BSD license allows that anyway.
  7. License: BSD or GPLv2+
  8. Group: System Environment/Base
  9. Source0: http://fedorahosted.org/releases/l/i/libpwquality/libpwquality-%{version}.tar.bz2
  10. %global _moduledir /%{_lib}/security
  11. %global _secconfdir %{_sysconfdir}/security
  12. Requires: cracklib-dicts >= 2.8
  13. Requires: pam%{?_isa}
  14. BuildRequires: cracklib
  15. BuildRequires: gettext
  16. BuildRequires: pam-devel
  17. BuildRequires: python-devel
  18. URL: http://libpwquality.fedorahosted.org/
  19. # we don't want to provide private python extension libs
  20. %define __provides_exclude_from ^%{python_sitearch}/.*\.so$.
  21. %description
  22. This is a library for password quality checks and generation
  23. of random passwords that pass the checks.
  24. This library uses the cracklib and cracklib dictionaries
  25. to perform some of the checks.
  26. %package devel
  27. Group: Development/Libraries
  28. Summary: Files needed for developing PAM-aware applications and modules for PAM
  29. Requires: libpwquality%{?_isa} = %{version}-%{release}
  30. Requires: pkgconfig
  31. %description devel
  32. Files needed for development of applications using the libpwquality
  33. library.
  34. See the pwquality.h header file for the API.
  35. %package -n python-pwquality
  36. Group: Development/Libraries
  37. Summary: Python bindings for the libpwquality library
  38. Requires: libpwquality%{?_isa} = %{version}-%{release}
  39. %description -n python-pwquality
  40. This is pwquality Python module that provides Python bindings
  41. for the libpwquality library. These bindings can be used
  42. for easy password quality checking and generation of random
  43. pronounceable passwords from Python applications.
  44. %prep
  45. %setup -q
  46. %build
  47. %configure \
  48. --with-securedir=/%{_lib}/security \
  49. --with-pythonsitedir=%{python_sitearch} \
  50. --disable-static
  51. make %{?_smp_mflags}
  52. %install
  53. make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
  54. pushd $RPM_BUILD_ROOT%{_libdir}
  55. mv libpwquality.so.* $RPM_BUILD_ROOT/%{_lib}/
  56. ln -sf ../../%{_lib}/libpwquality.so.*.* libpwquality.so
  57. popd
  58. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  59. rm -f $RPM_BUILD_ROOT%{_moduledir}/*.la
  60. %find_lang libpwquality
  61. %check
  62. # Nothing yet
  63. %post -p /sbin/ldconfig
  64. %postun -p /sbin/ldconfig
  65. %files -f libpwquality.lang
  66. %defattr(-,root,root,-)
  67. %doc COPYING README NEWS AUTHORS
  68. %{_bindir}/pwmake
  69. %{_bindir}/pwscore
  70. %{_moduledir}/pam_pwquality.so
  71. /%{_lib}/libpwquality.so.*
  72. %config(noreplace) %{_secconfdir}/pwquality.conf
  73. %{_mandir}/man1/*
  74. %{_mandir}/man5/*
  75. %{_mandir}/man8/*
  76. %files devel
  77. %defattr(-,root,root,-)
  78. %{_includedir}/pwquality.h
  79. %{_libdir}/libpwquality.so
  80. %{_libdir}/pkgconfig/*.pc
  81. %files -n python-pwquality
  82. %defattr(-,root,root,-)
  83. %{python_sitearch}/pwquality.so
  84. %changelog
  85. * Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-1
  86. - initial build for Vine Linux
  87. * Thu Aug 16 2012 Tomas Mraz <tmraz@redhat.com> 1.2.0-1
  88. - add maxsequence check for too long monotonic character sequence.
  89. - clarified alternative licensing to GPLv2+.
  90. - add local_users_only option to skip the pwquality checks for
  91. non-locals. (thanks to Stef Walter)
  92. * Wed Jun 13 2012 Tomas Mraz <tmraz@redhat.com> 1.1.1-1
  93. - use rpm built-in filtering of provides (rhbz#830153)
  94. - remove strain debug fprintf() (rhbz#831567)
  95. * Thu May 24 2012 Tomas Mraz <tmraz@redhat.com> 1.1.0-1
  96. - fix leak when throwing PWQError exception
  97. - added pkgconfig file
  98. - call the simplicity checks before the cracklib check
  99. - add enforce_for_root option to the PAM module
  100. - updated translations from Transifex
  101. * Thu Dec 8 2011 Tomas Mraz <tmraz@redhat.com> 1.0.0-1
  102. - added a few additional password quality checks
  103. - bugfix in configuration file parsing
  104. * Fri Nov 11 2011 Tomas Mraz <tmraz@redhat.com> 0.9.9-1
  105. - added python bindings and documentation
  106. * Mon Oct 10 2011 Tomas Mraz <tmraz@redhat.com> 0.9-2
  107. - fixes for problems found in review (missing BR on pam-devel,
  108. License field, Source URL, Require pam, other cleanups)
  109. * Mon Oct 3 2011 Tomas Mraz <tmraz@redhat.com> 0.9-1
  110. - first spec file for libpwquality