From d6ebd15748d71d86a50981c430c1d737fcb181b4 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jul 2024 19:25:06 +0000 Subject: [PATCH 1/5] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- rubygem-htmlentities.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rubygem-htmlentities.spec b/rubygem-htmlentities.spec index a5688c5..33a19ab 100644 --- a/rubygem-htmlentities.spec +++ b/rubygem-htmlentities.spec @@ -7,7 +7,7 @@ Summary: A module for encoding and decoding (X)HTML entities Name: rubygem-%{gem_name} Version: 4.3.4 -Release: 18%{?dist} +Release: 19%{?dist} License: MIT URL: https://github.com/threedaymonk/htmlentities Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem @@ -81,6 +81,9 @@ ruby -Ilib:. -e 'Dir.glob("test/*.rb").each{|f| require f}' %changelog +* Fri Jul 19 2024 Fedora Release Engineering - 4.3.4-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Fri Jan 26 2024 Fedora Release Engineering - 4.3.4-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 49064ced4029e4a894ad7ad08c4e509ca787e616 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 18 Jan 2025 23:24:10 +0000 Subject: [PATCH 2/5] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- rubygem-htmlentities.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rubygem-htmlentities.spec b/rubygem-htmlentities.spec index 33a19ab..3e657c3 100644 --- a/rubygem-htmlentities.spec +++ b/rubygem-htmlentities.spec @@ -7,7 +7,7 @@ Summary: A module for encoding and decoding (X)HTML entities Name: rubygem-%{gem_name} Version: 4.3.4 -Release: 19%{?dist} +Release: 20%{?dist} License: MIT URL: https://github.com/threedaymonk/htmlentities Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem @@ -81,6 +81,9 @@ ruby -Ilib:. -e 'Dir.glob("test/*.rb").each{|f| require f}' %changelog +* Sat Jan 18 2025 Fedora Release Engineering - 4.3.4-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Fri Jul 19 2024 Fedora Release Engineering - 4.3.4-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 26836a0bf53abc2061b42d8a3569d09cbad081d9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 12:29:04 +0000 Subject: [PATCH 3/5] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- rubygem-htmlentities.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rubygem-htmlentities.spec b/rubygem-htmlentities.spec index 3e657c3..803e6f5 100644 --- a/rubygem-htmlentities.spec +++ b/rubygem-htmlentities.spec @@ -7,7 +7,7 @@ Summary: A module for encoding and decoding (X)HTML entities Name: rubygem-%{gem_name} Version: 4.3.4 -Release: 20%{?dist} +Release: 21%{?dist} License: MIT URL: https://github.com/threedaymonk/htmlentities Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem @@ -81,6 +81,9 @@ ruby -Ilib:. -e 'Dir.glob("test/*.rb").each{|f| require f}' %changelog +* Fri Jul 25 2025 Fedora Release Engineering - 4.3.4-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Sat Jan 18 2025 Fedora Release Engineering - 4.3.4-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From c28c108658d50a9c25d1a1ef36a44eb7bfb12efb Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Sun, 23 Nov 2025 23:55:54 +0900 Subject: [PATCH 4/5] refresh .gitignore --- .gitignore | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 2410f19..a6f6853 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,2 @@ -htmlentities-4.2.0.gem -/htmlentities-4.2.2.gem -/htmlentities-4.2.3.gem -/htmlentities-4.2.4.gem -/htmlentities-4.3.0.gem -/htmlentities-4.3.1.gem -/htmlentities-4.3.2.gem -/htmlentities-4.3.3.gem -/htmlentities-4.3.4.gem +/htmlentities-*.gem +/htmlentities-*-test.tar.gz From 1d0eaaeeb67b554ce3b4b32c5f50051e61565a57 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Sun, 23 Nov 2025 23:58:36 +0900 Subject: [PATCH 5/5] 4.4.2 --- .gitignore | 2 +- htmlentities-create-missing-files.sh | 35 +++++++++++++++++++++++ rubygem-htmlentities.spec | 42 +++++++++++++++------------- sources | 3 +- 4 files changed, 61 insertions(+), 21 deletions(-) create mode 100644 htmlentities-create-missing-files.sh diff --git a/.gitignore b/.gitignore index a6f6853..466c2ee 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ /htmlentities-*.gem -/htmlentities-*-test.tar.gz +/htmlentities-*-tests.tar.gz diff --git a/htmlentities-create-missing-files.sh b/htmlentities-create-missing-files.sh new file mode 100644 index 0000000..7433411 --- /dev/null +++ b/htmlentities-create-missing-files.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +if [ $# -lt 1 ] +then + echo "$0 " + exit 1 +fi + +set -x +set -e + +VERSION=$1 + +REPOURL=https://github.com/threedaymonk/ +REPONAME=htmlentities + +TARBALLNAME=${REPONAME}-${VERSION}-tests.tar.gz + +CURRDIR=$(pwd) +TMPDIRPATH=$(mktemp -d /var/tmp/${REPONAME}-tar-XXXXXX) +pushd $TMPDIRPATH + +git clone ${REPOURL}/${REPONAME}.git +ln -sf ${REPONAME} ${REPONAME}-${VERSION} +cd ${REPONAME} + +git checkout -b fedora-${VERSION} v${VERSION} +cd .. +tar czf $TARBALLNAME ${REPONAME}-${VERSION}/spec +mv $TARBALLNAME $CURRDIR + +popd +rm -rf $TMPDIRPATH + + diff --git a/rubygem-htmlentities.spec b/rubygem-htmlentities.spec index 803e6f5..65701a8 100644 --- a/rubygem-htmlentities.spec +++ b/rubygem-htmlentities.spec @@ -1,22 +1,26 @@ # Generated from htmlentities-4.0.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name htmlentities +%global test_version 4.4.1 # Some functions removed on 4.2.4. Please don't upgrade this rpm # to 4.3.0+ on F-14- Summary: A module for encoding and decoding (X)HTML entities Name: rubygem-%{gem_name} -Version: 4.3.4 -Release: 21%{?dist} +Version: 4.4.2 +Release: 1%{?dist} License: MIT URL: https://github.com/threedaymonk/htmlentities Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem +Source1: %{gem_name}-%{test_version}-tests.tar.gz +# Source1 is created by bash %%SOURCE2 %%test_version +Source2: htmlentities-create-missing-files.sh Requires: ruby(release) BuildRequires: ruby(release) BuildRequires: rubygems-devel -BuildRequires: rubygem(test-unit) +BuildRequires: rubygem(rspec) Requires: ruby(rubygems) BuildArch: noarch Provides: rubygem(%{gem_name}) = %{version}-%{release} @@ -44,43 +48,43 @@ Provides: ruby(%{gem_name}) = %{version}-%{release} This package provides non-Gem support for %{gem_name}. %prep -# First install rubygems under %%_builddir to execute some -# tests -%setup -q -c -T -%gem_install -n %{SOURCE0} +%setup -q -n %{gem_name}-%{version} -a 1 + +mv ../%{gem_name}-%{version}.gemspec . %build +gem build %{gem_name}-%{version}.gemspec +%gem_install %install -rm -rf %{buildroot} mkdir -p %{buildroot}%{gem_dir} -cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/ +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ -# Cleanups -rm -f %{buildroot}%{gem_instdir}/setup.rb +rm -f %{buildroot}%{gem_cache} %check +cp -a %{gem_name}-%{test_version}/spec ./%{gem_instdir} pushd ./%{gem_instdir}/ -sed -i -e '2i gem "test-unit"' test/test_helper.rb - -ruby -Ilib:. -e 'Dir.glob("test/*.rb").each{|f| require f}' +rspec spec %files +%license %{gem_instdir}/COPYING.txt %dir %{gem_instdir} -%doc %{gem_instdir}/[A-Z]* -%{gem_instdir}/lib/ +%doc %{gem_instdir}/History.txt -%{gem_cache} +%{gem_libdir}/ %{gem_spec} %files doc -%{gem_instdir}/perf/ -%{gem_instdir}/test/ %{gem_docdir}/ %changelog +* Sun Nov 23 2025 Mamoru TASAKA - 4.4.2-1 +- 4.4.2 + * Fri Jul 25 2025 Fedora Release Engineering - 4.3.4-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild diff --git a/sources b/sources index 4fc4838..e7d66c7 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ -SHA512 (htmlentities-4.3.4.gem) = 0163d6c014ffebb4ee9bdb15d32884c8d6af60681f240d3f0177811d37647776b8f8fd0aa4f1c7559403f36a5538ce8da6926bc16cc8105bd6eed5c180db700b +SHA512 (htmlentities-4.4.2.gem) = c9a9a44eb5fc6a9a0c03ce560600952178901dab74d1eab57b977cf073c3388850b948688b4c78f3513125a88e2dd8f2f103efd3d0057f4bc72d74eab0d74760 +SHA512 (htmlentities-4.4.1-tests.tar.gz) = 82813d0b7284539504d4f2bc486d9404e8b164407229491239b7e5063b6af7de6b2a772303e85884ef10b1226df6238e2d0aff1b7ed5a09b1970fb093df7da41