SPECS: cracklib.spec - package python module - fix sl locale name ...

qboosh qboosh at pld-linux.org
Wed Sep 5 18:20:13 CEST 2007


Author: qboosh                       Date: Wed Sep  5 16:20:12 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- package python module
- fix sl locale name instead of killing

---- Files affected:
SPECS:
   cracklib.spec (1.57 -> 1.58) 

---- Diffs:

================================================================
Index: SPECS/cracklib.spec
diff -u SPECS/cracklib.spec:1.57 SPECS/cracklib.spec:1.58
--- SPECS/cracklib.spec:1.57	Wed Sep  5 17:11:14 2007
+++ SPECS/cracklib.spec	Wed Sep  5 18:20:07 2007
@@ -1,7 +1,6 @@
 # $Revision$, $Date$
-#
-# TODO:
-#	- python module
+# TODO: is $(pkgdatadir)/cracklib.magic used for anything?
+#       it's already in file database, so maybe just drop it?
 #
 # Conditional build:
 %bcond_with	words	# bigger words database
@@ -24,6 +23,7 @@
 Source1:	http://dl.sourceforge.net/cracklib/%{name}-words.gz
 # Source1-md5:	d18e670e5df560a8745e1b4dede8f84f
 URL:		http://sourceforge.net/projects/cracklib/
+BuildRequires:	python-devel
 BuildRequires:	words
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -174,7 +174,7 @@
 nouveaux dictionnaires.
 
 %description dicts -l pl.UTF-8
-Pakiet zawiera słowniki cracklib'a dla standardowego
+Pakiet zawiera słowniki crackliba dla standardowego
 /usr/share/dict/words oraz narzędzia do tworzenia nowych słowników.
 
 %description dicts -l pt_BR.UTF-8
@@ -197,6 +197,19 @@
 знаходяться в /usr/share/dict/words. Cracklib-dicts також містить
 утиліти, необхідні для створення нових словників.
 
+%package -n python-cracklib
+Summary:	Python binding for cracklib
+Summary(pl.UTF-8):	Wiązanie Pythona do crackliba
+Group:		Libraries/Python
+Requires:	%{name} = %{version}-%{release}
+%pyrequires_eq	python-libs
+
+%description -n python-cracklib
+Python binding for cracklib.
+
+%description -n python-cracklib -l pl.UTF-8
+Wiązanie Pythona do crackliba.
+
 %prep
 %setup	-q
 %if %{with words}
@@ -217,9 +230,11 @@
 
 util/cracklib-format dicts/cracklib* | util/cracklib-packer $RPM_BUILD_ROOT%{_datadir}/dict/cracklib_dict
 
-%{find_lang} %{name}
+rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a}
 
-sed -i -e 's/.*sl_SI.*//' %{name}.lang
+mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{sl_SI,sl}
+
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -249,12 +264,20 @@
 %attr(755,root,root) %{_sbindir}/*
 %{_datadir}/dict/cracklib_dict*
 
+%files -n python-cracklib
+%defattr(644,root,root,755)
+%attr(755,root,root) %{py_sitedir}/cracklibmodule.so
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.58  2007/09/05 16:20:07  qboosh
+- package python module
+- fix sl locale name instead of killing
+
 Revision 1.57  2007/09/05 15:11:14  baggins
 - rel 2
 - removed non existing locale
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/cracklib.spec?r1=1.57&r2=1.58&f=u



More information about the pld-cvs-commit mailing list