commit 3095498e85f15ceedc66af393b67b1741eadc33f72f74809bd5fe300c4abae2f Author: Adrian Schröter Date: Thu Feb 6 18:09:50 2025 +0100 Sync from SUSE:SLFO:Main rubygem-benchmark revision 740b8d631a03aa95fb591a60c278ff49 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/0001-Change-shebang-from-usr-bin-env-bash-to-usr-bin-bash.patch b/0001-Change-shebang-from-usr-bin-env-bash-to-usr-bin-bash.patch new file mode 100644 index 0000000..e562fcc --- /dev/null +++ b/0001-Change-shebang-from-usr-bin-env-bash-to-usr-bin-bash.patch @@ -0,0 +1,22 @@ +From e9ccb0d87093fc3f5e36670ce8c24c25a760dcd9 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= +Date: Mon, 6 Jan 2020 10:54:24 +0100 +Subject: [PATCH] Change shebang from /usr/bin/env bash to /usr/bin/bash + +--- + bin/setup | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/bin/setup b/bin/setup +index dce67d8..6b30229 100755 +--- a/bin/setup ++++ b/bin/setup +@@ -1,4 +1,4 @@ +-#!/usr/bin/env bash ++#!/usr/bin/bash + set -euo pipefail + IFS=$'\n\t' + set -vx +-- +2.24.1 + diff --git a/benchmark-0.3.0.gem b/benchmark-0.3.0.gem new file mode 100644 index 0000000..b0e0d0e --- /dev/null +++ b/benchmark-0.3.0.gem @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4ca7995224b9982efccee9b44a4464a73201c5779d78cb5a4d99ec2f39acf071 +size 12800 diff --git a/gem2rpm.yml b/gem2rpm.yml new file mode 100644 index 0000000..3906108 --- /dev/null +++ b/gem2rpm.yml @@ -0,0 +1,71 @@ +--- +# ## used by gem2rpm +:summary: A performance benchmarking library +# ## used by gem2rpm +:description: |- + The Benchmark module provides methods for benchmarking Ruby code, giving + detailed reports on the time taken for each task. +# ## used by gem2rpm +# :license: MIT or Ruby +# ## used by gem2rpm and gem_packages +# :version_suffix: '-x.y' +# ## used by gem2rpm and gem_packages +# :disable_docs: true +# ## used by gem2rpm +# :disable_automatic_rdoc_dep: true +# ## used by gem2rpm +# :preamble: |- +# BuildRequires: foobar +# Requires: foobar +# ## used by gem2rpm +:patches: + 0001-Change-shebang-from-usr-bin-env-bash-to-usr-bin-bash.patch: -p1 +# :post_patch: +# if you need to fiddle with the source dir before rebuilding the gem +# ## used by gem2rpm +:sources: +# - foo.desktop +# - bar.desktop +# :binary_map: +# annotate: annotate-rb +# :gem_install_args: '....' +# ## used by gem2rpm +# :pre_install: |- +# %if 0%{?use_system_libev} +# export USE_VENDORED_LIBEV="no" +# %endif +# ## used by gem2rpm +:post_install: |- + find %{buildroot}/%{_libdir}/ruby/gems \( -name .gitignore -o -name .travis.yml \) | xargs rm +# ## used by gem2rpm +# :testsuite_command: |- +# (pushd %{buildroot}%{gem_base}/gems/%{mod_full_name} && rake test) +# ## used by gem2rpm +# :filelist: |- +# /usr/bin/gem2rpm-opensuse +# ## used by gem2rpm +# :scripts: +# :post: |- +# /bin/echo foo +# ## used by gem_packages +# :main: +# :preamble: |- +# Requires: util-linux +# Recommends: pwgen +# :filelist: |- +# /usr/bin/gem2rpm-opensuse +# ## used by gem_packages +# :custom_pkgs: +# apache: +# :preamble: |- +# Requires: ..... +# :filelist: |- +# /etc/apache2/conf.d/passenger.conf +# :summary: Custom summary is optional +# :description: |- +# Custom description is optional +# +# bar +# :post: |- +# /bin/echo foo +# diff --git a/rubygem-benchmark.changes b/rubygem-benchmark.changes new file mode 100644 index 0000000..4a514ea --- /dev/null +++ b/rubygem-benchmark.changes @@ -0,0 +1,44 @@ +------------------------------------------------------------------- +Tue May 21 10:24:30 UTC 2024 - Dominique Leuenberger + +- Replace %patchN with %patch -P N: %patchN is deprecated. + +------------------------------------------------------------------- +Tue Nov 14 14:50:29 UTC 2023 - Dan Čermák + +- 0.3.0: + +## What's Changed +* Migrate `set-output` to `$GITHUB_OUTPUT` by @znz in https://github.com/ruby/benchmark/pull/17 +* Replace reusing actions by @hsbt in https://github.com/ruby/benchmark/pull/18 +* Don't use version.rb by @hsbt in https://github.com/ruby/benchmark/pull/19 + +## New Contributors +* @znz made their first contribution in https://github.com/ruby/benchmark/pull/17 + +**Full Changelog**: https://github.com/ruby/benchmark/compare/v0.2.1...v0.3.0 + + + +------------------------------------------------------------------- +Wed Dec 7 11:13:11 UTC 2022 - Stephan Kulow + +updated to version 0.2.1 + no changelog found + +------------------------------------------------------------------- +Tue Jan 25 06:40:24 UTC 2022 - Stephan Kulow + +updated to version 0.2.0 + no changelog found + +------------------------------------------------------------------- +Wed Jan 20 12:21:45 UTC 2021 - Stephan Kulow + +updated to version 0.1.1 + no changelog found + +------------------------------------------------------------------- +Mon Jan 6 09:50:35 UTC 2020 - Dan Čermák + +- Initial package version of benchmark diff --git a/rubygem-benchmark.spec b/rubygem-benchmark.spec new file mode 100644 index 0000000..898412d --- /dev/null +++ b/rubygem-benchmark.spec @@ -0,0 +1,65 @@ +# +# spec file for package rubygem-benchmark +# +# Copyright (c) 2024 SUSE LLC +# +# 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 https://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-benchmark +Version: 0.3.0 +Release: 0 +%define mod_name benchmark +%define mod_full_name %{mod_name}-%{version} +BuildRequires: %{rubygem gem2rpm} +BuildRequires: %{ruby} +BuildRequires: ruby-macros >= 5 +URL: https://github.com/ruby/benchmark +Source: https://rubygems.org/gems/%{mod_full_name}.gem +Source1: gem2rpm.yml +# MANUAL +Patch0: 0001-Change-shebang-from-usr-bin-env-bash-to-usr-bin-bash.patch +# /MANUAL +Summary: A performance benchmarking library +License: BSD-2-Clause AND Ruby + +%description +The Benchmark module provides methods for benchmarking Ruby code, giving +detailed reports on the time taken for each task. + +%prep +%gem_unpack +%patch -P 0 -p1 +find -type f -print0 | xargs -0 touch -r %{S:0} +%gem_build + +%build + +%install +%gem_install \ + --doc-files="LICENSE.txt README.md" \ + -f +# MANUAL +find %{buildroot}/%{_libdir}/ruby/gems \( -name .gitignore -o -name .travis.yml \) | xargs rm +# /MANUAL + +%gem_packages + +%changelog