From d6a7442b55c6f9e140a5e1ba4aa86e22897f3714015faaa1b84b2852f9f4dc93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Thu, 6 Feb 2025 14:15:02 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96:=20Automatic=20update=20to=200.4.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby:extensions/rubygem-benchmark?expand=0&rev=12 --- .gitattributes | 23 ++++++ .gitignore | 1 + ...rom-usr-bin-env-bash-to-usr-bin-bash.patch | 22 ++++++ benchmark-0.3.0.gem | 3 + benchmark-0.4.0.gem | 3 + gem2rpm.yml | 71 +++++++++++++++++++ rubygem-benchmark.changes | 65 +++++++++++++++++ rubygem-benchmark.spec | 65 +++++++++++++++++ 8 files changed, 253 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 0001-Change-shebang-from-usr-bin-env-bash-to-usr-bin-bash.patch create mode 100644 benchmark-0.3.0.gem create mode 100644 benchmark-0.4.0.gem create mode 100644 gem2rpm.yml create mode 100644 rubygem-benchmark.changes create mode 100644 rubygem-benchmark.spec 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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc 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/benchmark-0.4.0.gem b/benchmark-0.4.0.gem new file mode 100644 index 0000000..76a46aa --- /dev/null +++ b/benchmark-0.4.0.gem @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f12f8c495545e3710c3e4f0480f63f06b4c842cc94cec7f33a956f5180e874a +size 14336 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..c865391 --- /dev/null +++ b/rubygem-benchmark.changes @@ -0,0 +1,65 @@ +------------------------------------------------------------------- +Mon Feb 3 09:23:13 UTC 2025 - Dan Čermák + +- 0.4.0: + +## What's Changed +* Exclude older than 2.6 on macos-14 by @nobu in https://github.com/ruby/benchmark/pull/21 +* Set required_ruby_version = ">= 2.1.0" by @Earlopain in https://github.com/ruby/benchmark/pull/24 +* Improve docs for Benchmark.realtime by @nithinbekal in https://github.com/ruby/benchmark/pull/25 +* Adjust ljust by @kaiquekandykoga in https://github.com/ruby/benchmark/pull/16 + +## New Contributors +* @nobu made their first contribution in https://github.com/ruby/benchmark/pull/21 +* @Earlopain made their first contribution in https://github.com/ruby/benchmark/pull/24 +* @nithinbekal made their first contribution in https://github.com/ruby/benchmark/pull/25 +* @kaiquekandykoga made their first contribution in https://github.com/ruby/benchmark/pull/16 + +**Full Changelog**: https://github.com/ruby/benchmark/compare/v0.3.0...v0.4.0 + + + +------------------------------------------------------------------- +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..a17b512 --- /dev/null +++ b/rubygem-benchmark.spec @@ -0,0 +1,65 @@ +# +# spec file for package rubygem-benchmark +# +# Copyright (c) 2025 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.4.0 +Release: 0 +%define mod_name benchmark +%define mod_full_name %{mod_name}-%{version} +BuildRequires: %{ruby >= 2.1.0} +BuildRequires: %{rubygem gem2rpm} +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="COPYING README.md" \ + -f +# MANUAL +find %{buildroot}/%{_libdir}/ruby/gems \( -name .gitignore -o -name .travis.yml \) | xargs rm +# /MANUAL + +%gem_packages + +%changelog