commit 3f9fec5a0e11bd8f6971cddeec07175e821fcec0 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:59:16 2019 -0400 Package init diff --git a/libxcb-1.13.1.tar.bz2 b/libxcb-1.13.1.tar.bz2 new file mode 100644 index 0000000..b8be7b8 Binary files /dev/null and b/libxcb-1.13.1.tar.bz2 differ diff --git a/libxcb.spec b/libxcb.spec new file mode 100644 index 0000000..4b056cb --- /dev/null +++ b/libxcb.spec @@ -0,0 +1,79 @@ +Name: libxcb +Version: 1.13.1 +Release: 2 +Summary: A C binding to the X11 protocol +License: MIT +URL: https://xcb.freedesktop.org/ +Source0: https://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2 + +# This is stolen straight from the pthread-stubs source: +# http://cgit.freedesktop.org/xcb/pthread-stubs/blob/?id=6900598192bacf5fd9a34619b11328f746a5956d +Source1: pthread-stubs.pc.in + +BuildRequires: doxygen graphviz libtool libxslt pkgconfig libXau-devel +BuildRequires: xcb-proto xorg-x11-util-macros python3 python3-devel + +%description +The X protocol C-language Binding (XCB) is a replacement for Xlib featuring a +small footprint, latency hiding, direct access to the protocol, improved +threading support, and extensibility. + +%package devel +Summary: Development files for %{name} +Requires: %{name} = %{version}-%{release} + +%description devel +The %{name}-devel package contains development files for %{name}. + +%package help +Summary: Documents for %{name} +Buildarch: noarch +Requires: man info +Provides: %{name}-doc +Obsoletes: %{name}-doc + +%description help +Man pages and other related documents for %{name}. + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +sed -i 's/pthread-stubs //' configure.ac +autoreconf -ivf +%configure --docdir=%{_docdir}/%{name}-%{version} --enable-selinux \ + --enable-xkb --enable-xinput --disable-xprint --disable-silent-rules + +%disable_rpath +%make_build + +%install +%make_install +install -pm 644 COPYING NEWS README $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} +sed 's,@libdir@,%{_libdir},;s,@prefix@,%{_prefix},;s,@exec_prefix@,%{_exec_prefix},' %{SOURCE1} > $RPM_BUILD_ROOT%{_libdir}/pkgconfig/pthread-stubs.pc + + +%delete_la +%ldconfig_scriptlets + +%files +%defattr(-,root,root) +%{_docdir}/%{name}-%{version}/COPYING +%{_libdir}/libxcb*.so.* + +%files devel +%defattr(-,root,root) +%{_includedir}/xcb +%{_libdir}/*.so +%{_libdir}/*.a +%{_libdir}/pkgconfig/*.pc + +%files help +%defattr(-,root,root) +%{_mandir}/man3/*.3* +%{_docdir}/%{name}-%{version}/* +%exclude %{_docdir}/%{name}-%{version}/COPYING + +%changelog +* Tue Sep 03 2019 openEuler Buildteam - 1.13.1-2 +- Package init diff --git a/pthread-stubs.pc.in b/pthread-stubs.pc.in new file mode 100644 index 0000000..1b722e9 --- /dev/null +++ b/pthread-stubs.pc.in @@ -0,0 +1,8 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ + +Name: pthread stubs +Description: Stubs missing from libc for standard pthread functions +Version: 0.1 +Libs: