From c6c7b34427e66e21af17ae9a1f416f7b928b9215 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Oct 12 2011 12:47:31 +0000 Subject: Import of the initial package of libpwquality. --- diff --git a/.gitignore b/.gitignore index e69de29..786d0ae 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/libpwquality-0.9.tar.bz2 diff --git a/libpwquality.spec b/libpwquality.spec new file mode 100644 index 0000000..79b7c8b --- /dev/null +++ b/libpwquality.spec @@ -0,0 +1,88 @@ +Summary: A library for password generation and password quality checking +Name: libpwquality +Version: 0.9 +Release: 2%{?dist} +# The package is BSD licensed with option to relicense as GPL+ +# - this option is redundant as the BSD license allows that anyway. +License: BSD or GPL+ +Group: System Environment/Base +Source0: http://fedorahosted.org/releases/l/i/libpwquality/libpwquality-%{version}.tar.bz2 + +%global _moduledir /%{_lib}/security +%global _secconfdir %{_sysconfdir}/security + +Requires: cracklib-dicts >= 2.8 +Requires: pam%{?_isa} +BuildRequires: cracklib-devel +BuildRequires: gettext +BuildRequires: pam-devel + +URL: http://libpwquality.fedorahosted.org/ + +%description +This 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 +Group: Development/Libraries +Summary: Files needed for developing PAM-aware applications and modules for PAM +Requires: libpwquality%{?_isa} = %{version}-%{release} + +%description devel +Files needed for development of applications using the libpwquality +library. +See the pwquality.h header file for the API. + +%prep +%setup -q + +%build +%configure \ + --libdir=/%{_lib} \ + --disable-static + +make %{?_smp_mflags} + +%install +make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' + +mkdir -p $RPM_BUILD_ROOT%{_libdir} +pushd $RPM_BUILD_ROOT%{_libdir} +ln -sf ../../%{_lib}/libpwquality.so.*.* libpwquality.so +popd +rm -f $RPM_BUILD_ROOT/%{_lib}/*.so +rm -f $RPM_BUILD_ROOT/%{_lib}/*.la +rm -f $RPM_BUILD_ROOT%{_moduledir}/*.la + +%find_lang libpwquality + +%check +# Nothing yet + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files -f libpwquality.lang +%defattr(-,root,root,-) +%doc COPYING README NEWS AUTHORS +%{_bindir}/pwmake +%{_bindir}/pwscore +%{_moduledir}/pam_pwquality.so +/%{_lib}/libpwquality.so.* +%config(noreplace) %{_secconfdir}/pwquality.conf + +%files devel +%defattr(-,root,root,-) +%{_includedir}/pwquality.h +%{_libdir}/libpwquality.so + +%changelog +* Mon Oct 10 2011 Tomas Mraz 0.9-2 +- fixes for problems found in review (missing BR on pam-devel, + License field, Source URL, Require pam, other cleanups) + +* Mon Oct 3 2011 Tomas Mraz 0.9-1 +- first spec file for libpwquality diff --git a/sources b/sources index e69de29..cf4214c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +bcc2d2151abd1fa0157274df2adf13b0 libpwquality-0.9.tar.bz2