Use same pre-release system as in other GNOME packages
It just makes it easier to do scripting to update packages if they all follow the same pattern.
This commit is contained in:
parent
67df82724c
commit
d02f205d30
@ -1,17 +1,15 @@
|
|||||||
%global prerelease beta
|
%global tarball_version %%(echo %{version} | tr '~' '.')
|
||||||
|
%global major_version %%(cut -d '.' -f 1 <<<%{tarball_version})
|
||||||
%global _version %(cut -d "~" -f 1 <<<%{version})
|
|
||||||
%global majorversion %(cut -d "." -f 1-2 <<<%{_version})
|
|
||||||
|
|
||||||
Name: gnome-tweaks
|
Name: gnome-tweaks
|
||||||
Version: 40%{?prerelease:~%{prerelease}}
|
Version: 40~beta
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Customize advanced GNOME 3 options
|
Summary: Customize advanced GNOME 3 options
|
||||||
|
|
||||||
# Software is GPLv3, Appdata file is CC0-1.0
|
# Software is GPLv3, Appdata file is CC0-1.0
|
||||||
License: GPLv3 and CC0
|
License: GPLv3 and CC0
|
||||||
URL: https://wiki.gnome.org/Apps/Tweaks
|
URL: https://wiki.gnome.org/Apps/Tweaks
|
||||||
Source0: https://download.gnome.org/sources/%{name}/%{majorversion}/%{name}-%{_version}%{?prerelease:.%{prerelease}}.tar.xz
|
Source0: https://download.gnome.org/sources/%{name}/%{major_version}/%{name}-%{tarball_version}.tar.xz
|
||||||
|
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
@ -42,7 +40,7 @@ and extension, etc.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{name}-%{_version}%{?prerelease:.%{prerelease}}
|
%autosetup -n %{name}-%{tarball_version}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -86,6 +84,9 @@ appstream-util validate-relax --nonet $RPM_BUILD_ROOT/%{_datadir}/metainfo/*.app
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 18 2021 Kalev Lember <klember@redhat.com> - 40~beta-3
|
||||||
|
- Use same pre-release system as in other GNOME packages
|
||||||
|
|
||||||
* Wed Feb 17 2021 Kalev Lember <klember@redhat.com> - 40~beta-2
|
* Wed Feb 17 2021 Kalev Lember <klember@redhat.com> - 40~beta-2
|
||||||
- Require libhandy1 instead of libhandy
|
- Require libhandy1 instead of libhandy
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user