Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mastersfos340: Overhaul Release: and Git tag format #63

Merged
merged 3 commits into from
Mar 22, 2023
Merged
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
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