From b2a8f58273dcaa9060b641370a5c375d74752333 Mon Sep 17 00:00:00 2001 From: Andrea Scarpino Date: Fri, 15 May 2026 14:54:48 +0200 Subject: [PATCH] Add Chum metadata --- .gitignore | 2 - rpm/harbour-gopherette.spec | 81 +++++++++++++++++++++++++++++++++++++ rpm/harbour-gopherette.yaml | 45 --------------------- 3 files changed, 81 insertions(+), 47 deletions(-) create mode 100644 rpm/harbour-gopherette.spec delete mode 100644 rpm/harbour-gopherette.yaml diff --git a/.gitignore b/.gitignore index a22df22..4639a49 100644 --- a/.gitignore +++ b/.gitignore @@ -36,5 +36,3 @@ Makefile* # QtCtreator CMake CMakeLists.txt.user* - -rpm/*.spec diff --git a/rpm/harbour-gopherette.spec b/rpm/harbour-gopherette.spec new file mode 100644 index 0000000..5b2c216 --- /dev/null +++ b/rpm/harbour-gopherette.spec @@ -0,0 +1,81 @@ +Name: harbour-gopherette + +# >> macros +# << macros + +%{!?qtc_qmake:%define qtc_qmake %qmake} +%{!?qtc_qmake5:%define qtc_qmake5 %qmake5} +%{!?qtc_make:%define qtc_make make} +%{?qtc_builddir:%define _builddir %qtc_builddir} +Summary: Gopherette +Version: 0.5 +Release: 1 +Group: Qt/Qt +License: GPL-3 +URL: http://jf.almel.fr/gopherette/ +Source0: %{name}-%{version}.tar.bz2 +Requires: sailfishsilica-qt5 >= 0.10.9 +BuildRequires: pkgconfig(sailfishapp) >= 1.0.2 +BuildRequires: pkgconfig(Qt5Core) +BuildRequires: pkgconfig(Qt5Qml) +BuildRequires: pkgconfig(Qt5Quick) +BuildRequires: pkgconfig(Qt5Multimedia) +BuildRequires: desktop-file-utils + +%description +Browse the Gopher-space with your SailfishOS phone! + +%if 0%{?_chum} +Title: Gopherette +Type: desktop-application +DeveloperName: Jérémy Farnaud (remjey) +Categories: + - Network +Custom: + Repo: https://github.com/remjey/Gopherette +PackageIcon: https://raw.githubcontent.com/remjey/Gopherette/master/icons/gopherette.svg +Links: + Homepage: https://github.com/remjey/Gopherette + Bugtracker: https://github.com/remjey/Gopherette/issues + Help: https://github.com/remjey/Gopherette/discussions +%endif + + +%prep +%setup -q -n %{name}-%{version} + +# >> setup +# << setup + +%build +# >> build pre +# << build pre + +%qtc_qmake5 + +%qtc_make %{?_smp_mflags} + +# >> build post +# << build post + +%install +rm -rf %{buildroot} +# >> install pre +# << install pre +%qmake5_install + +# >> install post +# << install post + +desktop-file-install --delete-original \ + --dir %{buildroot}%{_datadir}/applications \ + %{buildroot}%{_datadir}/applications/*.desktop + +%files +%defattr(-,root,root,-) +%{_bindir} +%{_datadir}/%{name} +%{_datadir}/applications/%{name}.desktop +%{_datadir}/icons/hicolor/*/apps/%{name}.png +# >> files +# << files diff --git a/rpm/harbour-gopherette.yaml b/rpm/harbour-gopherette.yaml deleted file mode 100644 index 6ac8ad3..0000000 --- a/rpm/harbour-gopherette.yaml +++ /dev/null @@ -1,45 +0,0 @@ -Name: harbour-gopherette -Summary: Gopherette -Version: 0.5 -Release: 1 -# The contents of the Group field should be one of the groups listed here: -# http://gitorious.org/meego-developer-tools/spectacle/blobs/master/data/GROUPS -Group: Qt/Qt -URL: http://jf.almel.fr/gopherette/ -License: GPL-3 -# This must be generated before uploading a package to a remote build service. -# Usually this line does not need to be modified. -Sources: -- '%{name}-%{version}.tar.bz2' -Description: | - Browse the Gopher-space with your SailfishOS phone! -Configure: none -# The qtc5 builder inserts macros to allow QtCreator to have fine -# control over qmake/make execution -Builder: qtc5 - -# This section specifies build dependencies that are resolved using pkgconfig. -# This is the preferred way of specifying build dependencies for your package. -PkgConfigBR: - - sailfishapp >= 1.0.2 - - Qt5Core - - Qt5Qml - - Qt5Quick - -# Build dependencies without a pkgconfig setup can be listed here -# PkgBR: -# - package-needed-to-build - -# Runtime dependencies which are not automatically detected -Requires: - - sailfishsilica-qt5 >= 0.10.9 - -# All installed files -Files: - - '%{_bindir}' - - '%{_datadir}/%{name}' - - '%{_datadir}/applications/%{name}.desktop' - - '%{_datadir}/icons/hicolor/*/apps/%{name}.png' - -# For more information about yaml and what's supported in Sailfish OS -# build system, please see https://wiki.merproject.org/wiki/Spectacle