File glabels-qt.spec of Package glabels-qt

#
# spec file for package glabels-qt
#
# Copyright (c) 2025 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/
#


%define qt6_version 6.8.0

Name:           glabels-qt
Version:        3.99+git.20251017T185753~fd10d88
Release:        0
Summary:        Qt based label designer
License:        GPL-3.0
URL:            http://glabels.org
Source:         %{name}-%{version}.tar.xz
BuildRequires:  barcode-devel
BuildRequires:  cmake
BuildRequires:  cmake(Qt6Core) >= %{qt6_version}
BuildRequires:  cmake(Qt6DBus) >= %{qt6_version}
BuildRequires:  cmake(Qt6Gui) >= %{qt6_version}
BuildRequires:  cmake(Qt6Linguist) >= %{qt6_version}
BuildRequires:  cmake(Qt6PrintSupport) >= %{qt6_version}
BuildRequires:  cmake(Qt6Svg) >= %{qt6_version}
BuildRequires:  cmake(Qt6Test) >= %{qt6_version}
BuildRequires:  cmake(Qt6Widgets) >= %{qt6_version}
BuildRequires:  cmake(Qt6Xml) >= %{qt6_version}
BuildRequires:  fdupes
BuildRequires:  pkgconfig
BuildRequires:  qrencode-devel
BuildRequires:  zlib-devel

%description
gLabels-qt is the development version of the next major version of
gLabels (a.k.a. glabels-4).

%prep
%autosetup -p1 -n %{name}-%{version}

%build
%cmake
make %{?_smp_mflags}

%install
cd build
make install DESTDIR=%{buildroot}

%fdupes %{buildroot}%{_datadir}/%{name}

%files
%defattr(-,root,root)
%license LICENSE
%doc README.md CREDITS.md
%{_bindir}/%{name}
%{_bindir}/glabels-batch-qt
%dir %{_datadir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/mime/packages/x-glabels-document.mime.xml
%dir %{_iconsdir}/hicolor
%dir %{_iconsdir}/hicolor/*
%dir %{_iconsdir}/hicolor/*/apps
%dir %{_iconsdir}/hicolor/*/mimetypes
%{_iconsdir}/hicolor/*/apps/*.svg
%{_iconsdir}/hicolor/*/mimetypes/*.svg
%{_mandir}/man1/%{name}.1%{ext_man}
%{_mandir}/man1/glabels-batch-qt.1%{ext_man}

%changelog
openSUSE Build Service is sponsored by