libwacom/libwacom.spec

133 lines
4.2 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package libwacom
#
# Copyright (c) 2024 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/
#
Name: libwacom
Version: 2.11.0
Release: 0
Summary: Library to identify wacom tablets
License: MIT
Group: System/Libraries
URL: https://linuxwacom.github.io/
Accepting request 979735 from home:dirkmueller:Factory - update to 2.2.0: * data: Add ISDv4 5285 (Lenovo ThinkPad X13 Yoga Gen 2) * data: Add ISDv4 16C (HP ZBook x2 G4) * Add ISDv4 52a2 (Lenovo Yoga 6 13ALC6) * data: Add ISDv4 5218 (Lenovo IdeaPad Flex 5 14ALC05) * data: Add ISDv4 521c (Lenovo IdeaPad Flex 5 15ALC05) * data: Add ISDv4 49a3 (Dell Latitude 7320 Detachable) * Remove now-unused libwacom.pc.in * CI: add a workflow to check for "sysinfo" in newly added data files * doc: fix the check for integration flags in the example code * github: bump freebsd workflow to 0.1.5 * Update data/surface-go-2.tablet * Update huion-h610-pro.tablet * data: Add ISDv4 4995 (HP EliteBook x360 1040 G8 Notebook PC) * data: Add ISDv4 51EF (Lenovo Yoga C740-14IML) * data: Add ISDv4 2d1f:0095 (PINE64 PineNote) * data: Add ISDv4 52b0 (Lenovo Yoga 7 14ACN6) * data: Add ISDv4 511a (Lenovo ThinkPad X1 Tablet Gen 3) * data: Add ISDv4 484d (Dell Latitude 5290) * Add description for elan-2a70 (#466) * data: remove unknown BuiltIn key from the DTU1931 * data: Add ISDv4 5276 (Lenovo ThinkPad X1 Yoga Gen 6) * data: Add ISDv4 51d0 ("Lenovo ThinkPad X1 Titanium Gen 1") * data: Add ISDv4 5019 (Fujitsu LIFEBOOK T935) * test: add a test for matching the button count with the evdev codes * meson.build: use gnu_symbol_visibility argument * meson.build: use current_source_dir() over deprecated source_root() * Remove unused arguments from two helper functions * github: build with ninja --verbose * CI: don't enable -Wall -Wextra in the CI OBS-URL: https://build.opensuse.org/request/show/979735 OBS-URL: https://build.opensuse.org/package/show/hardware/libwacom?expand=0&rev=20
2022-06-02 16:46:43 +02:00
Source0: https://github.com/linuxwacom/libwacom/releases/download/libwacom-%{version}/libwacom-%{version}.tar.xz
Source1: https://github.com/linuxwacom/libwacom/releases/download/libwacom-%{version}/libwacom-%{version}.tar.xz.sig
# Fetched from https://github.com/whot.gpg
Source2: %{name}.keyring
Source99: baselibs.conf
BuildRequires: meson >= 0.51.0
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gudev-1.0)
BuildRequires: pkgconfig(libevdev) >= 1.7.0
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: doxygen
%description
libwacom is a library to identify wacom tablets and their model-specific
features. It provides easy access to information such as "is this a
built-in on-screen tablet", "what is the size of this model", etc.
Accepting request 979735 from home:dirkmueller:Factory - update to 2.2.0: * data: Add ISDv4 5285 (Lenovo ThinkPad X13 Yoga Gen 2) * data: Add ISDv4 16C (HP ZBook x2 G4) * Add ISDv4 52a2 (Lenovo Yoga 6 13ALC6) * data: Add ISDv4 5218 (Lenovo IdeaPad Flex 5 14ALC05) * data: Add ISDv4 521c (Lenovo IdeaPad Flex 5 15ALC05) * data: Add ISDv4 49a3 (Dell Latitude 7320 Detachable) * Remove now-unused libwacom.pc.in * CI: add a workflow to check for "sysinfo" in newly added data files * doc: fix the check for integration flags in the example code * github: bump freebsd workflow to 0.1.5 * Update data/surface-go-2.tablet * Update huion-h610-pro.tablet * data: Add ISDv4 4995 (HP EliteBook x360 1040 G8 Notebook PC) * data: Add ISDv4 51EF (Lenovo Yoga C740-14IML) * data: Add ISDv4 2d1f:0095 (PINE64 PineNote) * data: Add ISDv4 52b0 (Lenovo Yoga 7 14ACN6) * data: Add ISDv4 511a (Lenovo ThinkPad X1 Tablet Gen 3) * data: Add ISDv4 484d (Dell Latitude 5290) * Add description for elan-2a70 (#466) * data: remove unknown BuiltIn key from the DTU1931 * data: Add ISDv4 5276 (Lenovo ThinkPad X1 Yoga Gen 6) * data: Add ISDv4 51d0 ("Lenovo ThinkPad X1 Titanium Gen 1") * data: Add ISDv4 5019 (Fujitsu LIFEBOOK T935) * test: add a test for matching the button count with the evdev codes * meson.build: use gnu_symbol_visibility argument * meson.build: use current_source_dir() over deprecated source_root() * Remove unused arguments from two helper functions * github: build with ninja --verbose * CI: don't enable -Wall -Wextra in the CI OBS-URL: https://build.opensuse.org/request/show/979735 OBS-URL: https://build.opensuse.org/package/show/hardware/libwacom?expand=0&rev=20
2022-06-02 16:46:43 +02:00
%package -n libwacom9
Summary: Library to identify wacom tablets
Group: System/Libraries
Requires: %{name}-data >= %{version}
Accepting request 979735 from home:dirkmueller:Factory - update to 2.2.0: * data: Add ISDv4 5285 (Lenovo ThinkPad X13 Yoga Gen 2) * data: Add ISDv4 16C (HP ZBook x2 G4) * Add ISDv4 52a2 (Lenovo Yoga 6 13ALC6) * data: Add ISDv4 5218 (Lenovo IdeaPad Flex 5 14ALC05) * data: Add ISDv4 521c (Lenovo IdeaPad Flex 5 15ALC05) * data: Add ISDv4 49a3 (Dell Latitude 7320 Detachable) * Remove now-unused libwacom.pc.in * CI: add a workflow to check for "sysinfo" in newly added data files * doc: fix the check for integration flags in the example code * github: bump freebsd workflow to 0.1.5 * Update data/surface-go-2.tablet * Update huion-h610-pro.tablet * data: Add ISDv4 4995 (HP EliteBook x360 1040 G8 Notebook PC) * data: Add ISDv4 51EF (Lenovo Yoga C740-14IML) * data: Add ISDv4 2d1f:0095 (PINE64 PineNote) * data: Add ISDv4 52b0 (Lenovo Yoga 7 14ACN6) * data: Add ISDv4 511a (Lenovo ThinkPad X1 Tablet Gen 3) * data: Add ISDv4 484d (Dell Latitude 5290) * Add description for elan-2a70 (#466) * data: remove unknown BuiltIn key from the DTU1931 * data: Add ISDv4 5276 (Lenovo ThinkPad X1 Yoga Gen 6) * data: Add ISDv4 51d0 ("Lenovo ThinkPad X1 Titanium Gen 1") * data: Add ISDv4 5019 (Fujitsu LIFEBOOK T935) * test: add a test for matching the button count with the evdev codes * meson.build: use gnu_symbol_visibility argument * meson.build: use current_source_dir() over deprecated source_root() * Remove unused arguments from two helper functions * github: build with ninja --verbose * CI: don't enable -Wall -Wextra in the CI OBS-URL: https://build.opensuse.org/request/show/979735 OBS-URL: https://build.opensuse.org/package/show/hardware/libwacom?expand=0&rev=20
2022-06-02 16:46:43 +02:00
%description -n libwacom9
libwacom is a library to identify wacom tablets and their model-specific
features. It provides easy access to information such as "is this a
built-in on-screen tablet", "what is the size of this model", etc.
%package data
Summary: Library to identify wacom tablets -- Data Files
Group: System/Libraries
%description data
libwacom is a library to identify wacom tablets and their model-specific
features. It provides easy access to information such as "is this a
built-in on-screen tablet", "what is the size of this model", etc.
%package tools
Summary: Library to identify wacom tablets -- Tools
Group: Hardware/Other
Requires: python3-libevdev
Requires: python3-pyudev
%description tools
libwacom is a library to identify wacom tablets and their model-specific
features. It provides easy access to information such as "is this a
built-in on-screen tablet", "what is the size of this model", etc.
%package devel
Summary: Library to identify wacom tablets -- Development Files
Group: Development/Libraries/C and C++
Accepting request 979735 from home:dirkmueller:Factory - update to 2.2.0: * data: Add ISDv4 5285 (Lenovo ThinkPad X13 Yoga Gen 2) * data: Add ISDv4 16C (HP ZBook x2 G4) * Add ISDv4 52a2 (Lenovo Yoga 6 13ALC6) * data: Add ISDv4 5218 (Lenovo IdeaPad Flex 5 14ALC05) * data: Add ISDv4 521c (Lenovo IdeaPad Flex 5 15ALC05) * data: Add ISDv4 49a3 (Dell Latitude 7320 Detachable) * Remove now-unused libwacom.pc.in * CI: add a workflow to check for "sysinfo" in newly added data files * doc: fix the check for integration flags in the example code * github: bump freebsd workflow to 0.1.5 * Update data/surface-go-2.tablet * Update huion-h610-pro.tablet * data: Add ISDv4 4995 (HP EliteBook x360 1040 G8 Notebook PC) * data: Add ISDv4 51EF (Lenovo Yoga C740-14IML) * data: Add ISDv4 2d1f:0095 (PINE64 PineNote) * data: Add ISDv4 52b0 (Lenovo Yoga 7 14ACN6) * data: Add ISDv4 511a (Lenovo ThinkPad X1 Tablet Gen 3) * data: Add ISDv4 484d (Dell Latitude 5290) * Add description for elan-2a70 (#466) * data: remove unknown BuiltIn key from the DTU1931 * data: Add ISDv4 5276 (Lenovo ThinkPad X1 Yoga Gen 6) * data: Add ISDv4 51d0 ("Lenovo ThinkPad X1 Titanium Gen 1") * data: Add ISDv4 5019 (Fujitsu LIFEBOOK T935) * test: add a test for matching the button count with the evdev codes * meson.build: use gnu_symbol_visibility argument * meson.build: use current_source_dir() over deprecated source_root() * Remove unused arguments from two helper functions * github: build with ninja --verbose * CI: don't enable -Wall -Wextra in the CI OBS-URL: https://build.opensuse.org/request/show/979735 OBS-URL: https://build.opensuse.org/package/show/hardware/libwacom?expand=0&rev=20
2022-06-02 16:46:43 +02:00
Requires: libwacom9 = %{version}
%description devel
libwacom is a library to identify wacom tablets and their model-specific
features. It provides easy access to information such as "is this a
built-in on-screen tablet", "what is the size of this model", etc.
%prep
%autosetup -p1
%build
%meson -Db_lto=true -Dtests=disabled
%meson_build
%install
%meson_install
sed -e 's-#!/usr/bin/env python3-#!/usr/bin/python3-g' -i %{buildroot}%{_bindir}/*
find %{buildroot} -type f -name "*.la" -delete -print
%python3_fix_shebang
%check
%meson_test
Accepting request 979735 from home:dirkmueller:Factory - update to 2.2.0: * data: Add ISDv4 5285 (Lenovo ThinkPad X13 Yoga Gen 2) * data: Add ISDv4 16C (HP ZBook x2 G4) * Add ISDv4 52a2 (Lenovo Yoga 6 13ALC6) * data: Add ISDv4 5218 (Lenovo IdeaPad Flex 5 14ALC05) * data: Add ISDv4 521c (Lenovo IdeaPad Flex 5 15ALC05) * data: Add ISDv4 49a3 (Dell Latitude 7320 Detachable) * Remove now-unused libwacom.pc.in * CI: add a workflow to check for "sysinfo" in newly added data files * doc: fix the check for integration flags in the example code * github: bump freebsd workflow to 0.1.5 * Update data/surface-go-2.tablet * Update huion-h610-pro.tablet * data: Add ISDv4 4995 (HP EliteBook x360 1040 G8 Notebook PC) * data: Add ISDv4 51EF (Lenovo Yoga C740-14IML) * data: Add ISDv4 2d1f:0095 (PINE64 PineNote) * data: Add ISDv4 52b0 (Lenovo Yoga 7 14ACN6) * data: Add ISDv4 511a (Lenovo ThinkPad X1 Tablet Gen 3) * data: Add ISDv4 484d (Dell Latitude 5290) * Add description for elan-2a70 (#466) * data: remove unknown BuiltIn key from the DTU1931 * data: Add ISDv4 5276 (Lenovo ThinkPad X1 Yoga Gen 6) * data: Add ISDv4 51d0 ("Lenovo ThinkPad X1 Titanium Gen 1") * data: Add ISDv4 5019 (Fujitsu LIFEBOOK T935) * test: add a test for matching the button count with the evdev codes * meson.build: use gnu_symbol_visibility argument * meson.build: use current_source_dir() over deprecated source_root() * Remove unused arguments from two helper functions * github: build with ninja --verbose * CI: don't enable -Wall -Wextra in the CI OBS-URL: https://build.opensuse.org/request/show/979735 OBS-URL: https://build.opensuse.org/package/show/hardware/libwacom?expand=0&rev=20
2022-06-02 16:46:43 +02:00
%post -n libwacom9 -p /sbin/ldconfig
%postun -n libwacom9 -p /sbin/ldconfig
Accepting request 979735 from home:dirkmueller:Factory - update to 2.2.0: * data: Add ISDv4 5285 (Lenovo ThinkPad X13 Yoga Gen 2) * data: Add ISDv4 16C (HP ZBook x2 G4) * Add ISDv4 52a2 (Lenovo Yoga 6 13ALC6) * data: Add ISDv4 5218 (Lenovo IdeaPad Flex 5 14ALC05) * data: Add ISDv4 521c (Lenovo IdeaPad Flex 5 15ALC05) * data: Add ISDv4 49a3 (Dell Latitude 7320 Detachable) * Remove now-unused libwacom.pc.in * CI: add a workflow to check for "sysinfo" in newly added data files * doc: fix the check for integration flags in the example code * github: bump freebsd workflow to 0.1.5 * Update data/surface-go-2.tablet * Update huion-h610-pro.tablet * data: Add ISDv4 4995 (HP EliteBook x360 1040 G8 Notebook PC) * data: Add ISDv4 51EF (Lenovo Yoga C740-14IML) * data: Add ISDv4 2d1f:0095 (PINE64 PineNote) * data: Add ISDv4 52b0 (Lenovo Yoga 7 14ACN6) * data: Add ISDv4 511a (Lenovo ThinkPad X1 Tablet Gen 3) * data: Add ISDv4 484d (Dell Latitude 5290) * Add description for elan-2a70 (#466) * data: remove unknown BuiltIn key from the DTU1931 * data: Add ISDv4 5276 (Lenovo ThinkPad X1 Yoga Gen 6) * data: Add ISDv4 51d0 ("Lenovo ThinkPad X1 Titanium Gen 1") * data: Add ISDv4 5019 (Fujitsu LIFEBOOK T935) * test: add a test for matching the button count with the evdev codes * meson.build: use gnu_symbol_visibility argument * meson.build: use current_source_dir() over deprecated source_root() * Remove unused arguments from two helper functions * github: build with ninja --verbose * CI: don't enable -Wall -Wextra in the CI OBS-URL: https://build.opensuse.org/request/show/979735 OBS-URL: https://build.opensuse.org/package/show/hardware/libwacom?expand=0&rev=20
2022-06-02 16:46:43 +02:00
%files -n libwacom9
%license COPYING
%doc NEWS README.md
Accepting request 979735 from home:dirkmueller:Factory - update to 2.2.0: * data: Add ISDv4 5285 (Lenovo ThinkPad X13 Yoga Gen 2) * data: Add ISDv4 16C (HP ZBook x2 G4) * Add ISDv4 52a2 (Lenovo Yoga 6 13ALC6) * data: Add ISDv4 5218 (Lenovo IdeaPad Flex 5 14ALC05) * data: Add ISDv4 521c (Lenovo IdeaPad Flex 5 15ALC05) * data: Add ISDv4 49a3 (Dell Latitude 7320 Detachable) * Remove now-unused libwacom.pc.in * CI: add a workflow to check for "sysinfo" in newly added data files * doc: fix the check for integration flags in the example code * github: bump freebsd workflow to 0.1.5 * Update data/surface-go-2.tablet * Update huion-h610-pro.tablet * data: Add ISDv4 4995 (HP EliteBook x360 1040 G8 Notebook PC) * data: Add ISDv4 51EF (Lenovo Yoga C740-14IML) * data: Add ISDv4 2d1f:0095 (PINE64 PineNote) * data: Add ISDv4 52b0 (Lenovo Yoga 7 14ACN6) * data: Add ISDv4 511a (Lenovo ThinkPad X1 Tablet Gen 3) * data: Add ISDv4 484d (Dell Latitude 5290) * Add description for elan-2a70 (#466) * data: remove unknown BuiltIn key from the DTU1931 * data: Add ISDv4 5276 (Lenovo ThinkPad X1 Yoga Gen 6) * data: Add ISDv4 51d0 ("Lenovo ThinkPad X1 Titanium Gen 1") * data: Add ISDv4 5019 (Fujitsu LIFEBOOK T935) * test: add a test for matching the button count with the evdev codes * meson.build: use gnu_symbol_visibility argument * meson.build: use current_source_dir() over deprecated source_root() * Remove unused arguments from two helper functions * github: build with ninja --verbose * CI: don't enable -Wall -Wextra in the CI OBS-URL: https://build.opensuse.org/request/show/979735 OBS-URL: https://build.opensuse.org/package/show/hardware/libwacom?expand=0&rev=20
2022-06-02 16:46:43 +02:00
%{_libdir}/libwacom.so.9*
%files data
%dir %{_datadir}/libwacom
%{_datadir}/libwacom/*.tablet
%{_datadir}/libwacom/*.stylus
%{_datadir}/libwacom/layouts/
%dir %{_udevrulesdir}
%{_udevrulesdir}/65-libwacom.rules
%dir %{_udevhwdbdir}
%{_udevhwdbdir}/65-libwacom.hwdb
%files tools
%{_bindir}/libwacom-list-devices
%{_bindir}/libwacom-update-db
%{_bindir}/libwacom-show-stylus
%{_bindir}/libwacom-list-local-devices
%{_mandir}/man1/libwacom-list-devices.1%{?ext_man}
%{_mandir}/man1/libwacom-list-local-devices.1%{?ext_man}
%files devel
%{_includedir}/libwacom-1.0/
%{_libdir}/*.so
%{_libdir}/pkgconfig/libwacom.pc
%changelog