Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.1
libpwquality
libpwquality.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libpwquality.spec of Package libpwquality
# # spec file for package libpwquality # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # 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/ # %define _pammoduledir /%{_lib}/security %define _secconfdir %{_sysconfdir}/security %define libname libpwquality1 %bcond_without python2 Name: libpwquality Version: 1.4.0 Release: 0 Summary: Library for password quality checking and generating random passwords License: BSD-3-Clause OR GPL-2.0+ Group: Development/Libraries/C and C++ Url: https://github.com/libpwquality/libpwquality Source: https://github.com/%{name}/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2 Patch0: libpwquality-pythons.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: cracklib-devel BuildRequires: gettext-devel BuildRequires: libtool BuildRequires: pam-devel BuildRequires: pkgconfig BuildRequires: pkgconfig(python3) %lang_package %if %{with python2} BuildRequires: pkgconfig(python2) %endif %description libpwquality is a library for password quality checks and generation of random passwords that pass the checks. %package -n %{libname} Summary: Library for password quality checking and generating random passwords Group: System/Libraries Requires: cracklib-dict >= 2.8 Recommends: %{name}-lang Recommends: cracklib-dict-full >= 2.8 # To make lang package installable Provides: %{name} %description -n %{libname} libpwquality is a library for password quality checks and generation of random passwords that pass the checks. %package tools Summary: Tools from libpequality, a library for password quality checking 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. %package devel Summary: Development files for libpwquality, a library for password quality checking Group: Development/Libraries/C and C++ Requires: %{libname} = %{version} Requires: pkgconfig %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. %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. %package -n python2-pwquality Summary: Python bindings for libpwquality Group: Development/Libraries/Python Provides: python-pwquality = %{version}-%{release} Obsoletes: python-pwquality < %{version}-%{release} %description -n python2-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. %package -n python3-pwquality Summary: Python 3 bindings for libpwquality Group: Development/Libraries/Python Provides: python-pwquality = %{version}-%{release} Obsoletes: python-pwquality < %{version}-%{release} %description -n python3-pwquality libpwquality is a library for password quality checks and generation of random passwords that pass the checks. This package provides Python 3 bindings for the libpwquality library. %prep %setup -q %patch0 -p1 %build # needed for patch0 autoreconf -fvi %configure \ --disable-static \ --with-securedir=%{_pammoduledir} \ --with-python-binary=%{_bindir}/python3 \ --with-pythonsitedir=%{python3_sitearch} make %{?_smp_mflags} %if %{with python2} pushd python %python_build popd %endif %install %make_install %if %{with python2} pushd python %python_install popd %endif find %{buildroot} -type f -name "*.la" -delete -print %find_lang %{name} %{?no_lang_C} %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files -n %{libname} %doc AUTHORS COPYING NEWS README %{_libdir}/libpwquality.so.* %config(noreplace) %{_secconfdir}/pwquality.conf %{_mandir}/man3/pwquality.3%{?ext_man} %{_mandir}/man5/pwquality.conf.5%{?ext_man} %files tools %{_bindir}/pwmake %{_bindir}/pwscore %{_mandir}/man1/pwmake.1%{?ext_man} %{_mandir}/man1/pwscore.1%{?ext_man} %files devel %{_includedir}/pwquality.h %{_libdir}/libpwquality.so %{_libdir}/pkgconfig/pwquality.pc %files -n pam_pwquality %{_pammoduledir}/pam_pwquality.so %{_mandir}/man8/pam_pwquality.8%{?ext_man} %if %{with python2} %files -n python2-pwquality %{python2_sitearch}/* %endif %files -n python3-pwquality %{python3_sitearch}/* %files lang -f libpwquality.lang %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor