Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d0eaaeeb6 | ||
|
|
c28c108658 | ||
|
|
26836a0bf5 | ||
|
|
49064ced40 |
4 changed files with 68 additions and 29 deletions
11
.gitignore
vendored
11
.gitignore
vendored
|
|
@ -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-*-tests.tar.gz
|
||||
|
|
|
|||
35
htmlentities-create-missing-files.sh
Normal file
35
htmlentities-create-missing-files.sh
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ $# -lt 1 ]
|
||||
then
|
||||
echo "$0 <version>"
|
||||
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
|
||||
|
||||
|
||||
|
|
@ -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: 19%{?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,49 @@ 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 <mtasaka@fedoraproject.org> - 4.4.2-1
|
||||
- 4.4.2
|
||||
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.4-21
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.4-20
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.4-19
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
3
sources
3
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue