%define debug_package %{nil} %define _build_id_links none %define _disable_source_fetch 0 %define component_name terminal %define git_refspec c539266ab2448dbdbc1a7d825059e41d2bffceae %define git_refspec_short %(echo %{git_refspec} | cut -c -7) Name: cutefish-%{component_name} #Version: 0.0 Version: 0.0.0git.%{git_refspec} Release: 0a%{?dist} License: GPLv3 Summary: A terminal emulator for Cutefish BuildRequires: cmake BuildRequires: extra-cmake-modules BuildRequires: qt5-qtbase-devel qt5-qtdeclarative-devel qt5-qtquickcontrols2-devel qt5-linguist Provides: bundled(qmltermwidget) = 0.2.0git.65e75bc6ea589b51c80e5ff3f4008de5644d7cc5 #Source0: https://github.com/cutefishos/%{component_name}/archive/refs/tags/%{version}.tar.gz Source0: https://github.com/cutefishos/%{component_name}/tarball/%{git_refspec}#/%{component_name}-%{git_refspec}.tar.gz %description A terminal emulator for Cutefish %prep #%setup -qn %{component_name}-%{version} %setup -qn cutefishos-%{component_name}-%{git_refspec_short} %build %{set_build_flags} mkdir build pushd build cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. make %{?_smp_mflags} popd %install pushd build %make_install popd %files %{_bindir}/%{name} %{_datadir}/%{name} %{_datadir}/applications/%{name}.desktop %{_libdir}/qt5/qml/Cutefish/TermWidget