Репозиторий Sisyphus
Последнее обновление: 8 декабря 2021 | Пакетов: 17436 | Посещений: 22483702
en ru br
Репозитории ALT

Группа :: Система/Библиотеки
Пакет: libwacom

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_disable snapshot

%define ver_major 1.12
%def_disable docs

%ifnarch %valgrind_arches
%def_disable tests
%def_disable check
%else
%def_enable tests
%def_enable check
%endif

Name: libwacom
Version: %ver_major
Release: alt1

Summary: A Wacom tablets library
Group: System/Libraries
License: MIT
Url: https://github.com/linuxwacom/libwacom

%if_disabled snapshot
Source: %url/releases/download/%name-%version/%name-%version.tar.bz2
%else
Vcs: https://github.com/linuxwacom/libwacom.git
Source: %name-%version.tar
%endif

Requires: %name-data = %version-%release

BuildRequires(pre): meson rpm-macros-valgrind rpm-build-python3
BuildRequires: /proc glib2-devel libgudev-devel libxml2-devel
%{?_enable_docs:BuildRequires: doxygen graphviz}
%{?_enable_tests:
BuildRequires: python3-module-pytest
BuildRequires: libudev-devel python3-module-pyudev
BuildRequires: libevdev-devel python3-module-libevdev
BuildRequires: valgrind}

%description
%name 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: Development files for %name
Group: Development/C
Requires: %name = %version-%release

%description devel
The %name-devel package contains libraries and header files for
developing applications that use %name.

%package data
Summary: Tablets data for %name
Group: System/Libraries
BuildArch: noarch

%description data
%name is a library to identify wacom tablets and their model-specific
features.

This package contains tablets/stylus data for %name.

%package devel-doc
Summary: Development documentation for %name
Group: Development/Documentation
BuildArch: noarch
Conflicts: %name-devel < %version-%release

%description devel-doc
The %name-devel-doc package contains documentation for
developing applications that use %name.

%prep
%setup
%{?_enable_tests:sed -i 's/pytest-3/py.test-3/' meson.build}

%build
%meson \
   -Dudev-dir='/lib/udev' \
   %{?_disable_docs:-Ddocumentation=disabled} \
   %{?_disable_tests:-Dtests=disabled} \
   %{?optflags_lto:-Db_lto=true}
%nil
%meson_build

%install
%meson_install
# since 1.9 libwacom can read tablet and stylus files from /etc/libwacom
mkdir -p %buildroot%_sysconfdir/%name

%check
export LD_LIBRARY_PATH=%buildroot%_libdir
%meson_test

%files
%dir %_sysconfdir/%name
%_bindir/%name-list-local-devices
%_bindir/%name-list-devices
%_bindir/%name-update-db
%_bindir/%name-show-stylus
%_libdir/*.so.*
%_udevrulesdir/65-libwacom.rules
%_man1dir/libwacom-list-local-devices.1*
%_man1dir/libwacom-list-devices.1*
%doc NEWS README* COPYING

%files devel
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*

%files data
%dir %_datadir/%name
%_datadir/%name/*.tablet
%_datadir/%name/*.stylus
%_datadir/%name/layouts/
%_udevhwdbdir/65-%name.hwdb

#%files devel-doc

#%_datadir/gtk-doc/html/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin