From fa665a95d97dc6da8175c682681e66a2e161a845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Fri, 2 Dec 2022 15:10:38 +0100 Subject: [PATCH] Use tilde in version for preleases. This is aligned with versioning guidelines, which suggests this: https://docs.fedoraproject.org/en-US/packaging-guidelines/Versioning/#_snapshots --- ruby.spec | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/ruby.spec b/ruby.spec index ae85da3..3fb1405 100644 --- a/ruby.spec +++ b/ruby.spec @@ -18,13 +18,10 @@ %if 0%{?milestone:1}%{?revision:1} != 0 %global ruby_archive %{ruby_archive}-%{?milestone}%{?!milestone:%{?revision}} %define ruby_archive_timestamp %(stat --printf='@%Y' %{_sourcedir}/%{ruby_archive}.tar.xz | date -f - +"%Y%m%d") -%define development_release %{?milestone}%{?!milestone:%{?revision:%{ruby_archive_timestamp}git%{revision}}} +%define development_release ~%{ruby_archive_timestamp}%{?milestone}%{?!milestone:%{?revision:git%{revision}}} %endif -%global release 1 -%{!?release_string:%define release_string %{?development_release:0.}%{release}%{?development_release:.%{development_release}}%{?dist}} - # The RubyGems library has to stay out of Ruby directory tree, since the # RubyGems should be share by all Ruby implementations. %global rubygems_dir %{_datadir}/rubygems @@ -99,8 +96,8 @@ Summary: An interpreter of object-oriented scripting language Name: ruby -Version: %{ruby_version} -Release: %{release_string} +Version: %{ruby_version}%{?development_release} +Release: 173 # Public Domain for example for: include/ruby/st.h, strftime.c, missing/*, ... # MIT and CCO: ccan/* # zlib: ext/digest/md5/md5.*, ext/nkf/nkf-utf8/nkf.c @@ -1542,7 +1539,7 @@ DISABLE_TESTS="$DISABLE_TESTS -n !/Fiddle::TestFunction#test_argument_count/" %changelog -* Thu Nov 24 2022 Vít Ondruch - 3.2.0-1 +* Thu Nov 24 2022 Vít Ondruch - 3.2.0-173 - Upgrade to Ruby 3.2.0 (0436f1e15a). * Tue Nov 22 2022 Vít Ondruch - 3.1.2-171