diff --git a/README.md b/README.md index 7caf8ea..b252721 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # libxshmfence +libxshmfence - Shared memory 'SyncFence' synchronization primitive + +This library offers a CPU-based synchronization primitive compatible with the X SyncFence objects that can be shared between processes using file descriptor passing. +On Linux, the library uses futexes. + diff --git a/libxshmfence.spec b/libxshmfence.spec new file mode 100644 index 0000000..44b0ead --- /dev/null +++ b/libxshmfence.spec @@ -0,0 +1,68 @@ +Name: libxshmfence +Version: 1.1 +Release: 1mamba +Summary: Shared memory 'SyncFence' synchronization primitive +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://cgit.freedesktop.org/xorg/lib/libxshmfence +Source: http://cgit.freedesktop.org/xorg/lib/libxshmfence/snapshot/libxshmfence-%{version}.tar.gz +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +libxshmfence - Shared memory 'SyncFence' synchronization primitive + +This library offers a CPU-based synchronization primitive compatible with the X SyncFence objects that can be shared between processes using file descriptor passing. +On Linux, the library uses futexes. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +./autogen.sh +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libxshmfence.so.* +%doc COPYING + +%files devel +%defattr(-,root,root) +%{_includedir}/X11/xshmfence.h +%{_libdir}/libxshmfence.a +%{_libdir}/libxshmfence.la +%{_libdir}/libxshmfence.so +%{_libdir}/pkgconfig/xshmfence.pc +%doc README + +%changelog +* Sun Mar 09 2014 Silvan Calarco 1.1-1mamba +- package created using the webbuild interface