diff --git a/libxshmfence-1.2-1.el7-alloc.patch b/libxshmfence-1.2-1.el7-alloc.patch new file mode 100644 index 0000000000000000000000000000000000000000..6ce50579c998ce19029df61fca2ffcff9c86e3d0 --- /dev/null +++ b/libxshmfence-1.2-1.el7-alloc.patch @@ -0,0 +1,12 @@ +diff -uNr libxshmfence-1.2/src/xshmfence_alloc.c libxshmfence-1.2-1.el7/src/xshmfence_alloc.c +--- libxshmfence-1.2/src/xshmfence_alloc.c 2014-10-09 20:09:03.000000000 +0800 ++++ libxshmfence-1.2-1.el7/src/xshmfence_alloc.c 2022-11-20 16:12:13.828472696 +0800 +@@ -70,7 +70,7 @@ + int fd; + + #if HAVE_MEMFD_CREATE +- fd = memfd_create("xshmfence", MFD_CLOEXEC|MFD_ALLOW_SEALING); ++ fd = syscall(SYS_memfd_create, "xshmfence", MFD_CLOEXEC|MFD_ALLOW_SEALING); + if (fd < 0) + #endif + { diff --git a/libxshmfence-1.2.tar.bz2 b/libxshmfence-1.2.tar.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..7274c6e96d57bc1be9b7c1f26acd1d8d3777e231 Binary files /dev/null and b/libxshmfence-1.2.tar.bz2 differ diff --git a/libxshmfence.spec b/libxshmfence.spec new file mode 100644 index 0000000000000000000000000000000000000000..f7c1573693e1a685647c9cdf3f8adf3bfa7a673d --- /dev/null +++ b/libxshmfence.spec @@ -0,0 +1,68 @@ +Name: libxshmfence +Version: 1.2 +Release: 1%{?dist} +Summary: X11 shared memory fences + +License: MIT +URL: http://www.x.org/ +Source0: http://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.bz2 +Patch0: libxshmfence-1.2-1.el7-alloc.patch + +# upstream tarball has broken libtool because libtool is never not broken +BuildRequires: autoconf automake libtool xorg-x11-util-macros +BuildRequires: pkgconfig(xproto) +#Requires: + +%description +Shared memory fences for X11, as used in DRI3. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%prep +%setup -q +%patch0 -p1 + +%build +autoreconf -v -i -f +%configure --disable-static +make %{?_smp_mflags} + +%install +%make_install +find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%doc +%{_libdir}/libxshmfence.so.1* + +%files devel +%doc +%{_includedir}/* +%{_libdir}/pkgconfig/xshmfence.pc +%{_libdir}/*.so + +%changelog +* Fri Jan 02 2015 Adel Gadllah - 1.2-1 +- Update to 1.2 + +* Sun Aug 17 2014 Fedora Release Engineering - 1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Thu Dec 12 2013 Adam Jackson 1.1-1 +- xshmfence 1.1 + +* Wed Nov 06 2013 Adam Jackson 1.0-1 +- Initial packaging +