diff --git a/ypbind-mt-2.7.2-sw.patch b/ypbind-mt-2.7.2-sw.patch new file mode 100644 index 0000000000000000000000000000000000000000..9f0e080473b065baebcbb905086b7eab4473a35e --- /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 2543cd43183a93439c894af72b68546885e0b98b..b82ca32e1b6002ad53870cea12d7298e49277975 100644 --- a/ypbind.spec +++ b/ypbind.spec @@ -1,7 +1,7 @@ Name: ypbind Epoch: 3 Version: 2.7.2 -Release: 2 +Release: 4 Summary: NIS binding software License: GPLv2 URL: http://www.linux-nis.org/nis/ypbind-mt/index.html @@ -13,7 +13,12 @@ Source4: ypbind-post-waitbind Patch0: ypbind-1.11-gettextdomain.patch Patch2: ypbind-2.4-gettext_version.patch -BuildRequires: git gcc systemd automake autoconf libxslt +%ifarch sw_64 +Patch3: ypbind-mt-2.7.2-sw.patch +%endif + + +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 @@ -46,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 @@ -94,12 +99,21 @@ install -m 644 etc/yp.conf %{buildroot}/%{_sysconfdir}/yp.conf %{_mandir}/*/* %changelog -* Sat Oct 22 2022 gaihuiying - 3:2.7.2-2 +* 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-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 @@ -120,3 +134,4 @@ install -m 644 etc/yp.conf %{buildroot}/%{_sysconfdir}/yp.conf * Mon Sep 9 2019 luhuaxin - 2.6-1 - Package init +