File hidpp.spec of Package hidpp
#
# spec file for package hidpp
#
# 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/
#
#
Name: hidpp
Version: filled.by.source.service
Release: 0
Source: %{name}-%{version}.tar.xz
Patch1: 01-add_support_for_multi-version_and_version_detection_of_ireprogcontrols.patch
Patch2: 02-add_smartshift_and_hiresscroll.patch
Patch3: 03-add_ireciever_events.patch
Patch4: 04-add_ireset_feature.patch
Patch5: 05-fixed_bluetooth_support.patch
Patch6: 06-add_wirelessdevicestatus_feature_interface.patch
Patch7: 07-add_getpaireddevices_command_to_ireceiver.patch
Url: https://github.com/cvuchener/hidpp
Summary: HID++ library and tools
License: GPL-3.0
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: tinyxml2-devel
BuildRequires: libudev-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
cvuchener's hidpp library with PixlOne's modifications applied
%package -n %{lib_package}
Summary: HID++ library (fork)
License: GPL-3.0
%description -n %{lib_package}
cvuchener's hidpp library with PixlOne's modifications applied
%package devel
Summary: HID++ header files (fork)
License: GPL-3.0
Requires: %{name} = %{version}
%description devel
cvuchener's hidpp library headers
%prep
%autosetup -p1
%build
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX="/usr/"
make
%install
cd build
%makeinstall
%files
%doc README.md COPYING
%defattr(-,root,root,-)
%{_bindir}/*
%{_libdir}/*.so*
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%dir %{_libdir}/cmake/hidpp
%{_libdir}/cmake/hidpp/*
%post -n %{lib_package} -p /sbin/ldconfig
%postun -n %{lib_package} -p /sbin/ldconfig
%changelog