This commit is contained in:
Mamoru TASAKA 2021-04-08 10:03:56 +09:00
parent a74dc41ad0
commit bb05efa7e6
3 changed files with 24 additions and 48 deletions

2
.gitignore vendored
View File

@ -60,3 +60,5 @@ nokogiri-1.4.3.1.gem
/nokogiri-1.11.1.gem /nokogiri-1.11.1.gem
/nokogiri-1.11.2.gem /nokogiri-1.11.2.gem
/rubygem-nokogiri-1.11.2-full.tar.gz /rubygem-nokogiri-1.11.2-full.tar.gz
/nokogiri-1.11.3.gem
/rubygem-nokogiri-1.11.3-full.tar.gz

View File

@ -1,4 +1,4 @@
%global mainver 1.11.2 %global mainver 1.11.3
#%%global prever .rc4 #%%global prever .rc4
%global mainrel 1 %global mainrel 1
@ -78,44 +78,29 @@ This package provides non-Gem support for %{gem_name}.
%global version %{mainver}%{?prever} %global version %{mainver}%{?prever}
%prep %prep
%setup -q -T -c -a 1 %setup -q -n %{gem_name}-%{version} -a 1
mv ../%{gem_name}-%{version}.gemspec .
# Gem repack
TOPDIR=$(pwd)
mkdir tmpunpackdir
pushd tmpunpackdir
gem unpack %{SOURCE0}
cd %{gem_name}-%{version}
# patches # patches
%patch0 -p1 %patch0 -p1
gem specification -l --ruby %{SOURCE0} > %{gem_name}.gemspec
# remove bundled external libraries # remove bundled external libraries
sed -i \ sed -i \
-e 's|, "ports/archives/[^"][^"]*"||g' \ -e 's|, "ports/archives/[^"][^"]*"||g' \
-e 's|, "ports/patches/[^"][^"]*"||g' \ -e 's|, "ports/patches/[^"][^"]*"||g' \
%{gem_name}.gemspec %{gem_name}-%{version}.gemspec
# Actually not needed when using system libraries # Actually not needed when using system libraries
sed -i -e '\@mini_portile@d' %{gem_name}.gemspec sed -i -e '\@mini_portile@d' %{gem_name}-%{version}.gemspec
# Ummm... # Ummm...
LANG=C.UTF-8 gem build %{gem_name}.gemspec LANG=C.UTF-8 gem build %{gem_name}-%{version}.gemspec
mv %{gem_name}-%{version}.gem $TOPDIR
popd
rm -rf tmpunpackdir
%build %build
mkdir -p ./%{gem_dir}
# 1.6.0 needs this # 1.6.0 needs this
export NOKOGIRI_USE_SYSTEM_LIBRARIES=yes export NOKOGIRI_USE_SYSTEM_LIBRARIES=yes
%gem_install %gem_install
# Permission # Permission
chmod 0644 .%{gem_dir}/cache/%{gem_name}-%{mainver}%{?prever}.gem chmod 0644 .%{gem_dir}/cache/%{gem_name}-%{mainver}%{?prever}.gem
@ -157,20 +142,17 @@ done
cp -p %{gem_name}-%{version}/[A-Z]* %{buildroot}%{gem_instdir}/ cp -p %{gem_name}-%{version}/[A-Z]* %{buildroot}%{gem_instdir}/
# cleanups # cleanups
rm -rf %{buildroot}%{gem_instdir}/ext/%{gem_name}/ pushd %{buildroot}%{gem_instdir}
rm -rf %{buildroot}%{gem_instdir}/tmp/ rm -rf \
rm -f %{buildroot}%{gem_instdir}/{.autotest,.require_paths,.gemtest,.travis.yml} Gemfile* \
rm -f %{buildroot}%{gem_instdir}/.vagant dependencies.yml \
rm -f %{buildroot}%{gem_instdir}/appveyor.yml ext \
rm -f %{buildroot}%{gem_instdir}/.cross_rubies *gemspec \
rm -f %{buildroot}%{gem_instdir}/{build_all,dependencies.yml,test_all} patches \
rm -f %{buildroot}%{gem_instdir}/.editorconfig ports \
rm -rf %{buildroot}%{gem_instdir}/suppressions/ %{nil}
rm -rf %{buildroot}%{gem_instdir}/patches/ popd
rm -f %{buildroot}%{gem_instdir}/{Rakefile,Gemfile*} rm -f %{buildroot}%{gem_cache}
rm -f %{buildroot}%{gem_instdir}/Manifest.txt
%check %check
# Ah.... # Ah....
@ -214,24 +196,16 @@ popd
%{gem_instdir}/bin/ %{gem_instdir}/bin/
%{gem_instdir}/lib/ %{gem_instdir}/lib/
%exclude %{gem_dir}/cache/%{gem_name}-%{mainver}%{?prever}.gem
%{gem_dir}/specifications/%{gem_name}-%{mainver}%{?prever}.gemspec %{gem_dir}/specifications/%{gem_name}-%{mainver}%{?prever}.gemspec
%if 0
%files jruby
%defattr(-,root,root,-)
%{gem_instdir}/ext/java/
%endif
%files doc %files doc
%defattr(-,root,root,-) %defattr(-,root,root,-)
#%%{gem_instdir}/deps.rip
#%%{gem_instdir}/spec/
%exclude %{gem_instdir}/tasks/
%exclude %{gem_instdir}/test/
%{gem_dir}/doc/%{gem_name}-%{mainver}%{?prever}/ %{gem_dir}/doc/%{gem_name}-%{mainver}%{?prever}/
%changelog %changelog
* Thu Apr 8 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.11.3-1
- 1.11.3
* Fri Mar 12 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.11.2-1 * Fri Mar 12 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.11.2-1
- 1.11.2 - 1.11.2

View File

@ -1,2 +1,2 @@
SHA512 (nokogiri-1.11.2.gem) = de2d461b6c6d852c1d414d97c579b33cecc1d79b8cf87652c1ac5a2fa8487c477f61b66e35fe6f99e0483bce7ebec5cab681191b320b057d4c09de3b226a2609 SHA512 (nokogiri-1.11.3.gem) = e11789a27ecbba6bd49eaa9180eafa782d3de6453e993f86079e45e8c1cc8014d1ae6d47fb5237d619a5b84870b94ef383ef117c78fcc8035922534b53c92524
SHA512 (rubygem-nokogiri-1.11.2-full.tar.gz) = fec12b59581d8f5f5e364ef72c958625aacee57f030b1ea9045341be14adeb78e5a6aecd5026a438a4bf0af61724eb49fdf0e39f22c0719bb50bb75540de5ef3 SHA512 (rubygem-nokogiri-1.11.3-full.tar.gz) = 7fe528f65685c66058dbd3979bc1e33f08261c8ce9bad8ffee9f327161551769895bb65a23eb7d2ef467b80b5cda1453840c670b0a476294534daf37d5a46aa5