diff --git a/cracklib.spec b/cracklib.spec index b7ffe7fdfe5560ba140901940759223c0a0f2693..ac23b66dcf37f58c7d525ad0da5db2d83eecf69b 100644 --- a/cracklib.spec +++ b/cracklib.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 # Reflects the values hard-coded in various Makefile.am's in the source tree. %define dictdir %{_datadir}/cracklib %define dictpath %{dictdir}/pw_dict @@ -5,7 +6,7 @@ Summary: A password-checking library Name: cracklib Version: 2.9.6 -Release: 15%{?dist} +Release: 15%{anolis_release}%{?dist} Group: System Environment/Libraries Source0: https://github.com/cracklib/cracklib/releases/download/cracklib-%{version}/cracklib-%{version}.tar.gz Source1: https://github.com/cracklib/cracklib/releases/download/cracklib-%{version}/cracklib-words-%{version}.gz @@ -40,6 +41,13 @@ BuildRequires: python2-devel Conflicts: cracklib-dicts < 2.8 # The cracklib-format script calls gzip, but without a specific path. Requires: gzip +Requires: bash +Requires: glibc +Provides: /usr/sbin/cracklib-check +Provides: /usr/sbin/cracklib-format +Provides: /usr/sbin/cracklib-packer +Provides: /usr/sbin/cracklib-unpacker +Provides: /usr/sbin/create-cracklib-dict %description CrackLib tests passwords to determine whether they match certain @@ -98,6 +106,14 @@ contains the utilities necessary for the creation of new dictionaries. If you are installing CrackLib, you should also install cracklib-dicts. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %setup -q -a 2 @@ -207,7 +223,6 @@ EOF %ldconfig_scriptlets %files -f %{name}.lang -%doc README README-WORDS NEWS README-LICENSE AUTHORS %{!?_licensedir:%global license %%doc} %license COPYING.LIB %{_libdir}/libcrack.so.* @@ -234,7 +249,13 @@ EOF %{_libdir}/python*/site-packages/*.py* %endif +%files doc +%doc README README-WORDS NEWS README-LICENSE AUTHORS + %changelog +* Fri Jul 15 2022 Weisson - 2.9.6-15.0.1 +- Add doc sub package + * Mon Nov 26 2018 Tomáš Mráz - 2.9.6-15 - Fix regression in dictionary creation and lookup