diff --git a/README.md b/README.md index a63f8ef..6e80ac9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libxpresent +X Present Extension library. + diff --git a/libxpresent.spec b/libxpresent.spec new file mode 100644 index 0000000..666ae4b --- /dev/null +++ b/libxpresent.spec @@ -0,0 +1,71 @@ +Name: libxpresent +Version: 1.0.0 +Release: 1mamba +Summary: X Present Extension library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://gitlab.freedesktop.org/xorg/lib/libxpresent +Source: https://gitlab.freedesktop.org/xorg/lib/libxpresent/-/archive/libXpresent-%{version}/libxpresent-libXpresent-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libX11-devel +BuildRequires: libXau-devel +BuildRequires: libXdmcp-devel +BuildRequires: libbsd-devel +BuildRequires: libxcb-devel +BuildRequires: xorgproto-devel +## AUTOBUILDREQ-END + +%description +X Present Extension library. + +%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 -n %{name}-libXpresent-%{version} +./autogen.sh + +%build +%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}/libXpresent.so.* +%doc AUTHORS COPYING + +%files devel +%defattr(-,root,root) +%{_includedir}/X11/extensions/Xpresent.h +%{_libdir}/libXpresent.a +%{_libdir}/libXpresent.la +%{_libdir}/libXpresent.so +%{_libdir}/pkgconfig/xpresent.pc +%{_mandir}/man3/Xpresent.3* +%doc README + +%changelog +* Sun Jul 25 2021 Silvan Calarco 1.0.0-1mamba +- package created using the webbuild interface