[packages/libpwquality] - initial - version 1.2.0

kiesiu kiesiu at pld-linux.org
Fri Sep 21 19:15:35 CEST 2012


commit ff27d4866b34887d66ec7cf4e0b5e28d1f54ba2f
Author: Łukasz Kieś <kiesiu at pld-linux.org>
Date:   Fri Sep 21 19:14:15 2012 +0200

    - initial
    - version 1.2.0

 libpwquality.spec | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 116 insertions(+)
---
diff --git a/libpwquality.spec b/libpwquality.spec
new file mode 100644
index 0000000..9564e2b
--- /dev/null
+++ b/libpwquality.spec
@@ -0,0 +1,116 @@
+#
+# Conditional build
+%bcond_without	static_libs	# don't build static library
+#
+Summary:	Library for password quality checking and generating random passwords
+Name:		libpwquality
+Version:	1.2.0
+Release:	1
+License:	BSD
+Group:		Libraries
+Source0:	https://fedorahosted.org/releases/l/i/libpwquality/%{name}-%{version}.tar.bz2
+# Source0-md5:	8827419118064539db70090cbed5cb21
+URL:		https://fedorahosted.org/libpwquality/
+BuildRequires:	cracklib-devel >= 2.8
+BuildRequires:	gettext-devel
+BuildRequires:	pam-devel
+BuildRequires:	pkgconfig
+BuildRequires:	python-devel
+Requires:	cracklib-dicts >= 2.8
+Requires:	pam
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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:	Header files for libpwquality library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki libpwquality
+Group:		Development/Libraries
+Requires:	%{name} = %{epoch}:%{version}-%{release}
+
+%description devel
+Header files for libpwquality library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libpwquality.
+
+%package static
+Summary:	Static libpwquality library
+Summary(pl.UTF-8):	Statyczna biblioteka libpwquality
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{epoch}:%{version}-%{release}
+
+%description static
+Static libpwquality library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libpwquality.
+
+%package -n python-pwquality
+Summary:	Python bindings for the libpwquality library
+Group:		Libraries
+Requires:	%{name}-devel = %{epoch}:%{version}-%{release}
+
+%description -n python-pwquality
+Python bindings for the libpwquality library.
+
+%prep
+%setup -q
+
+%build
+%configure \
+	--with-securedir=/%{_lib}/security \
+	%{__enable_disable static_libs static}
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_pwquality.{a,la}
+
+%find_lang %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc README NEWS AUTHORS
+%attr(755,root,root) %{_bindir}/pwmake
+%attr(755,root,root) %{_bindir}/pwscore
+%attr(755,root,root) %{_libdir}/libpwquality.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libpwquality.so.1
+%attr(755,root,root) /%{_lib}/security/pam_pwquality.so
+%config(noreplace) %verify(not md5 mtime size) /etc/security/pwquality.conf
+%{_mandir}/man1/pwmake.1*
+%{_mandir}/man1/pwscore.1*
+%{_mandir}/man5/pwquality.conf.5*
+%{_mandir}/man8/pam_pwquality.8*
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/pwquality.h
+%{_libdir}/libpwquality.so
+%{_libdir}/libpwquality.la
+%{_pkgconfigdir}/pwquality.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libpwquality.a
+%endif
+
+%files -n python-pwquality
+%defattr(644,root,root,755)
+%{py_sitedir}/pwquality.so
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libpwquality.git/commitdiff/ff27d4866b34887d66ec7cf4e0b5e28d1f54ba2f



More information about the pld-cvs-commit mailing list