Accepting request 540576 from GNOME:Factory
- Build python3 version of bindings as well (forwarded request 540166 from pluskalm) OBS-URL: https://build.opensuse.org/request/show/540576 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpwquality?expand=0&rev=12
This commit is contained in:
commit
2f99e41050
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 9 09:34:50 UTC 2017 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Build python3 version of bindings as well
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 15 21:51:14 UTC 2016 - mgorse@suse.com
|
Fri Apr 15 21:51:14 UTC 2016 - mgorse@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libpwquality
|
# spec file for package libpwquality
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,12 +18,11 @@
|
|||||||
|
|
||||||
%define _pammoduledir /%{_lib}/security
|
%define _pammoduledir /%{_lib}/security
|
||||||
%define _secconfdir %{_sysconfdir}/security
|
%define _secconfdir %{_sysconfdir}/security
|
||||||
|
|
||||||
Name: libpwquality
|
Name: libpwquality
|
||||||
Version: 1.3.0
|
Version: 1.3.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Library for password quality checking and generating random passwords
|
Summary: Library for password quality checking and generating random passwords
|
||||||
License: BSD-3-Clause or GPL-2.0+
|
License: BSD-3-Clause OR GPL-2.0+
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Url: https://fedorahosted.org/libpwquality/
|
Url: https://fedorahosted.org/libpwquality/
|
||||||
Source: https://fedorahosted.org/releases/l/i/libpwquality/%{name}-%{version}.tar.bz2
|
Source: https://fedorahosted.org/releases/l/i/libpwquality/%{name}-%{version}.tar.bz2
|
||||||
@ -31,9 +30,9 @@ BuildRequires: cracklib-devel
|
|||||||
BuildRequires: gettext-devel
|
BuildRequires: gettext-devel
|
||||||
BuildRequires: pam-devel
|
BuildRequires: pam-devel
|
||||||
# Needed for pkgconfig() Provides
|
# Needed for pkgconfig() Provides
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: python-devel
|
BuildRequires: python2-devel
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRequires: python3-devel
|
||||||
%lang_package
|
%lang_package
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -67,7 +66,7 @@ This package contains simple tools that use libpwquality.
|
|||||||
Summary: Library for password quality checking -- Development Files
|
Summary: Library for password quality checking -- Development Files
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libpwquality1 = %{version}
|
Requires: libpwquality1 = %{version}
|
||||||
Requires: pkg-config
|
Requires: pkgconfig
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
libpwquality is a library for password quality checks and generation
|
libpwquality is a library for password quality checks and generation
|
||||||
@ -85,38 +84,56 @@ Requires: pam
|
|||||||
The pam_pwquality PAM module can be used instead of pam_cracklib to
|
The pam_pwquality PAM module can be used instead of pam_cracklib to
|
||||||
disallow weak new passwords when user's login password is changed.
|
disallow weak new passwords when user's login password is changed.
|
||||||
|
|
||||||
%package -n python-pwquality
|
%package -n python2-pwquality
|
||||||
Summary: Library for password quality checking -- Python bindings
|
Summary: Library for password quality checking -- Python bindings
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
|
Provides: python-pwquality = %{version}-%{release}
|
||||||
|
Obsoletes: python-pwquality < %{version}-%{release}
|
||||||
|
|
||||||
%description -n python-pwquality
|
%description -n python2-pwquality
|
||||||
libpwquality is a library for password quality checks and generation
|
libpwquality is a library for password quality checks and generation
|
||||||
of random passwords that pass the checks.
|
of random passwords that pass the checks.
|
||||||
|
|
||||||
This package provides Python bindings for the libpwquality library.
|
This package provides Python bindings for the libpwquality library.
|
||||||
|
|
||||||
|
%package -n python3-pwquality
|
||||||
|
Summary: Library for password quality checking -- Python 3 bindings
|
||||||
|
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
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
cp -r python python3
|
||||||
%configure \
|
%configure \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--with-securedir=%{_pammoduledir} \
|
--with-securedir=%{_pammoduledir} \
|
||||||
--with-pythonsitedir=%{python_sitearch}
|
--with-pythonsitedir=%{python_sitearch}
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
pushd python3
|
||||||
|
%python3_build
|
||||||
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
rm %{buildroot}%{_libdir}/*.la
|
pushd python3
|
||||||
rm %{buildroot}%{_pammoduledir}/*.la
|
%python3_install
|
||||||
|
popd
|
||||||
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
%find_lang %{name} %{?no_lang_C}
|
%find_lang %{name} %{?no_lang_C}
|
||||||
|
|
||||||
%post -n libpwquality1 -p /sbin/ldconfig
|
%post -n libpwquality1 -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libpwquality1 -p /sbin/ldconfig
|
%postun -n libpwquality1 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n libpwquality1
|
%files -n libpwquality1
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc AUTHORS COPYING NEWS README
|
%doc AUTHORS COPYING NEWS README
|
||||||
%{_libdir}/libpwquality.so.*
|
%{_libdir}/libpwquality.so.*
|
||||||
%config(noreplace) %{_secconfdir}/pwquality.conf
|
%config(noreplace) %{_secconfdir}/pwquality.conf
|
||||||
@ -124,27 +141,25 @@ rm %{buildroot}%{_pammoduledir}/*.la
|
|||||||
%{_mandir}/man5/pwquality.conf.5%{?ext_man}
|
%{_mandir}/man5/pwquality.conf.5%{?ext_man}
|
||||||
|
|
||||||
%files tools
|
%files tools
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_bindir}/pwmake
|
%{_bindir}/pwmake
|
||||||
%{_bindir}/pwscore
|
%{_bindir}/pwscore
|
||||||
%{_mandir}/man1/pwmake.1%{?ext_man}
|
%{_mandir}/man1/pwmake.1%{?ext_man}
|
||||||
%{_mandir}/man1/pwscore.1%{?ext_man}
|
%{_mandir}/man1/pwscore.1%{?ext_man}
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_includedir}/pwquality.h
|
%{_includedir}/pwquality.h
|
||||||
%{_libdir}/libpwquality.so
|
%{_libdir}/libpwquality.so
|
||||||
%{_libdir}/pkgconfig/pwquality.pc
|
%{_libdir}/pkgconfig/pwquality.pc
|
||||||
|
|
||||||
%files -n pam_pwquality
|
%files -n pam_pwquality
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_pammoduledir}/pam_pwquality.so
|
%{_pammoduledir}/pam_pwquality.so
|
||||||
%{_mandir}/man8/pam_pwquality.8%{?ext_man}
|
%{_mandir}/man8/pam_pwquality.8%{?ext_man}
|
||||||
|
|
||||||
%files -n python-pwquality
|
%files -n python2-pwquality
|
||||||
%defattr(-,root,root)
|
%{python2_sitearch}/*
|
||||||
%{python_sitearch}/pwquality.so
|
|
||||||
%{python_sitearch}/pwquality*egg-info
|
%files -n python3-pwquality
|
||||||
|
%{python3_sitearch}/*
|
||||||
|
|
||||||
%files lang -f libpwquality.lang
|
%files lang -f libpwquality.lang
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user