%global commit 0fd46482f2b9b3c50acf533e5ca74f50ea25adf1 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: qvge Version: 0.6.2 Release: 4.20210405git%{shortcommit}%{?dist} License: MIT and (BSD and LGPLv3) Summary: Graph editor URL: https://arsmasiuk.github.io/qvge/ Source0: https://github.com/ArsMasiuk/qvge/archive/%{commit}/%{name}-%{shortcommit}.tar.gz # https://github.com/ArsMasiuk/qvge/issues/151 Patch0: %{name}-%{version}-lics.patch BuildRequires: make BuildRequires: gcc-c++ BuildRequires: desktop-file-utils BuildRequires: libappstream-glib BuildRequires: boost-devel # qt5-qtbase-devel BuildRequires: pkgconfig(Qt5Gui) # qt5-qtx11extras-devel BuildRequires: pkgconfig(Qt5X11Extras) # qt5-qtsvg-devel BuildRequires: pkgconfig(Qt5Svg) # Virtuals # qpocessinfo (https://github.com/baldurk/qprocessinfo) - BSD Provides: bundled(qprocessinfo) # qsint-widgets (part of https://sourceforge.net/projects/qsint/) - LGLPv3 Provides: bundled(qsint) = 0.4.0 # qtpropertybrowser (part of https://github.com/qtproject/qt-solutions) - BSD) Provides: bundled(qtpropertybrowser) = 2.7 Requires: shared-mime-info %description Multiplatform graph editor written in C++/Qt. Its main goal is to make possible visually edit two-dimensional graphs in a simple and intuitive way. %prep %autosetup -n %{name}-%{commit} -p 0 %build pushd src %{qmake_qt5} PREFIX=%{_prefix} %{make_build} popd %install pushd src %{make_install} INSTALL_ROOT=%{buildroot} popd # prepare license files mv src/3rdParty/qprocessinfo/LICENSE src/3rdParty/qprocessinfo/LICENSE.qprocessinfo mv src/3rdParty/qsint-widgets/README.txt src/3rdParty/qsint-widgets/README.qsint %check desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml # 'make check' not supported with upstream %files %license LICENSE src/3rdParty/qprocessinfo/LICENSE.qprocessinfo src/3rdParty/qsint-widgets/README.qsint %doc README.md %{_bindir}/qvgeapp %{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/applications/%{name}.desktop %{_datadir}/mime/packages/*.xml %{_datadir}/pixmaps/%{name}.png %changelog * Sun May 09 2021 TI_Eugene - 0.6.2-4 - Added 'BR: make' - Added 'R: shared-mime-info' - 'make check' note - Licenses cleanups ('License:' tag, appdata.xml, files/license section) * Mon May 03 2021 TI_Eugene - 0.6.2-3 - Bundling definitions added * Tue Jan 19 2021 TI_Eugene - 0.6.2-2 - Licenses fixes - Desktop files fixes * Thu Jan 07 2021 TI_Eugene - 0.6.2-1 - initial packaging for Fedora