94 lines
2.9 KiB
RPMSpec
94 lines
2.9 KiB
RPMSpec
#
|
|
# 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
|