Skip to content

Commit

Permalink
Merge pull request #63 from Olf0/for340
Browse files Browse the repository at this point in the history
`master`→`sfos340`: Overhaul `Release:` and Git tag format
  • Loading branch information
Olf0 authored Mar 22, 2023
2 parents 7d22268 + 5345851 commit ce79dbc
Showing 1 changed file with 38 additions and 21 deletions.
59 changes: 38 additions & 21 deletions rpm/mount-sdcard.spec
Original file line number Diff line number Diff line change
@@ -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/<tag-name>/<arbitrary-string>.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/<tag-name>/<arbitrary-string>.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
Expand All @@ -55,7 +72,7 @@ Url:
%endif

%define _binary_payload w6.gzdio
%define _source_payload w2.gzdio
%define _source_payload w6.gzdio

%prep
%setup -q
Expand Down

0 comments on commit ce79dbc

Please sign in to comment.