commit 1d345fbd21e588cf15488627f055fca184fb59a593618d686878043de9ce5518 Author: Adrian Schröter Date: Fri May 3 10:02:28 2024 +0200 Sync from SUSE:SLFO:Main libxshmfence revision c3e3e76ab75cea9c06c9c1a7cd7bca38 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..b9f61a9 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1,5 @@ +libxshmfence1 +#libxshmfence-devel +# requires -libxshmfence- +# requires "libxshmfence1- = " + diff --git a/libxshmfence-1.3.2.tar.xz b/libxshmfence-1.3.2.tar.xz new file mode 100644 index 0000000..e0f4b6c --- /dev/null +++ b/libxshmfence-1.3.2.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:870df257bc40b126d91b5a8f1da6ca8a524555268c50b59c0acd1a27f361606f +size 259024 diff --git a/libxshmfence.changes b/libxshmfence.changes new file mode 100644 index 0000000..5df84e1 --- /dev/null +++ b/libxshmfence.changes @@ -0,0 +1,86 @@ +------------------------------------------------------------------- +Fri Dec 23 08:22:25 UTC 2022 - Dirk Müller + +- update to 1.3.2: + * configure: Use AC_SYS_LARGEFILE to enable large file support +- spec file modernisation, add license and README + +------------------------------------------------------------------- +Tue Oct 18 18:29:13 UTC 2022 - Stefan Dirsch + +- Update to version 1.3.1 + * Update README for gitlab migration + * Update configure.ac bug URL for gitlab migration + * Fix spelling/wording issues + * gitlab CI: add a basic build test + * alloc: prefer atomic close-on-exec without O_TMPFILE as well + * alloc: prefer SHM_ANON on FreeBSD a la memfd_create + +------------------------------------------------------------------- +Mon Feb 26 18:51:24 UTC 2018 - sndirsch@suse.com + +- Update to version 1.3 + * autogen.sh: use quoted string variables + * Fix missing include for HAVE_UMTX branch of futex + * autogen: add default patch prefix + * autogen.sh: use exec instead of waiting for configure to finish + * configure.ac: call AC_USE_SYSTEM_EXTENSIONS +- supersedes u_configure.ac-call-AC_USE_SYSTEM_EXTENSIONS.patch + +------------------------------------------------------------------- +Wed Feb 7 14:33:29 UTC 2018 - msrb@suse.com + +- Add u_configure.ac-call-AC_USE_SYSTEM_EXTENSIONS.patch + * Fixes build with GLIBC 2.27. (bnc#1079830) + +------------------------------------------------------------------- +Mon Jan 5 16:44:31 UTC 2015 - sndirsch@suse.com + +- specfile: added baselibs.conf as source (new checkin policy) + +------------------------------------------------------------------- +Sat Jan 3 15:26:19 UTC 2015 - tobias.johannes.klausmann@mni.thm.de + +- Update to version 1.2: + + build fixes + + FreeBSD umtx support + + memfd_create support for kernel >= 3.17 + +------------------------------------------------------------------- +Thu Apr 24 18:25:35 UTC 2014 - tobias.johannes.klausmann@mni.thm.de + +- Add missing BuildRequires + +------------------------------------------------------------------- +Sat Dec 7 20:02:07 UTC 2013 - tobias.johannes.klausmann@mni.thm.de + +- Add baselibs.conf + Provide libxshmfence1-32bit + +------------------------------------------------------------------- +Wed Dec 4 11:39:04 UTC 2013 - cfarrell@suse.com + +- license update: HPND + COPYING file is HPND - does not contain sublicensing reference (as MIT + does) + +------------------------------------------------------------------- +Wed Nov 27 15:04:43 UTC 2013 - tobias.johannes.klausmann@mni.thm.de + +- Update to version 1.1: + + Add mandatory COPYING file. + + Add the required README file + + make: add $(CWARNFLAGS) + + make: list non installed headers under the _SOURCES variable + + lint: remove usage of libxshmfence_la_SOURCES + + Change fence memory type from 'int32_t' to 'struct shmfence' + + Locate directory for shared memory files at configure time + + Use O_TMPFILE if available + + Split out futex implementation from general API + + Provide pthread-based alternative implementation + + Set symbol visibility attribute to hide internal symbols + +------------------------------------------------------------------- +Sun Nov 3 02:03:37 UTC 2013 - tobias.johannes.klausmann@mni.thm.de + +- Created package libxshmfence, version 1.0.0 diff --git a/libxshmfence.spec b/libxshmfence.spec new file mode 100644 index 0000000..d097dc3 --- /dev/null +++ b/libxshmfence.spec @@ -0,0 +1,93 @@ +# +# spec file for package libxshmfence +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define lname libxshmfence1 +Name: libxshmfence +Version: 1.3.2 +Release: 0 +Summary: A tiny library that exposes a event API on top of Linux futexes +License: HPND +Group: Development/Libraries/C and C++ +URL: https://xorg.freedesktop.org/ +#Git-Clone: git://anongit.freedesktop.org/xorg/lib/libxshmfence +#Git-Web: http://cgit.freedesktop.org/xorg/lib/libxshmfence/ +Source: https://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.xz +Source1: baselibs.conf +BuildRequires: autoconf >= 2.60 +BuildRequires: automake +BuildRequires: libtool +BuildRequires: pkgconfig +BuildRequires: pkgconfig(xorg-macros) >= 1.8 +BuildRequires: pkgconfig(xproto) + +%description +This is a tiny library that exposes a event API on top of Linux +futexes. There was some discussion about using eventfd instead of this, +but the cost of adding two FDs to the X server for every DRI application +seems excessive, and by using PresentIdleNotify events, to work around +the limitations of futexes. + +%package -n %{lname} +Summary: A tiny library that exposes a event API on top of Linux futexes +Group: System/Libraries + +%description -n %{lname} +This is a tiny library that exposes a event API on top of Linux +futexes. There was some discussion about using eventfd instead of this, +but the cost of adding two FDs to the X server for every DRI application +seems excessive, and by using PresentIdleNotify events, to work around +the limitations of futexes. + +%package devel +Summary: Development files for the X Shm-Fence library +Group: Development/Libraries/C and C++ +Requires: %{lname} = %{version} + +%description devel +This is a tiny library that exposes a event API on top of Linux +futexes. + +This package contains the development headers for the library found +in %{name}. + +%prep +%setup -q + +%build +autoreconf -fi +%configure --disable-static +%make_build + +%install +%make_install +find %{buildroot} -type f -name "*.la" -delete -print + +%post -n %{lname} -p /sbin/ldconfig +%postun -n %{lname} -p /sbin/ldconfig + +%files -n %{lname} +%{_libdir}/libxshmfence.so.1* + +%files devel +%license COPYING +%doc README.md +%{_includedir}/X11/* +%{_libdir}/libxshmfence.so +%{_libdir}/pkgconfig/xshmfence.pc + +%changelog