Sync from SUSE:SLFO:Main rubygem-ronn revision 96688aab3757f64f09ad5fe30b92755b

This commit is contained in:
Adrian Schröter 2024-05-04 00:18:13 +02:00
commit b0e3d052c1
6 changed files with 149 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

7
gem2rpm.yml Normal file
View File

@ -0,0 +1,7 @@
---
:description: |
Ronn builds manuals. It converts simple, human readable textfiles to roff
for terminal display, and also to HTML for the web.
:license: MIT
:patches:
ronn-date.patch: -p1

BIN
ronn-0.7.3.gem (Stored with Git LFS) Normal file

Binary file not shown.

29
ronn-date.patch Normal file
View File

@ -0,0 +1,29 @@
https://github.com/kamontat/ronn/pull/3
originally based on https://github.com/rtomayko/ronn/pull/98
commit 206846900163c8a538437444dfdd67a7a81e3801
Author: Bernhard M. Wiedemann <bwiedemann@suse.de>
Date: Mon Dec 9 14:36:21 2019 +0100
Allow to override build date with SOURCE_DATE_EPOCH
in order to make builds reproducible.
See https://reproducible-builds.org/ for why this is good
and https://reproducible-builds.org/specs/source-date-epoch/
for the definition of this variable.
It prioritizes the variable over mtime
because openSUSE's `tallow` package touched a .md file with a patch.
diff --git a/lib/ronn/document.rb b/lib/ronn/document.rb
index d42e2f9..6590c92 100644
--- a/lib/ronn/document.rb
+++ b/lib/ronn/document.rb
@@ -171,6 +171,7 @@ module Ronn
# the current time.
def date
return @date if @date
+ return Time.at(ENV['SOURCE_DATE_EPOCH'].to_i).gmtime if not ENV['SOURCE_DATE_EPOCH'].nil?
return File.mtime(path) if File.exist?(path)
Time.now
end

19
rubygem-ronn.changes Normal file
View File

@ -0,0 +1,19 @@
-------------------------------------------------------------------
Mon Dec 9 10:26:45 UTC 2019 - Bernhard Wiedemann <bwiedemann@suse.com>
- Add ronn-date.patch to have reprodubible build time (boo#1047218)
-------------------------------------------------------------------
Tue Apr 25 17:12:12 UTC 2017 - avvissu@yandex.by
- Update the description
-------------------------------------------------------------------
Wed Oct 22 13:28:02 UTC 2014 - tboerger@suse.com
- Updated to new macros
-------------------------------------------------------------------
Sat Mar 24 16:40:07 CET 2012 - berendt@b1-systems.de
- initial version created with gem2rpm

68
rubygem-ronn.spec Normal file
View File

@ -0,0 +1,68 @@
#
# spec file for package rubygem-ronn
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
#
# This file was generated with a gem2rpm.yml and not just plain gem2rpm.
# All sections marked as MANUAL, license headers, summaries and descriptions
# can be maintained in that file. Please consult this file before editing any
# of those fields
#
Name: rubygem-ronn
Version: 0.7.3
Release: 0
%define mod_name ronn
%define mod_full_name %{mod_name}-%{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ruby-macros >= 5
BuildRequires: %{ruby}
BuildRequires: %{rubygem gem2rpm}
BuildRequires: %{rubygem rdoc > 3.10}
BuildRequires: update-alternatives
Url: http://rtomayko.github.com/ronn
Source: https://rubygems.org/gems/%{mod_full_name}.gem
Source1: gem2rpm.yml
# MANUAL
Patch0: ronn-date.patch
# /MANUAL
Summary: Builds manuals
License: MIT
Group: Development/Languages/Ruby
PreReq: update-alternatives
%description
Ronn builds manuals. It converts simple, human readable textfiles to roff
for terminal display, and also to HTML for the web.
%prep
%gem_unpack
%patch0 -p1
find -type f -print0 | xargs -0 touch -r %{S:0}
%gem_build
%build
%install
%gem_install \
--symlink-binaries \
--doc-files="CHANGES COPYING README.md" \
-f
%gem_packages
%changelog