From acdf28285ebd4094bfa6d6d165f625060bc0288f Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Wed, 5 Nov 2025 22:34:37 +0800 Subject: [PATCH] drop useless gnome-doc-utils buildrequirement --- shadow.spec | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/shadow.spec b/shadow.spec index 79fb865..48a801e 100644 --- a/shadow.spec +++ b/shadow.spec @@ -1,10 +1,10 @@ Name: shadow Version: 4.14.3 -Release: 8 +Release: 9 Epoch: 2 -License: BSD and GPLv2+ +License: BSD-3-Clause AND GPL-2.0-or-later Summary: Tools for managing accounts and shadow password files -URL: http://pkg-shadow.alioth.debian.org/ +URL: https://github.com/shadow-maint/shadow Source0: https://github.com/shadow-maint/shadow/releases/download/%{version}/shadow-%{version}.tar.xz Source2: shadow-utils.useradd Source3: shadow-utils.login.defs @@ -35,14 +35,11 @@ Patch14: backport-lib-encrypt.c-Do-not-exit-in-error-case.patch BuildRequires: gcc, libselinux-devel, audit-libs-devel, libsemanage-devel BuildRequires: libacl-devel, libattr-devel -BuildRequires: bison, flex, gnome-doc-utils, docbook-style-xsl, docbook-dtds +BuildRequires: bison, flex, docbook-style-xsl, docbook-dtds BuildRequires: autoconf, automake, libtool, gettext-devel, itstool, pam-devel Requires: libselinux Requires: audit-libs Requires: setup -Requires(pre): coreutils -Requires(post): coreutils -Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Provides: shadow-utils = %{version}-%{release} Obsoletes: shadow-utils < %{version}-%{release} @@ -54,7 +51,6 @@ group accounts. %package subid-devel Summary: Development package for shadow-utils-subid -License: BSD and GPLv2+ %description subid-devel Development files for shadow-utils-subid. @@ -70,8 +66,8 @@ cp -f doc/HOWTO.utf8 doc/HOWTO cp -a %{SOURCE4} %{SOURCE5} . %build -export CFLAGS="$RPM_OPT_FLAGS -fpie" -export LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now" +export CFLAGS="%{build_cflags} -fpie" +export LDFLAGS="%{build_ldflags} -pie -Wl,-z,relro -Wl,-z,now" autoreconf -fiv %configure \ @@ -89,7 +85,6 @@ autoreconf -fiv %make_build %install -rm -rf $RPM_BUILD_ROOT %make_install gnulocaledir=$RPM_BUILD_ROOT/%{_datadir}/locale MKINSTALLDIRS=`pwd`/mkinstalldirs install -d -m 755 $RPM_BUILD_ROOT/%{_sysconfdir}/default install -p -c -m 0644 %{SOURCE3} $RPM_BUILD_ROOT/%{_sysconfdir}/login.defs @@ -165,7 +160,6 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/libsubid.{la,a} %files -f shadow.lang %doc NEWS doc/HOWTO README -%{!?_licensedir:%global license %%doc} %license gpl-2.0.txt shadow-bsd.txt %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/login.defs %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/default/useradd @@ -201,6 +195,9 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/libsubid.{la,a} %{_mandir}/*/* %changelog +* Wed Nov 05 2025 Funda Wang - 2:4.14.3-9 +- drop useless gnome-doc-utils buildrequirement + * Tue Sep 16 2025 zhengxiaoxiaoGitee - 2:4.14.3-8 - Upgrading the version number resolves the downgrade issue. -- Gitee