File rangoli.spec of Package rangoli

#
# spec file for package rangoli
#
# 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:           rangoli
Version:        2.0+git16.22b234b
Release:        0
Summary:        Software for Royal Kludge Keyboards
License:        GPL-3.0-only
URL:            https://github.com/rnayabed/rangoli
Source:         %{name}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  pkgconfig
BuildRequires:  qt6-quick-devel >= 6.5.1
BuildRequires:  qt6-svg-devel
BuildRequires:  pkgconfig(libudev)
Requires:       libQt6Svg6
%if 0%{?suse_version} && 0%{?suse_version} <= 1500
BuildRequires:  gcc12-c++
%else
BuildRequires:  gcc-c++
%endif

%description

%prep
%autosetup

%build
%cmake \
%if 0%{?suse_version} && 0%{?suse_version} <= 1500
	-D CMAKE_CXX_COMPILER=g++-12
%else
	%{nil}
%endif
%cmake_build

%install
%cmake_install
%fdupes %{buildroot}
rm -vf %{buildroot}%{_libdir}/pkgconfig/hidapi-hidraw.pc

%post
%postun

%files
%license LICENSE
%doc supported-keyboards.md keyboards-list.md README.md
%{_bindir}/keyboards/
%{_bindir}/rangoli
%{_bindir}/udev-rule-writer

%changelog
openSUSE Build Service is sponsored by