Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,3 @@ Makefile*

# QtCtreator CMake
CMakeLists.txt.user*

rpm/*.spec
81 changes: 81 additions & 0 deletions rpm/harbour-gopherette.spec
Original file line number Diff line number Diff line change
@@ -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
45 changes: 0 additions & 45 deletions rpm/harbour-gopherette.yaml

This file was deleted.