commit 53fbffbe9fd6872c68731e1c4d28e8caa189bc3d2c6f44ae7ac6071624322540 Author: Vincent Untz Date: Fri Sep 7 21:05:25 2012 +0000 Accepting request 132849 from GNOME:Next New package... OBS-URL: https://build.opensuse.org/request/show/132849 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libpwquality?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libpwquality-1.1.0.tar.bz2 b/libpwquality-1.1.0.tar.bz2 new file mode 100644 index 0000000..b617f44 --- /dev/null +++ b/libpwquality-1.1.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1aad05fd8801165aa5c14badf06d3b8c94b2f4213016e0f09d73a3973c41db93 +size 358017 diff --git a/libpwquality.changes b/libpwquality.changes new file mode 100644 index 0000000..4ee766d --- /dev/null +++ b/libpwquality.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu Jun 7 17:02:52 UTC 2012 - badshah400@gmail.com + +- Initial build (version 1.1.0). + diff --git a/libpwquality.spec b/libpwquality.spec new file mode 100644 index 0000000..d8ac8d5 --- /dev/null +++ b/libpwquality.spec @@ -0,0 +1,130 @@ +# +# spec file for package libpwquality +# +# Copyright (c) 2012 SUSE LINUX Products 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 _moduledir /%{_lib}/security +%define _secconfdir %{_sysconfdir}/security + +Name: libpwquality +Version: 1.1.0 +Release: 0 +Summary: Library for password quality checking and generating random passwords +License: BSD-3-Clause or GPL-2.0 +Group: System/Base +Url: https://fedorahosted.org/libpwquality/ +Source: https://fedorahosted.org/releases/l/i/%{name}/%{name}-%{version}.tar.bz2 +BuildRequires: cracklib-devel +BuildRequires: gettext-devel +BuildRequires: pam-devel +BuildRequires: pkg-config +BuildRequires: python-devel +Requires: cracklib-dict-full >= 2.8 +Requires: pam +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. +This library uses the cracklib and cracklib dictionaries +to perform some of the checks. + +%package devel +Summary: Files needed for developing PAM-aware applications and modules for PAM +Group: Development/Libraries/Other +Requires: libpwquality = %{version} +Requires: pkg-config + +%description devel +libpwquality is a library for password quality checks and generation +of random passwords that pass the checks. +This library uses the cracklib and cracklib dictionaries +to perform some of the checks. + +This package provides files needed for development of applications +using the libpwquality library. + +See the pwquality.h header file for the API. + +%package -n python-pwquality +Summary: Python bindings for the libpwquality library +Group: System/Libraries +Requires: libpwquality = %{version} + +%description -n python-pwquality +libpwquality is a library for password quality checks and generation +of random passwords that pass the checks. +This library uses the cracklib and cracklib dictionaries +to perform some of the checks. + +This package provides Python bindings for the libpwquality library. +These bindings can be used for easy password quality checking and +generation of random pronounceable passwords from Python +applications. + +%prep +%setup -q + +%build +%configure \ + --with-securedir=/%{_lib}/security \ + --with-pythonsitedir=%{python_sitearch} \ + --disable-static + +make %{?_smp_mflags} + +%install +make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' + +pushd $RPM_BUILD_ROOT%{_libdir} +mv libpwquality.so.* $RPM_BUILD_ROOT/%{_lib}/ +ln -sf ../../%{_lib}/libpwquality.so.*.* libpwquality.so +popd +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la +rm -f $RPM_BUILD_ROOT%{_moduledir}/*.la + +%find_lang %{name} %{?no_lang_C} + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files lang -f libpwquality.lang + +%files +%defattr(-,root,root) +%doc COPYING README NEWS AUTHORS +%{_bindir}/pwmake +%{_bindir}/pwscore +%{_moduledir}/pam_pwquality.so +/%{_lib}/libpwquality.so.* +%config(noreplace) %{_secconfdir}/pwquality.conf +%{_mandir}/man1/* +%{_mandir}/man5/* +%{_mandir}/man8/* + +%files devel +%defattr(-,root,root) +%{_includedir}/pwquality.h +%{_libdir}/libpwquality.so +%{_libdir}/pkgconfig/*.pc + +%files -n python-pwquality +%defattr(-,root,root) +%{python_sitearch}/pwquality.so + +%changelog