libpwquality-vl.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. Summary: A library for password generation and password quality checking
  2. Name: libpwquality
  3. Version: 1.2.4
  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: http://libpwquality.fedorahosted.org/
  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. %find_lang libpwquality
  63. %check
  64. # Nothing yet
  65. %post -p /sbin/ldconfig
  66. %postun -p /sbin/ldconfig
  67. %files -f libpwquality.lang
  68. %defattr(-,root,root,-)
  69. %doc COPYING README NEWS AUTHORS
  70. %{_bindir}/pwmake
  71. %{_bindir}/pwscore
  72. %{_moduledir}/pam_pwquality.so
  73. /%{_lib}/libpwquality.so.*
  74. %config(noreplace) %{_secconfdir}/pwquality.conf
  75. %{_mandir}/man1/*
  76. %{_mandir}/man5/*
  77. %{_mandir}/man8/*
  78. %files devel
  79. %defattr(-,root,root,-)
  80. %{_includedir}/pwquality.h
  81. %{_libdir}/libpwquality.so
  82. %{_libdir}/pkgconfig/*.pc
  83. %files -n python-pwquality
  84. %defattr(-,root,root,-)
  85. %{python_sitearch}/pwquality.so
  86. %changelog
  87. * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.4-1
  88. - new upstream release
  89. * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.3-2
  90. - rebuild with VineSeed environment
  91. * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.3-1
  92. - new upstream release
  93. * Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-1
  94. - initial build for Vine Linux
  95. * Thu Aug 16 2012 Tomas Mraz <tmraz@redhat.com> 1.2.0-1
  96. - add maxsequence check for too long monotonic character sequence.
  97. - clarified alternative licensing to GPLv2+.
  98. - add local_users_only option to skip the pwquality checks for
  99. non-locals. (thanks to Stef Walter)
  100. * Wed Jun 13 2012 Tomas Mraz <tmraz@redhat.com> 1.1.1-1
  101. - use rpm built-in filtering of provides (rhbz#830153)
  102. - remove strain debug fprintf() (rhbz#831567)
  103. * Thu May 24 2012 Tomas Mraz <tmraz@redhat.com> 1.1.0-1
  104. - fix leak when throwing PWQError exception
  105. - added pkgconfig file
  106. - call the simplicity checks before the cracklib check
  107. - add enforce_for_root option to the PAM module
  108. - updated translations from Transifex
  109. * Thu Dec 8 2011 Tomas Mraz <tmraz@redhat.com> 1.0.0-1
  110. - added a few additional password quality checks
  111. - bugfix in configuration file parsing
  112. * Fri Nov 11 2011 Tomas Mraz <tmraz@redhat.com> 0.9.9-1
  113. - added python bindings and documentation
  114. * Mon Oct 10 2011 Tomas Mraz <tmraz@redhat.com> 0.9-2
  115. - fixes for problems found in review (missing BR on pam-devel,
  116. License field, Source URL, Require pam, other cleanups)
  117. * Mon Oct 3 2011 Tomas Mraz <tmraz@redhat.com> 0.9-1
  118. - first spec file for libpwquality