%if "%{?_vendor}" == "meego" %global sailfishos 1 Name: harbour-tremotesf %else Name: tremotesf %endif Version: 1.8.0 Release: 1%{!?sailfishos:%{!?suse_version:%{dist}}} Summary: Remote GUI for transmission-daemon %if 0%{?suse_version} Group: Productivity/Networking/Other License: GPL-3.0-or-later %else License: GPLv3+ %endif URL: https://github.com/equeim/tremotesf2 Source0: https://github.com/equeim/tremotesf2/archive/%{version}.tar.gz BuildRequires: cmake BuildRequires: desktop-file-utils %if 0%{?sailfishos} Requires: sailfishsilica-qt5 Requires: nemo-qml-plugin-notifications-qt5 BuildRequires: pkgconfig(Qt5Concurrent) BuildRequires: pkgconfig(Qt5Network) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5Quick) BuildRequires: qt5-qttools-linguist BuildRequires: pkgconfig(sailfishapp) %global __provides_exclude mimehandler %else Requires: hicolor-icon-theme BuildRequires: cmake(Qt5Concurrent) BuildRequires: cmake(Qt5Network) BuildRequires: cmake(Qt5DBus) BuildRequires: cmake(Qt5Widgets) BuildRequires: cmake(Qt5X11Extras) BuildRequires: cmake(Qt5LinguistTools) BuildRequires: cmake(KF5WidgetsAddons) BuildRequires: cmake(KF5WindowSystem) BuildRequires: gettext # OBS complains about not owned directories if hicolor-icon-theme isn't installed at build time %if 0%{?suse_version} BuildRequires: hicolor-icon-theme %endif %endif %global build_type RelWithDebInfo #%%global build_type Debug %if 0%{?sailfishos} %global build_directory build-%{_arch} %else %if 0%{?mageia} %global build_directory %{_cmake_builddir} %endif %endif %if ! 0%{?make_build:1} %global make_build %{__make} %{?_smp_mflags} %endif %description Remote GUI for Transmission BitTorrent client. %prep %setup -q -n tremotesf2-%{version} %build %if 0%{?sailfishos} %{__mkdir_p} %{build_directory} cd %{build_directory} %cmake -DCMAKE_BUILD_TYPE=%{build_type} -DSAILFISHOS=ON .. %else %cmake %{!?suse_version:%{!?mageia:-DCMAKE_BUILD_TYPE=%{build_type}}} %endif %make_build %install %if 0%{?suse_version} %cmake_install %else %if 0%{?build_directory:1} cd %{build_directory} %endif %make_install %endif desktop-file-install \ --delete-original \ --dir "%{buildroot}/%{_datadir}/applications" \ "%{buildroot}/%{_datadir}/applications/"*.desktop %files %defattr(-,root,root) %{_bindir}/%{name} %{_datadir}/icons/hicolor/*/apps/* %{_datadir}/applications/*.desktop %if ! 0%{?sailfishos:1} %{_datadir}/metainfo/org.equeim.Tremotesf.appdata.xml %endif %{_datadir}/%{name} %changelog * Sun Sep 06 2020 Alexey Rochev - 1.8.0-1 - tremotesf-1.8.0 * Sat Jun 27 2020 Alexey Rochev - 1.7.1-1 - tremotesf-1.7.1 * Fri Jun 05 2020 Alexey Rochev - 1.7.0-1 - tremotesf-1.7.0 * Sat Jan 11 2020 Alexey Rochev - 1.6.4-1 - tremotesf-1.6.4 * Sun Jan 05 2020 Alexey Rochev - 1.6.3-1 - tremotesf-1.6.3 * Sun Jan 05 2020 Alexey Rochev - 1.6.2-1 - tremotesf-1.6.2 * Tue Jul 16 2019 Alexey Rochev - 1.6.1-1 - tremotesf-1.6.1 * Sat Jan 26 2019 Alexey Rochev - 1.6.0-1 - tremotesf-1.6.0 * Sat Dec 08 2018 Alexey Rochev - 1.5.6-1 - tremotesf-1.5.6 * Wed Sep 26 2018 Alexey Rochev - 1.5.5-1 - tremotesf-1.5.5 * Mon Sep 10 2018 Alexey Rochev - 1.5.4-1 - tremotesf-1.5.4 * Mon Sep 03 2018 Alexey Rochev - 1.5.3-1 - tremotesf-1.5.3 * Sat Aug 18 2018 Alexey Rochev - 1.5.2-1 - tremotesf-1.5.2 * Tue Aug 14 2018 Alexey Rochev - 1.5.1-1 - tremotesf-1.5.1 * Mon Aug 13 2018 Alexey Rochev - 1.5.0-1 - tremotesf-1.5.0