Package init
This commit is contained in:
commit
3f9fec5a0e
BIN
libxcb-1.13.1.tar.bz2
Normal file
BIN
libxcb-1.13.1.tar.bz2
Normal file
Binary file not shown.
79
libxcb.spec
Normal file
79
libxcb.spec
Normal file
@ -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 <buildteam@openeuler.org> - 1.13.1-2
|
||||
- Package init
|
||||
8
pthread-stubs.pc.in
Normal file
8
pthread-stubs.pc.in
Normal file
@ -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:
|
||||
Loading…
x
Reference in New Issue
Block a user