File seamly2d.spec of Package seamly2d

Name:           seamly2d
Version:        @SERVICE@
Release:        0
Summary:        Open source patternmaking software
License:        GPL-3.0-or-later
Group:          Productivity/Graphics/Other
URL:            https://seamly.io
Source:         %{name}-%{version}.tar.xz
Patch1:         common-pri.patch
BuildRequires:  chrpath
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  desktop-file-utils
#uildRequires:  git
BuildRequires:  cmake(Qt6Concurrent)
BuildRequires:  cmake(Qt6Core)
BuildRequires:  cmake(Qt6Gui)
BuildRequires:  cmake(Qt6LinguistTools)
BuildRequires:  cmake(Qt6Multimedia)
BuildRequires:  cmake(Qt6Network)
BuildRequires:  cmake(Qt6PrintSupport)
BuildRequires:  cmake(Qt6Svg)
BuildRequires:  cmake(Qt6Test)
BuildRequires:  cmake(Qt6Widgets)
BuildRequires:  cmake(Qt6Xml)
BuildRequires:  pkgconfig(xerces-c)
Recommends:     poppler-utils

%description
Seamly2D is pattern design software to create scalable, sharable custom-fit
patterns using bespoke tailoring, haute couture, and historical pattern
drafting techniques.

%prep
%autosetup -p1
git_ver=$(echo %{version} | sed 's/^.*git.*\.//')
sed -i "s/LATEST_COMMIT_HASH/$git_ver/" common.pri

%build
%qmake_qt6
%make_build

%install
%make_install INSTALL_ROOT=%{buildroot}
chrpath -d %{buildroot}%{_bindir}/%{name}
chrpath -d %{buildroot}%{_bindir}/seamlyme

%files
%doc AUTHORS.txt CONTRIBUTING.md
%{_bindir}/%{name}
%{_bindir}/seamlyme
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/seamlyme.desktop
%{_datadir}/pixmaps/*%{name}*.??g
%{_datadir}/pixmaps/*seamlyme*.??g
%{_datadir}/%{name}
%license LICENSE LICENSE.md

%changelog
openSUSE Build Service is sponsored by