libxcb/libxcb.spec

95 lines
2.6 KiB
RPMSpec
Raw Permalink Normal View History

2019-09-30 10:59:16 -04:00
Name: libxcb
2023-12-28 16:15:49 +08:00
Version: 1.16
2022-10-27 06:26:04 +00:00
Release: 1
2019-09-30 10:59:16 -04:00
Summary: A C binding to the X11 protocol
License: MIT
URL: https://xcb.freedesktop.org/
2020-07-31 10:14:52 +08:00
Source0: https://xcb.freedesktop.org/dist/%{name}-%{version}.tar.xz
2019-09-30 10:59:16 -04:00
# 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 \
2022-10-27 06:26:04 +00:00
--enable-unit-tests --disable-static
2019-09-30 10:59:16 -04:00
%disable_rpath
%make_build
%check
make check
2019-09-30 10:59:16 -04:00
%install
%make_install
2020-07-27 14:53:13 +08:00
install -pm 644 COPYING NEWS README.md $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
2019-09-30 10:59:16 -04:00
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}/pkgconfig/*.pc
%files help
%defattr(-,root,root)
%{_mandir}/man3/*.3*
%{_docdir}/%{name}-%{version}/*
%exclude %{_docdir}/%{name}-%{version}/COPYING
%changelog
2023-12-28 16:15:49 +08:00
* Thu Dec 28 2023 Paul Thomas <paulthomas100199@gmail.com> - 1.16-1
- update to version 1.16
2022-10-27 06:26:04 +00:00
* Thu Oct 27 2022 wangkerong <wangkerong@h-partners.com> - 1.15-1
- upgrade to 1.15
* Sun Apr 24 2022 yangcheng <yangcheng87@h-partners.com> - 1.14-2
- enable check while building
2022-06-16 07:15:29 +00:00
* Fri Jul 31 2020 chxssg<chxssg@qq.com> - 1.14-1
2020-07-27 14:53:13 +08:00
- update package to 1.14
2019-09-30 10:59:16 -04:00
* Tue Sep 03 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.13.1-2
- Package init