libpwquality-vl.spec 4.5 KB

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