diff --git a/.gitignore b/.gitignore index 3cf1c56..ff031ff 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /http-cookie-*gem +http-cookie-*.tar.gz diff --git a/http-cookie-create-missing-files.sh b/http-cookie-create-missing-files.sh new file mode 100644 index 0000000..a2bbb58 --- /dev/null +++ b/http-cookie-create-missing-files.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +if [ $# -lt 1 ] +then + echo "$0 " + exit 1 +fi + +set -x +set -e + +VERSION=$1 + +REPOURL=https://github.com/sparklemotion/ +REPONAME=http-cookie + +TARBALLNAME=${REPONAME}-${VERSION}-additional.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} || true +cd .. +tar czf $TARBALLNAME \ + ${REPONAME}-${VERSION}/test \ + +mv $TARBALLNAME $CURRDIR + +popd +rm -rf $TMPDIRPATH + + diff --git a/rubygem-http-cookie.spec b/rubygem-http-cookie.spec index 27907b9..637f2cd 100644 --- a/rubygem-http-cookie.spec +++ b/rubygem-http-cookie.spec @@ -1,13 +1,17 @@ %global gem_name http-cookie Name: rubygem-%{gem_name} -Version: 1.0.5 -Release: 3%{?dist} +Version: 1.1.0 +Release: 1%{?dist} Summary: Ruby library to handle HTTP Cookies based on RFC 6265 License: MIT URL: https://github.com/sparklemotion/http-cookie Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +%dnl Source0: https://github.com/sparklemotion/%{gem_name}/archive/v%{version}.tar.gz/#/%{gem_name}-%{version}.tar.gz +Source1: %{gem_name}-%{version}-additional.tar.gz +# Source1 is created by $ bash %%SOURCE2 %%version +Source2: %{gem_name}-create-missing-files.sh Requires: ruby(release) BuildRequires: ruby(release) @@ -20,7 +24,6 @@ Requires: ruby(rubygems) Requires: rubygem(domain_name) BuildArch: noarch -Provides: rubygem(%{gem_name}) = %{version}-%{release} %description HTTP::Cookie is a Ruby library to handle HTTP Cookies based on RFC 6265. It @@ -39,7 +42,7 @@ BuildArch: noarch Documentation for %{name} %prep -%setup -q -n %{gem_name}-%{version} +%setup -q -n %{gem_name}-%{version} -b 1 mv ../%{gem_name}-%{version}.gemspec . %build @@ -53,34 +56,53 @@ cp -a .%{gem_dir}/* \ # Clean up rm -f %{buildroot}%{gem_cache} -pushd %{buildroot}%{gem_instdir} -rm -rf \ - .gitignore \ - .github \ - .travis.yml \ - Gemfile \ - Rakefile \ - test/ \ - %{gem_name}.gemspec \ - %{nil} -popd %check +cp -a test/ .%{gem_instdir} pushd .%{gem_instdir} ruby -Ilib:test:. -e 'Dir.glob("test/test_*.rb").each {|f| require f}' popd %files %dir %{gem_instdir} -%doc %{gem_instdir}/[A-Z]* +%license %{gem_instdir}/LICENSE.txt +%doc %{gem_instdir}/README.md %{gem_libdir}/ %{gem_spec} %files doc %doc %{gem_docdir}/ +%doc %{gem_instdir}/CHANGELOG.md %changelog +* Fri Oct 03 2025 Mamoru TASAKA - 1.1.0-1 +- 1.1.0 + +* Fri Jul 25 2025 Fedora Release Engineering - 1.0.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Sat Jan 18 2025 Fedora Release Engineering - 1.0.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Fri Dec 06 2024 Mamoru TASAKA - 1.0.8-1 +- 1.0.8 + +* Fri Jul 19 2024 Fedora Release Engineering - 1.0.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Mamoru TASAKA - 1.0.7-1 +- 1.0.7 + +* Fri Jan 26 2024 Fedora Release Engineering - 1.0.5-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 1.0.5-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 1.0.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Fri Jan 20 2023 Fedora Release Engineering - 1.0.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild diff --git a/sources b/sources index 4241a9a..d81176d 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ -SHA512 (http-cookie-1.0.5.gem) = d530d64b5c2fc3757a6de03384fe768317e24a523d4a4215f5bcc6b5bca9e7b94eeaad1e52fbb67548396b7b2ca7c9d8b68ea7b99109e24770fcf34c950469ef +SHA512 (http-cookie-1.1.0.gem) = c360d8ffa7b3febf544e96e9408759a4aa5289f7b6ff5829ee4d880ac0802e80a80b65eaa042df1dc4ac77c171f4b809f11a4e2f4b3960561a914785636d837a +SHA512 (http-cookie-1.1.0-additional.tar.gz) = e99a5e10ad0c4f38573c004889becd5461a60d6208aeed062a4aede2d645d2b72e9ef4bd13e5dd11cee73f0c55491dcc5d6cf84b81077168d19bf058242891a0