Accepting request 1240449 from GNOME:Factory
- pwquality.conf moved from /etc/security to /usr/lib/security This is already supported. I have updated the docu upstream: https://github.com/libpwquality/libpwquality/pull/95 (forwarded request 1240176 from schubi2) OBS-URL: https://build.opensuse.org/request/show/1240449 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpwquality?expand=0&rev=27
This commit is contained in:
commit
8ac9b64dce
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 24 14:46:02 UTC 2025 - Stefan Schubert <schubi@suse.com>
|
||||||
|
|
||||||
|
- pwquality.conf moved from /etc/security to /usr/lib/security
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jan 10 10:52:20 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
|
Fri Jan 10 10:52:20 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
@ -16,7 +16,11 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?suse_version} >= 1550
|
||||||
|
%define _secconfdir /usr/lib/security
|
||||||
|
%else
|
||||||
%define _secconfdir %{_sysconfdir}/security
|
%define _secconfdir %{_sysconfdir}/security
|
||||||
|
%endif
|
||||||
%define libname libpwquality1
|
%define libname libpwquality1
|
||||||
|
|
||||||
Name: libpwquality
|
Name: libpwquality
|
||||||
@ -123,6 +127,24 @@ make -O %{?_smp_mflags}
|
|||||||
%make_install
|
%make_install
|
||||||
find %{buildroot} -type f -name "*.la" -delete -print
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
%find_lang %{name} %{?no_lang_C}
|
%find_lang %{name} %{?no_lang_C}
|
||||||
|
%if 0%{?suse_version} >= 1550
|
||||||
|
mkdir -p %{buildroot}/%{_secconfdir}
|
||||||
|
mv %{buildroot}/%{_sysconfdir}/security/pwquality.conf %{buildroot}/%{_secconfdir}/pwquality.conf
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1550
|
||||||
|
%pre -n %{libname}
|
||||||
|
# Prepare for migration to /usr/lib; save any old .rpmsave
|
||||||
|
for i in security/pwquality.conf; do
|
||||||
|
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i}.rpmsave.old ||:
|
||||||
|
done
|
||||||
|
|
||||||
|
%posttrans -n %{libname}
|
||||||
|
# Migration to /usr/lib, restore just created .rpmsave
|
||||||
|
for i in security/pwquality.conf; do
|
||||||
|
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i} ||:
|
||||||
|
done
|
||||||
|
%endif
|
||||||
|
|
||||||
%post -n %{libname} -p /sbin/ldconfig
|
%post -n %{libname} -p /sbin/ldconfig
|
||||||
%postun -n %{libname} -p /sbin/ldconfig
|
%postun -n %{libname} -p /sbin/ldconfig
|
||||||
@ -141,7 +163,12 @@ fi
|
|||||||
%license COPYING
|
%license COPYING
|
||||||
%doc AUTHORS NEWS README
|
%doc AUTHORS NEWS README
|
||||||
%{_libdir}/libpwquality.so.*
|
%{_libdir}/libpwquality.so.*
|
||||||
|
%if 0%{?suse_version} >= 1550
|
||||||
|
%dir %{_secconfdir}
|
||||||
|
%{_secconfdir}/pwquality.conf
|
||||||
|
%else
|
||||||
%config(noreplace) %{_secconfdir}/pwquality.conf
|
%config(noreplace) %{_secconfdir}/pwquality.conf
|
||||||
|
%endif
|
||||||
%{_mandir}/man3/pwquality.3%{?ext_man}
|
%{_mandir}/man3/pwquality.3%{?ext_man}
|
||||||
%{_mandir}/man5/pwquality.conf.5%{?ext_man}
|
%{_mandir}/man5/pwquality.conf.5%{?ext_man}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user