rebuilt with fixes [release 2.9.7-2mamba;Tue Aug 10 2021]
This commit is contained in:
parent
f9ad1335e3
commit
d3ec2eaf45
BIN
cracklib-words-2.9.7.gz
Normal file
BIN
cracklib-words-2.9.7.gz
Normal file
Binary file not shown.
103
cracklib.spec
103
cracklib.spec
@ -1,30 +1,20 @@
|
|||||||
# Note: if you change CRACKLIB_DICT_PATH you have to change it in the
|
|
||||||
# pam cracklib module as well
|
|
||||||
%define CRACKLIB_DICT_PATH %{_datadir}/dict
|
|
||||||
%define CRACKLIB_DICT_PATHNAME %{CRACKLIB_DICT_PATH}/cracklib_dict
|
|
||||||
|
|
||||||
|
|
||||||
Name: cracklib
|
Name: cracklib
|
||||||
Version: 2.9.7
|
Version: 2.9.7
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: A password-checking library
|
Summary: A password-checking library
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
Source0: https://github.com/cracklib/cracklib.git/v%{version}/cracklib-%{version}.tar.bz2
|
Source0: https://github.com/cracklib/cracklib/releases/download/v%{version}/cracklib-%{version}.tar.bz2
|
||||||
|
Source1: https://github.com/cracklib/cracklib/releases/download/v%{version}/cracklib-words-%{version}.gz
|
||||||
Patch0: cracklib-2.7-redhat.patch.bz2
|
Patch0: cracklib-2.7-redhat.patch.bz2
|
||||||
URL: http://sourceforge.net/projects/cracklib
|
URL: https://sourceforge.net/projects/cracklib
|
||||||
License: Artistic
|
License: Artistic
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
BuildRequires: libpython-devel
|
|
||||||
BuildRequires: libz-devel
|
BuildRequires: libz-devel
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
%if "%{_build}" == "%{_host}"
|
|
||||||
BuildRequires: python >= 2.4.4
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
CrackLib tests passwords to determine whether they match certain security-oriented characteristics.
|
CrackLib tests passwords to determine whether they match certain security-oriented characteristics.
|
||||||
@ -44,9 +34,9 @@ If you install CrackLib, you'll also want to install the cracklib-dicts package.
|
|||||||
%package -n libcrack
|
%package -n libcrack
|
||||||
Summary: A password-checking library
|
Summary: A password-checking library
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Obsoletes: cracklib
|
Provides: cracklib
|
||||||
Provides: cracklib == %{version}
|
Obsoletes: cracklib < 2.9.7
|
||||||
Requires: libcrack-dicts == %{version}-%{release}
|
Requires: libcrack-dicts = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
|
|
||||||
%description -n libcrack
|
%description -n libcrack
|
||||||
CrackLib tests passwords to determine whether they match certain security-oriented characteristics.
|
CrackLib tests passwords to determine whether they match certain security-oriented characteristics.
|
||||||
@ -66,9 +56,9 @@ If you install CrackLib, you'll also want to install the cracklib-dicts package.
|
|||||||
%package -n libcrack-devel
|
%package -n libcrack-devel
|
||||||
Summary: cracklib link library & header file
|
Summary: cracklib link library & header file
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: libcrack = %{version}-%{release}
|
Requires: libcrack = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
Obsoletes: cracklib-devel
|
Provides: cracklib-devel
|
||||||
Provides: cracklib-devel == %{version}
|
Obsoletes: cracklib-devel < 2.9.7
|
||||||
|
|
||||||
%description -n libcrack-devel
|
%description -n libcrack-devel
|
||||||
The cracklib devel package include the needed library link and header files for development.
|
The cracklib devel package include the needed library link and header files for development.
|
||||||
@ -76,56 +66,34 @@ The cracklib devel package include the needed library link and header files for
|
|||||||
%package -n libcrack-dicts
|
%package -n libcrack-dicts
|
||||||
Summary: The standard CrackLib dictionaries
|
Summary: The standard CrackLib dictionaries
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Obsoletes: cracklib-dicts
|
Provides: cracklib-dicts
|
||||||
Provides: cracklib-dicts == %{version}
|
Obsoletes: cracklib-dicts < 2.9.7
|
||||||
|
|
||||||
%description -n libcrack-dicts
|
%description -n libcrack-dicts
|
||||||
The cracklib-dicts package includes the CrackLib 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 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.
|
Cracklib-dicts also contains the utilities necessary for the creation of new dictionaries.
|
||||||
|
|
||||||
If you are installing CrackLib, you should also install cracklib-dicts.
|
If you are installing CrackLib, you should also install cracklib-dicts.
|
||||||
|
|
||||||
%package -n python-cracklib
|
%debug_package
|
||||||
Summary: Python cracklib library module
|
|
||||||
Group: System/Libraries
|
|
||||||
Requires: libcrack = %{version}
|
|
||||||
|
|
||||||
%description -n python-cracklib
|
|
||||||
Python cracklib library module.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
#chmod +x util/cracklib-format
|
chmod +x util/cracklib-format
|
||||||
|
|
||||||
|
mkdir -p dicts
|
||||||
|
install %{SOURCE1} dicts/
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd src
|
|
||||||
./autogen.sh
|
|
||||||
%configure
|
%configure
|
||||||
%make DEFAULT_CRACKLIB_DICT=%{CRACKLIB_DICT_PATHNAME}
|
|
||||||
|
%make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||||
#install -d %{buildroot}%{_includedir}
|
|
||||||
#install -d %{buildroot}%{_libdir}
|
|
||||||
#install -d %{buildroot}%{_sbindir}
|
|
||||||
#install -m 644 %{SOURCE1} %{buildroot}%{_libdir}/pw_dict
|
|
||||||
cd src
|
|
||||||
%makeinstall DEFAULT_CRACKLIB_DICT=%{CRACKLIB_DICT_PATHNAME}
|
|
||||||
|
|
||||||
# install dict
|
%makeinstall
|
||||||
mkdir -p %{buildroot}%{CRACKLIB_DICT_PATH}
|
util/cracklib-format dicts/cracklib* | util/cracklib-packer %{buildroot}/%{_datadir}/cracklib/pw_dict
|
||||||
make -C util clean
|
|
||||||
%if "%{_build}" != "%{_host}"
|
|
||||||
make -C util DEFAULT_CRACKLIB_DICT=%{buildroot}%{CRACKLIB_DICT_PATHNAME} CC=%{_build}-gcc LDADD="-lcrack"
|
|
||||||
export PATH=%{_sbindir}:%{_bindir}:./util:$PATH
|
|
||||||
./util/create-cracklib-dict -o %{buildroot}%{CRACKLIB_DICT_PATHNAME} ./dicts/*
|
|
||||||
%else
|
|
||||||
make dict DEFAULT_CRACKLIB_DICT=%{buildroot}%{CRACKLIB_DICT_PATHNAME}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# rm -f %{buildroot}%{_libdir}/pw_dict
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
@ -137,37 +105,32 @@ cd ..
|
|||||||
|
|
||||||
%files -n libcrack -f %{name}.lang
|
%files -n libcrack -f %{name}.lang
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_sbindir}/cracklib-*
|
|
||||||
%{_datadir}/cracklib/cracklib.magic
|
|
||||||
%{_datadir}/cracklib/cracklib-small
|
|
||||||
%{_libdir}/libcrack.so.*
|
%{_libdir}/libcrack.so.*
|
||||||
|
%dir %{_datadir}/cracklib
|
||||||
|
%{_datadir}/cracklib/cracklib.magic
|
||||||
|
%doc COPYING.LIB
|
||||||
|
|
||||||
%files -n libcrack-devel
|
%files -n libcrack-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_sbindir}/create-cracklib-dict
|
|
||||||
%{_libdir}/libcrack.so
|
%{_libdir}/libcrack.so
|
||||||
%{_includedir}/crack.h
|
%{_includedir}/crack.h
|
||||||
%{_includedir}/packer.h
|
%{_includedir}/packer.h
|
||||||
%{_libdir}/libcrack.a
|
%{_libdir}/libcrack.a
|
||||||
%{_libdir}/libcrack.la
|
%{_libdir}/libcrack.la
|
||||||
|
|
||||||
%if "%{_build}" == "%{_host}"
|
|
||||||
%files -n python-cracklib
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%{python_sitelib}/cracklib.*
|
|
||||||
%{python_sitearch}/_cracklib.a
|
|
||||||
%{python_sitearch}/_cracklib.la
|
|
||||||
%{python_sitearch}/_cracklib.so
|
|
||||||
%{python_sitelib}/test_cracklib.py*
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -n libcrack-dicts
|
%files -n libcrack-dicts
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{CRACKLIB_DICT_PATHNAME}.hwm
|
%{_sbindir}/create-cracklib-dict
|
||||||
%{CRACKLIB_DICT_PATHNAME}.pwd
|
%{_sbindir}/cracklib-*
|
||||||
%{CRACKLIB_DICT_PATHNAME}.pwi
|
%{_datadir}/cracklib/cracklib-small
|
||||||
|
%{_datadir}/cracklib/pw_dict.hwm
|
||||||
|
%{_datadir}/cracklib/pw_dict.pwd
|
||||||
|
%{_datadir}/cracklib/pw_dict.pwi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 10 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.9.7-2mamba
|
||||||
|
- rebuilt with fixes
|
||||||
|
|
||||||
* Sat Oct 26 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.9.7-1mamba
|
* Sat Oct 26 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.9.7-1mamba
|
||||||
- update to 2.9.7
|
- update to 2.9.7
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user