Skip to content

Commit

Permalink
[FlowPlayer.spec] Overhaul fundamentally
Browse files Browse the repository at this point in the history
  • Loading branch information
Olf0 authored Sep 27, 2023
1 parent 431462f commit e11649d
Showing 1 changed file with 39 additions and 40 deletions.
79 changes: 39 additions & 40 deletions rpm/FlowPlayer.spec
Original file line number Diff line number Diff line change
@@ -1,25 +1,44 @@
#
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.27
#

Name: flowplayer

# >> macros
# << macros

# These macros should already be defined in the RPMbuild environment, see: rpm --showrc
%{!?qtc_qmake:%define qtc_qmake %qmake}
%{!?qtc_qmake5:%define qtc_qmake5 %qmake5}
%{!?qtc_make:%define qtc_make make}
%{!?qmake5_install:%define qmake5_install make install INSTALL_ROOT=%{buildroot}}
%{?qtc_builddir:%define _builddir %qtc_builddir}
Summary: flowplayer

Summary: Music Player for SailfishOS
# The <version> tag must adhere to semantic versioning: Among multiple other
# reasons due to its use for `qmake5` in line 56. See https://semver.org/
Version: 0.1
Release: 9
Group: Qt/Qt
License: LICENSE
URL: http://example.org/
Source0: %{name}-%{version}.tar.bz2
Source100: FlowPlayer.yaml
# The <release> tag *may* comprise one of {alpha,beta,rc,release} postfixed with
# a natural number greater or equal to 1 (e.g., "beta3") and may additionally be
# postfixed with a plus character ("+"), the name of the packager and a release
# number chosen by her (e.g., "rc2+jane4"). `{alpha|beta|rc|release}`
# indicates the expected status of the software. No other identifiers shall be
# used for any published version, but for the purpose of testing infrastructure
# other nonsensual identifiers as `adud` may be used, which do *not* trigger a
# build at GitHub and OBS, when configured accordingly; mind the sorting
# (`adud` < `alpha`). For details and reasons, see
# https://github.com/storeman-developers/harbour-storeman/wiki/Git-tag-format
Release: 10
# The Group tag should comprise one of the groups listed here:
# https://github.com/mer-tools/spectacle/blob/master/data/GROUPS
Group: Applications/Multimedia
License: MPL-2.0-no-copyleft-exception
URL: https://github.com/sailfishos-applications/%{name}
# Altering the `Vendor:` field breaks the update path on SailfishOS, see
# https://en.opensuse.org/SDB:Vendor_change_update#Disabling_Vendor_stickiness
Vendor: meego
# The "Source0:" line below requires that the value of %%{name} is also the
# project name at GitHub and the value of `%%{version}-%%{release}` is also
# the name of a correspondingly set Git tag. For details and reasons, see
# https://github.com/storeman-developers/harbour-storeman/wiki/Git-tag-format
Source0: %{url}/archive/%{version}-%{release}/%{name}-%{version}.tar.gz
# Note that the rpmlintrc file MUST be named exactly so according to
# https://en.opensuse.org/openSUSE:Packaging_checks#Building_Packages_in_spite_of_errors
Source99: %{name}.rpmlintrc

Requires: sailfishsilica-qt5 >= 0.10.9
BuildRequires: pkgconfig(sailfishapp) >= 1.0.2
BuildRequires: pkgconfig(Qt5Core)
Expand All @@ -28,44 +47,24 @@ BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: desktop-file-utils

%description
Short description of my SailfishOS Application

FlowPlayer is a music player for SailfishOS with lyrics support, online radio and 10-band equalizer.

%prep
%setup -q -n %{name}-%{version}

# >> setup
# << setup
%setup -q

%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 \
desktop-file-install --delete-original --dir %{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/*.desktop

%files
%defattr(-,root,root,-)
%{_bindir}
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/86x86/apps/%{name}.png
# >> files
# << files

0 comments on commit e11649d

Please sign in to comment.