Skip to content

Commit ad7ade6

Browse files
authored
Merge pull request #60 from Olf0/for220
`master`→`sfos220`: Overhaul `Release:` and Git tag format
2 parents 62eebc6 + 69f8be9 commit ad7ade6

File tree

1 file changed

+36
-20
lines changed

1 file changed

+36
-20
lines changed

rpm/mount-sdcard.spec

Lines changed: 36 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,51 @@
1+
%global branch sfos220
12
Name: mount-sdcard
23
Summary: Enhanced mounting scripts for media as SD-cards
34
Version: 1.8.2
4-
# Since v1.4.2, the release version consists of two or three fields, separated by a dot ("."):
5-
# - The first field must contain a natural number greater than zero.
6-
# This number may be prefixed by one of {alpha,beta,rc,release}, e.g. "alpha13".
7-
# - The second field indicates the minimal required SailfishOS version A.B.C.X in the format "sfosABC";
8-
# the fourth field of a SailfishOS version ("X") is neither depended upon or denoted.
9-
# - An optional third field might be used by downstream packagers, who alter the package but want to
10-
# retain the exact version number. It should consist of the packager's name appended with a natural
11-
# number greater than zero as the packaging release number, e.g "joe8".
12-
Release: 1.sfos220
5+
# Since v1.8.2, the release version consists of two or three fields, separated
6+
# by dots ("."):
7+
# - The first field must contain a natural number greater than zero. This number
8+
# should be prefixed by one of {alpha,beta,rc,release}, which results in, e.g.,
9+
# "alpha42".
10+
# - The second field must contain the git branch from which this release is
11+
# built; it comprises the minimal required SailfishOS version A.B.C.X in the
12+
# format "sfosABC" (the fourth field of a SailfishOS version ("X") is neither
13+
# depended upon or denoted) plus if this is a version which utilises
14+
# Qualcomm's `qcrypto` kernel module by appending "+qcrypto" to this field.
15+
# - An optional third field might be used by downstream packagers, who alter the
16+
# package but want to retain the exact version number. It should consist of
17+
# the packager's name appended with a natural number greater than zero as the
18+
# packaging release number, e.g "jane23".
19+
Release: beta1.%{branch}
20+
# Since v1.8.2, Git tags must adhere to the following format starting (adapted
21+
# from Storeman's format:
22+
# https://github.com/storeman-developers/harbour-storeman/wiki/Git-tag-format ),
23+
# which comprises two fields separated by a slash ("/"):
24+
# - The first field is simply the content of the `Release:` tag, i.e.,
25+
# `%%{release}`.
26+
# - The second field is simply the content of the `Version:` tag, i.e.,
27+
# `%%{version}`.
1328
Group: System/Base
1429
Distribution: SailfishOS
1530
Vendor: olf
16-
Packager: olf
1731
License: LGPL-2.1-only
1832
URL: https://github.com/Olf0/%{name}
19-
# Download URLs for gzipped tarballs at GitHub must conform to: %{url}/archive/<tag-name>/<arbitrary-string>.tar.gz
20-
Source: %{url}/archive/%{version}-%{release}/%{name}-%{version}.tar.gz
21-
# rpmbuild (as of v4.14.1) handles the Icon tag awkwardly and in contrast to the Source tag(s):
22-
# It only accepts a GIF or XPM file (a path is stripped to its basename) in the SOURCES directory
23-
# (but not inside a tarball there)! Successfully tested GIF89a and XPMv3, but an XPM icon results
24-
# in bad visual quality and large file size.
33+
# Download URLs for gzipped tarballs at GitHub must conform to:
34+
# %%{url}/archive/<tag-name>/<arbitrary-string>.tar.gz
35+
Source0: %{url}/archive/%{release}/%{version}/%{name}-%{version}.tar.gz
36+
# rpmbuild (as of v4.14.1) handles the Icon tag awkwardly and in contrast to
37+
# the Source tag(s): It only accepts a GIF or XPM file (a path is stripped to
38+
# its basename) in the SOURCES directory (but not inside a tarball there)!
39+
# Successfully tested GIF89a and XPMv3, but an XPM icon results in bad visual
40+
# quality and large file size.
2541
# Hence only to be used, when the file (or a symlink to it) is put there:
2642
#Icon: smartmedia_unmount.256x256.gif
2743
BuildArch: noarch
2844
Requires: systemd
2945
Requires: udisks2
30-
# Better use direct dependencies on specific versions than indirect ones (here: the line above
31-
# versus the one below) in general, but ultimately decided not to do so in this special case
32-
# (for commonality across release versions):
46+
# Better use direct dependencies on specific versions than indirect ones (here:
47+
# the line above versus the one below) in general, but ultimately decided not to
48+
# do so in this special case (for commonality across release versions):
3349
Requires: sailfish-version >= 2.2.0
3450
# Counter-dependency (necessary for the multiple release branch scheme chosen):
3551
Requires: sailfish-version < 3.0.1
@@ -55,7 +71,7 @@ Url:
5571
%endif
5672

5773
%define _binary_payload w6.gzdio
58-
%define _source_payload w2.gzdio
74+
%define _source_payload w6.gzdio
5975

6076
%prep
6177
%setup -q

0 commit comments

Comments
 (0)