diff --git a/rpm/mount-sdcard.spec b/rpm/mount-sdcard.spec index 61a6081..4cc7f4e 100644 --- a/rpm/mount-sdcard.spec +++ b/rpm/mount-sdcard.spec @@ -1,37 +1,54 @@ +%global branch sfos340 Name: mount-sdcard Summary: Enhanced mounting scripts for media as SD-cards Version: 1.8.2 -# Since v1.4.2, the release version consists of two or three fields, separated by a dot ("."): -# - The first field must contain a natural number greater than zero. -# This number may be prefixed by one of {alpha,beta,rc,release}, e.g. "alpha13". -# - The second field indicates the minimal required SailfishOS version A.B.C.X in the format "sfosABC"; -# the fourth field of a SailfishOS version ("X") is neither depended upon or denoted. -# - An optional third field might be used by downstream packagers, who alter the package but want to -# retain the exact version number. It should consist of the packager's name appended with a natural -# number greater than zero as the packaging release number, e.g "joe8". -Release: 1.sfos340 +# Since v1.8.2, the release version consists of two or three fields, separated +# by dots ("."): +# - The first field must contain a natural number greater than zero. This number +# should be prefixed by one of {alpha,beta,rc,release}, which results in, e.g., +# "alpha42". +# - The second field must contain the git branch from which this release is +# built; it comprises the minimal required SailfishOS version A.B.C.X in the +# format "sfosABC" (the fourth field of a SailfishOS version ("X") is neither +# depended upon or denoted) plus if this is a version which utilises +# Qualcomm's `qcrypto` kernel module by appending "+qcrypto" to this field. +# - An optional third field might be used by downstream packagers, who alter the +# package but want to retain the exact version number. It should consist of +# the packager's name appended with a natural number greater than zero as the +# packaging release number, e.g "jane23". +Release: beta1.%{branch} +# Since v1.8.2, Git tags must adhere to the following format starting (adapted +# from Storeman's format: +# https://github.com/storeman-developers/harbour-storeman/wiki/Git-tag-format ), +# which comprises two fields separated by a slash ("/"): +# - The first field is simply the content of the `Release:` tag, i.e., +# `%%{release}`. +# - The second field is simply the content of the `Version:` tag, i.e., +# `%%{version}`. Group: System/Base Distribution: SailfishOS Vendor: olf -Packager: olf License: LGPL-2.1-only URL: https://github.com/Olf0/%{name} -# Download URLs for gzipped tarballs at GitHub must conform to: %{url}/archive//.tar.gz -Source: %{url}/archive/%{version}-%{release}/%{name}-%{version}.tar.gz -# rpmbuild (as of v4.14.1) handles the Icon tag awkwardly and in contrast to the Source tag(s): -# It only accepts a GIF or XPM file (a path is stripped to its basename) in the SOURCES directory -# (but not inside a tarball there)! Successfully tested GIF89a and XPMv3, but an XPM icon results -# in bad visual quality and large file size. +# Download URLs for gzipped tarballs at GitHub must conform to: +# %%{url}/archive//.tar.gz +Source0: %{url}/archive/%{release}/%{version}/%{name}-%{version}.tar.gz +# rpmbuild (as of v4.14.1) handles the Icon tag awkwardly and in contrast to +# the Source tag(s): It only accepts a GIF or XPM file (a path is stripped to +# its basename) in the SOURCES directory (but not inside a tarball there)! +# Successfully tested GIF89a and XPMv3, but an XPM icon results in bad visual +# quality and large file size. # Hence only to be used, when the file (or a symlink to it) is put there: #Icon: smartmedia_unmount.256x256.gif BuildArch: noarch Requires: systemd Requires: udisks2 -# Better use direct dependencies on specific versions than indirect ones (here: the line above -# versus the one below) in general, but ultimately decided not to do so in this special case -# (for commonality across release versions): +# Better use direct dependencies on specific versions than indirect ones (here: +# the line above versus the one below) in general, but ultimately decided not to +# do so in this special case (for commonality across release versions): Requires: sailfish-version >= 3.4.0 -# Omit anti-dependency on future, untested SFOS versions, until a known conflict exists: +# Omit anti-dependency on future, untested SFOS versions, until a known conflict +# exists: # Requires: sailfish-version < 99.99.99 %description @@ -55,7 +72,7 @@ Url: %endif %define _binary_payload w6.gzdio -%define _source_payload w2.gzdio +%define _source_payload w6.gzdio %prep %setup -q