From f87813d8da94c5c7dd6b4dbbf2b91b8ace0226dc Mon Sep 17 00:00:00 2001 From: "zhixin.zhang" Date: Mon, 12 Dec 2022 16:47:40 +0800 Subject: [PATCH 1/3] Add sw patch --- ypbind-mt-2.7.2-sw.patch | 12 ++++++++++++ ypbind.spec | 7 +++++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 ypbind-mt-2.7.2-sw.patch diff --git a/ypbind-mt-2.7.2-sw.patch b/ypbind-mt-2.7.2-sw.patch new file mode 100644 index 0000000..9f0e080 --- /dev/null +++ b/ypbind-mt-2.7.2-sw.patch @@ -0,0 +1,12 @@ +diff -Naur ypbind-mt-2.7.2.org/m4/intdiv0.m4 ypbind-mt-2.7.2.sw/m4/intdiv0.m4 +--- ypbind-mt-2.7.2.org/m4/intdiv0.m4 2022-02-26 01:25:41.820000000 +0000 ++++ ypbind-mt-2.7.2.sw/m4/intdiv0.m4 2022-02-26 01:26:04.470000000 +0000 +@@ -54,7 +54,7 @@ + [ + # Guess based on the CPU. + case "$host_cpu" in +- alpha* | i[34567]86 | m68k | s390*) ++ sw_64*| alpha* | i[34567]86 | m68k | s390*) + gt_cv_int_divbyzero_sigfpe="guessing yes";; + *) + gt_cv_int_divbyzero_sigfpe="guessing no";; diff --git a/ypbind.spec b/ypbind.spec index 2543cd4..e5cc4bf 100644 --- a/ypbind.spec +++ b/ypbind.spec @@ -1,7 +1,7 @@ Name: ypbind Epoch: 3 Version: 2.7.2 -Release: 2 +Release: 3 Summary: NIS binding software License: GPLv2 URL: http://www.linux-nis.org/nis/ypbind-mt/index.html @@ -12,7 +12,7 @@ Source3: ypbind-pre-setdomain Source4: ypbind-post-waitbind Patch0: ypbind-1.11-gettextdomain.patch Patch2: ypbind-2.4-gettext_version.patch - +Patch3: ypbind-mt-2.7.2-sw.patch BuildRequires: git gcc systemd automake autoconf libxslt BuildRequires: dbus-glib-devel systemd-devel docbook-style-xsl BuildRequires: libtirpc-devel libnsl2-devel gettext-devel @@ -94,6 +94,9 @@ install -m 644 etc/yp.conf %{buildroot}/%{_sysconfdir}/yp.conf %{_mandir}/*/* %changelog +* Mon Dec 12 2022 guojiancheng - 3:2.7.2-3 +- Add sw patch + * Sat Oct 22 2022 gaihuiying - 3:2.7.2-2 - Type:bugfix - ID:NA -- Gitee From cc5b4bf1c2597ec68ab8d0dc76ffca0377eeeafe Mon Sep 17 00:00:00 2001 From: "zhixin.zhang" Date: Mon, 26 Dec 2022 11:36:29 +0800 Subject: [PATCH 2/3] add sw patch --- ypbind.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ypbind.spec b/ypbind.spec index e5cc4bf..245ba3a 100644 --- a/ypbind.spec +++ b/ypbind.spec @@ -12,7 +12,9 @@ Source3: ypbind-pre-setdomain Source4: ypbind-post-waitbind Patch0: ypbind-1.11-gettextdomain.patch Patch2: ypbind-2.4-gettext_version.patch +%ifarch sw_64 Patch3: ypbind-mt-2.7.2-sw.patch +%endif BuildRequires: git gcc systemd automake autoconf libxslt BuildRequires: dbus-glib-devel systemd-devel docbook-style-xsl BuildRequires: libtirpc-devel libnsl2-devel gettext-devel -- Gitee From f466e41cab1e35180ab4ac20d31798ec95720381 Mon Sep 17 00:00:00 2001 From: "zhixin.zhang" Date: Thu, 9 Mar 2023 10:46:40 +0800 Subject: [PATCH 3/3] Add sw patch --- ypbind.spec | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/ypbind.spec b/ypbind.spec index 245ba3a..b82ca32 100644 --- a/ypbind.spec +++ b/ypbind.spec @@ -1,7 +1,7 @@ Name: ypbind Epoch: 3 Version: 2.7.2 -Release: 3 +Release: 4 Summary: NIS binding software License: GPLv2 URL: http://www.linux-nis.org/nis/ypbind-mt/index.html @@ -12,10 +12,13 @@ Source3: ypbind-pre-setdomain Source4: ypbind-post-waitbind Patch0: ypbind-1.11-gettextdomain.patch Patch2: ypbind-2.4-gettext_version.patch + %ifarch sw_64 Patch3: ypbind-mt-2.7.2-sw.patch %endif -BuildRequires: git gcc systemd automake autoconf libxslt + + +BuildRequires: gcc systemd automake autoconf libxslt BuildRequires: dbus-glib-devel systemd-devel docbook-style-xsl BuildRequires: libtirpc-devel libnsl2-devel gettext-devel Requires(post): systemd @@ -48,7 +51,7 @@ Buildarch: noarch The help package contains doc files for ypbind. %prep -%autosetup -n %{name}-mt-%{version} -p1 -S git +%autosetup -n %{name}-mt-%{version} -p1 autoreconf -fiv %build @@ -96,15 +99,21 @@ install -m 644 etc/yp.conf %{buildroot}/%{_sysconfdir}/yp.conf %{_mandir}/*/* %changelog -* Mon Dec 12 2022 guojiancheng - 3:2.7.2-3 -- Add sw patch +* Mon Dec 12 2022 guojiancheng - 3:2.7.2-4 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:Add sw patch -* Sat Oct 22 2022 gaihuiying - 3:2.7.2-2 +* Sat Oct 22 2022 gaihuiying - 3:2.7.2-3 - Type:bugfix - ID:NA - SUG:NA - DESC:modify description about ypbind +* Fri Jul 30 2021 chenyanpanHW - 2.7.2-2 +- DESC: delete -S git from %autosetup, and delete BuildRequires git + * Tue Jul 28 2020 lunankun - 2.7.2-1 - Type:update - ID:NA @@ -125,3 +134,4 @@ install -m 644 etc/yp.conf %{buildroot}/%{_sysconfdir}/yp.conf * Mon Sep 9 2019 luhuaxin - 2.6-1 - Package init + -- Gitee