# # spec file for package xcb-util-cursor # # Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define lname libxcb-cursor0 Name: xcb-util-cursor Version: 0.1.5 Release: 1.3 Summary: XCB cursor library (libxcursor port) License: MIT Group: Development/Libraries/C and C++ URL: http://xcb.freedesktop.org/ #Git-Clone: git://anongit.freedesktop.org/xcb/util-cursor #Git-Web: http://cgit.freedesktop.org/xcb/util-cursor/ Source: http://xcb.freedesktop.org/dist/%{name}-%{version}.tar.xz Source1: baselibs.conf BuildRequires: autoconf BuildRequires: automake BuildRequires: gperf BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: pkgconfig(xcb) >= 1.4 BuildRequires: pkgconfig(xcb-image) BuildRequires: pkgconfig(xcb-proto) >= 1.6 BuildRequires: pkgconfig(xcb-render) BuildRequires: pkgconfig(xcb-renderutil) BuildRequires: pkgconfig(xorg-macros) >= 1.6.0 %description The XCB util modules provide a number of libraries which sit on top of libxcb, the core X protocol library, and some of the extension libraries. Included in this package is: - cursor: port of libxcursor %package -n %{lname} Summary: XCB cursor library (libxcursor port) Group: System/Libraries %description -n %{lname} The XCB util modules provide a number of libraries which sit on top of libxcb, the core X protocol library, and some of the extension libraries. Included in this package is: - cursor: port of libxcursor %package devel Summary: Development files for the XCB cursor library (libxcursor port) Group: Development/Libraries/C and C++ Requires: %{lname} = %{version} %description devel The XCB util modules provide a number of libraries which sit on top of libxcb, the core X protocol library, and some of the extension libraries. This package contains the development headers for the library found in %{lname}. %prep %setup -q %build autoreconf -fiv %configure \ --disable-static make %{?_smp_mflags} V=1 %install %make_install find %{buildroot} -type f -name "*.la" -delete -print %post -n %{lname} -p /sbin/ldconfig %postun -n %{lname} -p /sbin/ldconfig %files -n %{lname} %{_libdir}/libxcb-cursor.so.0* %files devel %{_includedir}/xcb %{_libdir}/libxcb-cursor.so %{_libdir}/pkgconfig/xcb-cursor.pc %changelog * Thu Oct 19 2023 Stefan Dirsch - Update to version 0.1.5 * This release sets the close-on-exec flag when opening files on platforms that support O_CLOEXEC, and resyncs the _XcursorThemeInherits code with libXcursor, including a fix for an off-by-one error in memory allocation that triggered errors from AddressSanitizer. * Tue Oct 18 2022 Stefan Dirsch - Update to version 0.1.4 * Update README for gitlab migration * Add README.md to EXTRA_DIST * Use AC_CONFIG_FILES to replace the deprecated AC_OUTPUT with parameters * Update m4 to xorg/util/xcb-util-m4@c617eee22ae5c285e79e81 * gitlab CI: add a basic build test * configure: Drop AM_MAINTAINER_MODE * autogen.sh: Honor NOCONFIGURE=1 * autogen.sh: use quoted string variables * autogen: add default patch prefix * autogen.sh: use exec instead of waiting for configure to finish * documentation: Call xcb_free_cursor() when done * Fix out-of-source builds * Wed Nov 1 2017 mpluskal@suse.com - Clean up with spec-cleaner - Make building more verbose * Fri May 13 2016 tobias.johannes.klausmann@mni.thm.de - Update to version 0.1.3: * Add a --with-cursorpath option to configure * Mon Apr 25 2016 sndirsch@suse.com - removed u_fix-issue-with-gcc.patch * patch was only necessary with gcc in 2013, when building 'awesome' against the static library; we do not ship the static libary (did we ever?) https://lists.freedesktop.org/archives/xcb/2016-April/010737.html * Mon Mar 30 2015 sndirsch@suse.com - added baselibs.conf as source to specfile * Fri Mar 27 2015 hrvoje.senjan@gmail.com - Update to version 0.1.2: + Use CFSwapInt32LittleToHost from CoreFoundation.h on Mac OS X to implement le32toh. + Check submodules before running autoconf. + darwin: Use OSByteOrder.h rather than CF. + Perform safety check before trying to load glyph cursor * Wed Nov 13 2013 tobias.johannes.klausmann@mni.thm.de - Update to version 0.1.1: + Fix memleak with broken resource databases + Check exact RENDER version that the server supports + Use LE_32 macro from on Solaris versions without le32toh() + Use $(AM_V_GEN) when calling gperf + Fail the build if gperf is needed, but not found + handle read() errors + Bugfix: Properly load cursor files where not all cursors are suitable * Thu Oct 17 2013 sndirsch@suse.com - renamed patch according to the X11:XOrg patch guidelines * Sat Oct 5 2013 kgronlund@suse.com - Fix issue with GCC * Sat Oct 5 2013 kgronlund@suse.com - Initial package, version 0.1.0+2