]> git.pld-linux.org Git - packages/cracklib.git/blobdiff - cracklib.spec
- strict internal dep, don't package autogenerated symlink
[packages/cracklib.git] / cracklib.spec
index 7a9acc9ba7d6170ac9550cad65184c9aea8e1291..90e80b51031b5cebda918e5166ee576b517a80c0 100644 (file)
@@ -1,22 +1,48 @@
+#
+# Conditional build:
+%bcond_with    ssp     # disable stack-smashing protector (vide dietlibc.spec)
+#
 Summary:       Password checking library
+Summary(es):   Biblioteca de chequeo de contraseñas
 Summary(fr):   Bibliothèque de vérification de mots de passe
 Summary(pl):   Biblioteka sprawdzania hase³
+Summary(pt_BR):        Biblioteca de checagem de senhas
+Summary(ru):   âÉÂÌÉÏÔÅËÁ ÐÒÏ×ÅÒËÉ ÐÁÒÏÌÅÊ
 Summary(tr):   Parola denetim kitaplýðý
+Summary(uk):   â¦Â̦ÏÔÅËÁ ÐÅÒÅצÒËÉ ÐÁÒÏ̦×
 Name:          cracklib
 Version:       2.7
-Release:       14
+Release:       18
 License:       Artistic
 Group:         Libraries
-Source0:       ftp://coast.cs.purdue.edu/pub/tools/unix/cracklib/%{name}_%{version}.tgz
+Source0:       ftp://coast.cs.purdue.edu/pub/tools/unix/libs/cracklib/%{name}_%{version}.tgz
+# Source0-md5: 7f810e310c7f2df33d1eaa2b41ab2435
 Patch0:                %{name}.patch
 Patch1:                %{name}-pld.patch
 Patch2:                %{name}-nss.patch
+Patch3:                %{name}-libdir.patch
 BuildRequires: words
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Checks passwords for security related characteristics - length,
-uniqueness, whether they are in a word database, etc.
+CrackLib tests passwords to determine whether they match certain
+security-oriented characteristics. You can use CrackLib to stop users
+from choosing passwords which would be easy to guess. CrackLib
+performs certain tests:
+
+- It tries to generate words from a username and gecos entry and
+  checks those words against the password;
+- It checks for simplistic patterns in passwords;
+- It checks for the password in a dictionary.
+
+CrackLib is actually a library containing a particular C function
+which is used to check the password, as well as other C functions.
+CrackLib is not a replacement for a passwd program; it must be used in
+conjunction with an existing passwd program.
+
+Install the cracklib package if you need a program to check users'
+passwords to see if they are at least minimally secure. If you install
+CrackLib, you'll also want to install the cracklib-dicts package.
 
 %description -l de
 Überprüft Paßwörter auf Sicherheitsmerkmale - Länge, Eindeutigkeit,
@@ -30,39 +56,93 @@ longueur, unicit
 Sprawdza has³a pod k±tem bezpieczeñstwa - d³ugo¶æ, unikalno¶æ, czy
 wystêpuj± w s³owniu itp.
 
+%description -l pt_BR
+Inclui os dicionários cracklib para o padrão /usr/dict/words, assim
+como os utilitários necessários para criar dicionários.
+
+%description -l ru
+CrackLib ÐÒÏ×ÅÒÑÅÔ ÐÁÒÏÌÉ ÎÁ ÐÒÅÄÍÅÔ ÓÏÏÔ×ÅÔÓÔ×ÉÑ ÎÅËÏÔÏÒÙÍ ËÒÉÔÅÒÉÑÍ
+ÂÅÚÏÐÁÓÎÏÓÔÉ. ïÎÁ ÍÏÖÅÔ ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁÎÁ ÄÌÑ ÐÒÅÄÏÔ×ÒÁÝÅÎÉÑ ×ÙÂÏÒÁ
+ÐÏÌØÚÏ×ÁÔÅÌÑÍÉ ÌÅÇËÏÕÇÁÄÙ×ÁÅÍÙÈ ÐÁÒÏÌÅÊ. CrackLib ÐÒÏÉÚ×ÏÄÉÔ ÔÁËÉÅ
+ÔÅÓÔÙ:
+
+- çÅÎÅÒÉÒÕÅÔ ÓÌÏ×Á ÉÚ ÉÍÅÎÉ ÐÏÌØÚÏ×ÁÔÅÌÑ É ÐÏÌÑ gecos É ÓÒÁ×ÎÉ×ÁÅÔ ÉÈ
+  Ó ÐÁÒÏÌÅÍ;
+- éÝÅÔ × ÐÁÒÏÌÑÈ ÐÒÏÓÔÙÅ ÛÁÂÌÏÎÙ;
+- ðÒÏ×ÅÒÑÅÔ ÐÁÒÏÌØ ÎÁ ÎÁÌÉÞÉÅ ÅÇÏ × ÓÌÏ×ÁÒÅ.
+
+CrackLib - ÜÔÏ, ÓÏÂÓÔ×ÅÎÎÏ, ÂÉÂÌÉÏÔÅËÁ, ÓÏÄÅÒÖÁÝÁÑ ÓÐÅÃÉÆÉÞÅÓËÕÀ
+ÆÕÎËÃÉÀ C ÄÌÑ ÕÇÁÄÙ×ÁÎÉÑ ÐÁÒÏÌÅÊ É ÎÅËÏÔÏÒÙÅ ÄÒÕÇÉÅ ÆÕÎËÃÉÉ. üÔÏ ÎÅ
+ÚÁÍÅÎÁ ÐÒÏÇÒÁÍÍÙ passwd, ÅÅ ÎÁÄÏ ÉÓÐÏÌØÚÏ×ÁÔØ ÓÏ×ÍÅÓÔÎÏ Ó ÓÕÝÅÓÔ×ÕÀÝÅÊ
+ÐÒÏÇÒÁÍÍÏÊ passwd.
+
 %description -l tr
 Parolalarýn uzunluklarý, sistemde tek olmalarý, sözcük veri tabanýnda
 bulunmamalarý gibi güvenlikle ilgili özelliklerini kontrol eder.
 
+%description -l uk
+CrackLib ÐÅÒÅצÒѤ ÐÁÒÏ̦ ÎÁ ×¦ÄÐÏצÄΦÓÔØ ÄÅÑËÉÍ ËÒÉÔÅÒ¦ÑÍ ÂÅÚÐÅËÉ.
+÷ÏÎÁ ÍÏÖÅ ÂÕÔÉ ×ÉËÏÒÉÓÔÁÎÁ ÄÌÑ ÚÁÐϦÇÁÎÎÑ ×ÉÂÏÒÕ ËÏÒÉÓÔÕ×ÁÞÁÍÉ
+ÐÁÒÏ̦×, Ñ˦ ÌÅÇËϠצÄÇÁÄÁÔÉ. ÷ÏÎÁ ×ÉËÏÎÕ¤ ÔÁ˦ ÔÅÓÔÉ:
+
+- çÅÎÅÒÕ¤ ÓÌÏ×Á Ú ¦ÍÅΦ ËÏÒÉÓÔÕ×ÁÞÁ ÔÁ ÐÏÌÑ gecos ¦ ÐÏÒ¦×ÎÀ¤ §È Ú
+  ÐÁÒÏÌÅÍ;
+- ûÕËÁ¤ × ÐÁÒÏÌÑÈ ÐÒÏÓÔ¦ ÛÁÂÌÏÎÉ;
+- ðÅÒÅצÒѤ ÐÁÒÏ̦ ÎÁ ÎÁÑ×ΦÓÔØ §È Õ ÓÌÏ×ÎÉËÕ.
+
+CrackLib - ÃÅ, ×ÌÁÓÎÅ, Â¦Â̦ÏÔÅËÁ, ÝϠͦÓÔÉÔØ ÓÐÅÃÉƦÞÎÕ ÆÕÎËæÀ C ÄÌÑ
+צÄÇÁÄÕ×ÁÎÎÑ ÐÁÒÏ̦נÔÁ ÄÅÑ˦ ¦ÎÛ¦ ÆÕÎËæ§. ãÅ ÎÅ ÚÁͦÎÁ ÐÒÏÇÒÁÍÉ
+passwd, §§ ÔÒÅÂÁ ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ ÓЦÌØÎÏ Ú ¦ÓÎÕÀÞÏÀ ÐÒÏÇÒÁÍÏÀ passwd.
+
 %package devel
 Summary:       Header files and documentation for cracklib
+Summary(es):   Archivos de inclusión y bibliotecas para cracklib
 Summary(pl):   Pliki nag³ówkowe i dokumentacja dla cracklib
+Summary(pt_BR):        Arquivos de inclusão e bibliotecas para a cracklib
 Group:         Development/Libraries
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}-%{release}
 
 %description devel
 Header files and documentation for cracklib.
 
+%description devel -l es
+Este paquete contiene los archivos de inclusión y bibliotecas que se
+necesitan para desarrollar programas que usan cracklib.
+
 %description devel -l pl
 Pliki nag³ówkowe i dokumentacja dla cracklib.
 
+%description devel -l pt_BR
+Este pacote contém os arquivos de inclusão e bibliotecas que são
+necessários para desenvolver programas que usam a cracklib.
+
 %package dicts
 Summary:       Standard dictionaries (/usr/share/dict/words)
 Summary(de):   Standard-Wörterbücher (/usr/share/dict/words)
+Summary(es):   Diccionarios para chequeo de contraseñas
 Summary(fr):   Dictionnaires standards (/usr/share/dict/words)
 Summary(pl):   Standardowe s³owniki (/usr/share/dict/words)
+Summary(pt_BR):        Dicionários para checagem de senhas
+Summary(ru):   óÔÁÎÄÁÒÔÎÙÅ ÓÌÏ×ÁÒÉ CrackLib
 Summary(tr):   Standart sözlükler (/usr/share/dict/words)
+Summary(uk):   óÔÁÎÄÁÒÔΦ ÓÌÏ×ÎÉËÉ CrackLib
 Group:         Applications/System
 
 %description dicts
-Includes the cracklib dictionaries for the standard /usr/dict/words,
-as well as utilities needed to create new dictionaries.
+The cracklib-dicts package includes the CrackLib dictionaries.
+CrackLib will need to use the dictionary appropriate to your system,
+which is normally put in /usr/share/dict/words. Cracklib-dicts also
+contains the utilities necessary for the creation of new dictionaries.
 
 %description dicts -l de
 Enthält die Cracklib-Wörterbücher für die
 Standard-/usr/share/dict/Wörter sowie Utilities zum Erstellen neuer
 Wörterbücher"
 
+%description dicts -l es
+Incluye el diccionario cracklib para el padrón /usr/share/dict/words,
+y utilitarios necesarios a creación de nuevos diccionarios.
+
 %description dicts -l fr
 Contient les dictionnaires cracklib pour le /usr/share/dict/words
 standard, ainsi que les utilitaires nécessaires à la création de
@@ -72,27 +152,47 @@ nouveaux dictionnaires.
 Pakiet zawiera s³owniki cracklib'a dla standardowego
 /usr/share/dict/words oraz narzêdzia do tworzenia nowych s³owników.
 
+%description dicts -l pt_BR
+Inclui o dicionário cracklib para o padrão /usr/dict/words, bem como
+utilitários necessários a criação de novos dicionários.
+
+%description dicts -l ru
+ðÁËÅÔ cracklib-dicts ×ËÌÀÞÁÅÔ ÓÌÏ×ÁÒÉ CrackLib. CrackLib ÂÕÄÕÔ ÎÕÖÎÙ
+ÓÌÏ×ÁÒÉ, ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÅ ×ÁÛÅÊ ÓÉÓÔÅÍÅ, ËÏÔÏÒÙÅ ÏÂÙÞÎÏ ÎÁÈÏÄÑÔÓÑ ×
+/usr/share/dict/words. Cracklib-dicts ÔÁËÖÅ ÓÏÄÅÒÖÉÔ ÕÔÉÌÉÔÙ,
+ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÏÚÄÁÎÉÑ ÎÏ×ÙÈ ÓÌÏ×ÁÒÅÊ.
+
 %description dicts -l tr
 /usr/share/dict/words dosyasý için 'cracklib' kitaplýklarýný ve yeni
 sözlükler yaratýlmasý için gerekli yardýmcý programlarý içerir.
 
+%description dicts -l uk
+ðÁËÅÔ cracklib-dicts Í¦ÓÔÉÔØ ÓÌÏ×ÎÉËÉ CrackLib. CrackLib ÂÕÄÕÔØ
+ÐÏÔÒ¦ÂΦ ÓÌÏ×ÎÉËÉ, ÝϠצÄÐÏצÄÁÀÔØ ×ÁۦʠÓÉÓÔÅͦ, ËÏÔÒ¦ ÚÁÚ×ÉÞÁÊ
+ÚÎÁÈÏÄÑÔØÓÑ × /usr/share/dict/words. Cracklib-dicts ÔÁËÏ֠ͦÓÔÉÔØ
+ÕÔÉ̦ÔÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÓÔ×ÏÒÅÎÎÑ ÎÏ×ÉÈ ÓÌÏ×ÎÉ˦×.
+
 %prep
 %setup -q -n %{name},%{version}
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
-%{__make} all
+%{__make} all \
+       CC="%{__cc}" \
+       OPTFLAGS="%{rpmcflags} %{?with_ssp:-fno-stack-protector}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_libdir},%{_includedir},%{_datadir}/dict}
 
 %{__make} install \
+       libdir=%{_libdir} \
        ROOT=$RPM_BUILD_ROOT
 
-gzip -9nf README MANIFEST LICENCE POSTER HISTORY
+install cracklib/packer.h $RPM_BUILD_ROOT%{_includedir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -102,13 +202,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc {README,MANIFEST,LICENCE,POSTER}.gz
-
-%attr(755,root,root) %{_libdir}/lib*so.*
+%doc README MANIFEST LICENCE POSTER HISTORY
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
 
 %files devel
 %defattr(644,root,root,755)
-%doc HISTORY.gz
 %attr(755,root,root) %{_libdir}/lib*.so
 %{_includedir}/*
 
This page took 0.149804 seconds and 4 git commands to generate.