libwacom/libwacom.spec
Tomáš Chvátal 1550a2ed53 Accepting request 748511 from home:mgorse:branches:hardware
- Update to 1.1: 
  New devices: Wacom HID 5115
  Other change:
  * Button codes defined for the 3rd gen Intuos S
  Changes from version 1.0:
  - udev rules are now installed by default
  Changes from version 0.99.901:
  New devices
    * Lenovo YOGA 720, YOGA 520, IdeaPad FLEX 5, MIIX 520
  * Dell XPS 15 9570, Latitude 5175
  * HP Spectre x360, Envy x360 Convertible
  * Wacom Intuos Pro 2 S, Cintiq 22, DTK-1660E
  * Huion 610 Pro v2
  * Samsung 930QAA
  Other changes:
  * New API: libwacom_get_model_name()
  * meson build system support
  * fixed symbol versioning
  * EKR button ordering fixed
  * Stylus grouping added
  Changes from version 0.33:
  - New devices:
  * Wacom Bamboo Fun 4x5, Bamboo Fun 6x8, Bamboo1 5x8, Cintiq 16
  * HP EliteBook x360, x2, HP Envy x360
  * Acer Switch SA5
  * Huion H420
  * Lenovo Thinkpad L380 Yoga, L390 Yoga, Ideapad Flex, Yoga 730
  * Dell Latitude 7390
- Switch to meson for 15.2/tumbleweed
- Remove URI from keyring: file is no longer there.

OBS-URL: https://build.opensuse.org/request/show/748511
OBS-URL: https://build.opensuse.org/package/show/hardware/libwacom?expand=0&rev=8
2019-11-14 10:02:22 +00:00

136 lines
4.0 KiB
RPMSpec

#
# spec file for package libwacom
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
%if 0%{?suse_version} > 1510
%bcond_without meson
%else
%bcond_with meson
%endif
Name: libwacom
Version: 1.1
Release: 0
Summary: Library to identify wacom tablets
License: MIT
Group: System/Libraries
URL: https://linuxwacom.github.io/
Source: https://github.com/linuxwacom/libwacom/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
Source2: https://github.com/linuxwacom/libwacom/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2.sig
Source3: %{name}.keyring
Source99: baselibs.conf
%if %{with meson}
BuildRequires: meson >= 0.47.0
%endif
BuildRequires: pkgconfig
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gudev-1.0)
BuildRequires: pkgconfig(libxml-2.0)
%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.
%package -n libwacom2
Summary: Library to identify wacom tablets
Group: System/Libraries
Requires: %{name}-data >= %{version}
%description -n libwacom2
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
%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++
Requires: libwacom2 = %{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
%setup -q
%build
%if %{with meson}
%meson
%meson_build
%else
%configure \
--with-udev-dir=%{_libexecdir}/udev \
--disable-static
make %{?_smp_mflags}
%endif
%install
%if %{with meson}
%meson_install
%else
%make_install
%endif
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libwacom2 -p /sbin/ldconfig
%postun -n libwacom2 -p /sbin/ldconfig
%files -n libwacom2
%license COPYING
%doc NEWS README.md
%{_libdir}/libwacom.so.2*
%files data
%dir %{_datadir}/libwacom
%{_datadir}/libwacom/*.tablet
%{_datadir}/libwacom/*.stylus
%{_datadir}/libwacom/layouts/
%dir %{_libexecdir}/udev
%dir %{_udevrulesdir}
%{_udevrulesdir}/65-libwacom.rules
%files tools
%{_bindir}/libwacom-list-local-devices
%{_mandir}/man1/libwacom-list-local-devices.1%{?ext_man}
%files devel
%{_includedir}/libwacom-1.0/
%{_libdir}/*.so
%{_libdir}/pkgconfig/libwacom.pc
%changelog