diff --git a/libpciaccess-0.14-sw.patch b/libpciaccess-0.14-sw.patch new file mode 100644 index 0000000000000000000000000000000000000000..a92e656a2d9ec4ffdffe762b9db62069f512990d --- /dev/null +++ b/libpciaccess-0.14-sw.patch @@ -0,0 +1,38 @@ +diff -Naur libpciaccess-0.14.org/configure libpciaccess-0.14.sw/configure +--- libpciaccess-0.14.org/configure 2023-07-28 15:09:28.155009271 +0800 ++++ libpciaccess-0.14.sw/configure 2023-07-28 15:12:56.573341973 +0800 +@@ -18601,6 +18601,9 @@ + *x86_64*|*amd64*) + PCIACCESS_LIBS="$PCIACCESS_LIBS -lx86_64" + ;; ++ *sw_64*) ++ PCIACCESS_LIBS="$PCIACCESS_LIBS -lsw_64" ++ ;; + *alpha*) + PCIACCESS_LIBS="$PCIACCESS_LIBS -lalpha" + ;; +diff -Naur libpciaccess-0.14.org/configure.ac libpciaccess-0.14.sw/configure.ac +--- libpciaccess-0.14.org/configure.ac 2023-07-28 15:09:28.152009165 +0800 ++++ libpciaccess-0.14.sw/configure.ac 2023-07-28 15:13:57.390481670 +0800 +@@ -82,6 +82,9 @@ + *x86_64*|*amd64*) + PCIACCESS_LIBS="$PCIACCESS_LIBS -lx86_64" + ;; ++ *sw_64*) ++ PCIACCESS_LIBS="$PCIACCESS_LIBS -lsw_64" ++ ;; + *alpha*) + PCIACCESS_LIBS="$PCIACCESS_LIBS -lalpha" + ;; +diff -Naur libpciaccess-0.14.org/src/openbsd_pci.c libpciaccess-0.14.sw/src/openbsd_pci.c +--- libpciaccess-0.14.org/src/openbsd_pci.c 2023-07-28 15:09:28.154009236 +0800 ++++ libpciaccess-0.14.sw/src/openbsd_pci.c 2023-07-28 15:16:37.895128652 +0800 +@@ -133,7 +133,7 @@ + return ENOSYS; + + if (priv->base.rom_size == 0) { +-#if defined(__alpha__) || defined(__amd64__) || defined(__i386__) ++#if defined(__alpha__) || defined(__sw_64__) || defined(__amd64__) || defined(__i386__) + if ((device->device_class & 0x00ffff00) == + ((PCI_CLASS_DISPLAY << 16) | + (PCI_SUBCLASS_DISPLAY_VGA << 8))) { diff --git a/libpciaccess.spec b/libpciaccess.spec index 95da08e7f7d30a76e281979b53a604305de578d0..b07e83a17749bbdf252f27acce19e1252a3f7e19 100644 --- a/libpciaccess.spec +++ b/libpciaccess.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.1 +%define anolis_release .0.2 #define gitdate 20140411 #define gitrev b9c068896914b4132a24839c9ef7f9fcd6282d88 @@ -18,6 +18,7 @@ Source0: https://www.x.org/archive/individual/lib/%{name}-%{version}.tar.bz2 Source1: make-libpciaccess-snapshot.sh Patch2: libpciaccess-rom-size.patch +Patch3: libpciaccess-0.14-sw.patch BuildRequires: autoconf automake libtool pkgconfig xorg-x11-util-macros Requires: hwdata @@ -47,6 +48,7 @@ Doc pages for %{name} %prep %setup -q -n %{name}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}} %patch2 -p1 -b .rom-size +%patch3 -p1 %build autoreconf -v --install @@ -73,6 +75,9 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la %doc AUTHORS %changelog +* Fri Jul 28 2023 wxiat - 0.14-1.0.2 +- add sw arch + * Fri Jul 15 2022 Chang Gao - 0.14-1.0.1 - Add doc sub package