2012-09-07 23:05:25 +02:00
|
|
|
#
|
|
|
|
# spec file for package libpwquality
|
|
|
|
#
|
2014-08-15 13:49:20 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-09-07 23:05:25 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2012-09-07 23:37:17 +02:00
|
|
|
%define _pammoduledir /%{_lib}/security
|
2012-09-07 23:05:25 +02:00
|
|
|
%define _secconfdir %{_sysconfdir}/security
|
|
|
|
|
|
|
|
Name: libpwquality
|
2014-08-23 15:36:11 +02:00
|
|
|
Version: 1.2.4
|
2012-09-07 23:05:25 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Library for password quality checking and generating random passwords
|
2012-09-07 23:37:17 +02:00
|
|
|
License: BSD-3-Clause or GPL-2.0+
|
|
|
|
Group: System/Libraries
|
2012-09-07 23:05:25 +02:00
|
|
|
Url: https://fedorahosted.org/libpwquality/
|
2013-01-04 10:00:46 +01:00
|
|
|
Source: https://fedorahosted.org/releases/l/i/libpwquality/%{name}-%{version}.tar.bz2
|
2012-09-07 23:05:25 +02:00
|
|
|
BuildRequires: cracklib-devel
|
|
|
|
BuildRequires: gettext-devel
|
|
|
|
BuildRequires: pam-devel
|
2012-09-07 23:37:17 +02:00
|
|
|
# Needed for pkgconfig() Provides
|
2012-09-07 23:05:25 +02:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%lang_package
|
|
|
|
|
|
|
|
%description
|
|
|
|
libpwquality is a library for password quality checks and generation
|
|
|
|
of random passwords that pass the checks.
|
2012-09-07 23:37:17 +02:00
|
|
|
|
|
|
|
%package -n libpwquality1
|
|
|
|
Summary: Library for password quality checking and generating random passwords
|
|
|
|
Group: System/Libraries
|
2014-08-15 13:49:20 +02:00
|
|
|
Requires: cracklib-dict >= 2.8
|
2012-09-07 23:37:17 +02:00
|
|
|
Recommends: %{name}-lang
|
2014-08-15 13:49:20 +02:00
|
|
|
Recommends: cracklib-dict-full >= 2.8
|
2012-09-07 23:37:17 +02:00
|
|
|
# To make lang package installable
|
|
|
|
Provides: %{name}
|
|
|
|
|
|
|
|
%description -n libpwquality1
|
|
|
|
libpwquality is a library for password quality checks and generation
|
|
|
|
of random passwords that pass the checks.
|
|
|
|
|
|
|
|
%package tools
|
|
|
|
Summary: Library for password quality checking -- Tools
|
|
|
|
Group: Productivity/Security
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
libpwquality is a library for password quality checks and generation
|
|
|
|
of random passwords that pass the checks.
|
|
|
|
|
|
|
|
This package contains simple tools that use libpwquality.
|
2012-09-07 23:05:25 +02:00
|
|
|
|
|
|
|
%package devel
|
2012-09-07 23:37:17 +02:00
|
|
|
Summary: Library for password quality checking -- Development Files
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libpwquality1 = %{version}
|
2012-09-07 23:05:25 +02:00
|
|
|
Requires: pkg-config
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
libpwquality is a library for password quality checks and generation
|
|
|
|
of random passwords that pass the checks.
|
|
|
|
|
|
|
|
This package provides files needed for development of applications
|
|
|
|
using the libpwquality library.
|
|
|
|
|
2012-09-07 23:37:17 +02:00
|
|
|
%package -n pam_pwquality
|
|
|
|
Summary: PAM module to disallow weak new passwords
|
|
|
|
Group: System/Libraries
|
|
|
|
Requires: pam
|
|
|
|
|
|
|
|
%description -n pam_pwquality
|
|
|
|
The pam_pwquality PAM module can be used instead of pam_cracklib to
|
|
|
|
disallow weak new passwords when user's login password is changed.
|
2012-09-07 23:05:25 +02:00
|
|
|
|
|
|
|
%package -n python-pwquality
|
2012-09-07 23:37:17 +02:00
|
|
|
Summary: Library for password quality checking -- Python bindings
|
|
|
|
Group: Development/Libraries/Python
|
2012-09-07 23:05:25 +02:00
|
|
|
|
|
|
|
%description -n python-pwquality
|
|
|
|
libpwquality is a library for password quality checks and generation
|
|
|
|
of random passwords that pass the checks.
|
|
|
|
|
|
|
|
This package provides Python bindings for the libpwquality library.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
2012-09-07 23:37:17 +02:00
|
|
|
--disable-static \
|
|
|
|
--with-securedir=%{_pammoduledir} \
|
|
|
|
--with-pythonsitedir=%{python_sitearch}
|
2012-09-07 23:05:25 +02:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2012-09-07 23:37:17 +02:00
|
|
|
%make_install
|
|
|
|
rm %{buildroot}%{_libdir}/*.la
|
|
|
|
rm %{buildroot}%{_pammoduledir}/*.la
|
2012-09-07 23:05:25 +02:00
|
|
|
%find_lang %{name} %{?no_lang_C}
|
|
|
|
|
2012-09-07 23:37:17 +02:00
|
|
|
%post -n libpwquality1 -p /sbin/ldconfig
|
2012-09-07 23:05:25 +02:00
|
|
|
|
2012-09-07 23:37:17 +02:00
|
|
|
%postun -n libpwquality1 -p /sbin/ldconfig
|
2012-09-07 23:05:25 +02:00
|
|
|
|
2012-09-07 23:37:17 +02:00
|
|
|
%files -n libpwquality1
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING NEWS README
|
|
|
|
%{_libdir}/libpwquality.so.*
|
|
|
|
%config(noreplace) %{_secconfdir}/pwquality.conf
|
|
|
|
%{_mandir}/man5/pwquality.conf.5%{?ext_man}
|
2012-09-07 23:05:25 +02:00
|
|
|
|
2012-09-07 23:37:17 +02:00
|
|
|
%files tools
|
2012-09-07 23:05:25 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/pwmake
|
|
|
|
%{_bindir}/pwscore
|
2012-09-07 23:37:17 +02:00
|
|
|
%{_mandir}/man1/pwmake.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/pwscore.1%{?ext_man}
|
2012-09-07 23:05:25 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/pwquality.h
|
|
|
|
%{_libdir}/libpwquality.so
|
2012-09-07 23:37:17 +02:00
|
|
|
%{_libdir}/pkgconfig/pwquality.pc
|
|
|
|
|
|
|
|
%files -n pam_pwquality
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_pammoduledir}/pam_pwquality.so
|
|
|
|
%{_mandir}/man8/pam_pwquality.8%{?ext_man}
|
2012-09-07 23:05:25 +02:00
|
|
|
|
|
|
|
%files -n python-pwquality
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{python_sitearch}/pwquality.so
|
2014-08-23 15:36:11 +02:00
|
|
|
%{python_sitearch}/pwquality*egg-info
|
2012-09-07 23:05:25 +02:00
|
|
|
|
2012-09-07 23:37:17 +02:00
|
|
|
%files lang -f libpwquality.lang
|
|
|
|
|
2012-09-07 23:05:25 +02:00
|
|
|
%changelog
|