1.6.0
This commit is contained in:
parent
9d9ce66f81
commit
7b46db2a69
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@ nokogiri-1.4.3.1.gem
|
|||||||
/nokogiri-1.5.5.gem
|
/nokogiri-1.5.5.gem
|
||||||
/nokogiri-1.5.6.gem
|
/nokogiri-1.5.6.gem
|
||||||
/nokogiri-1.5.9.gem
|
/nokogiri-1.5.9.gem
|
||||||
|
/nokogiri-1.6.0.gem
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
%global ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")
|
%global ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global mainver 1.5.9
|
%global mainver 1.6.0
|
||||||
#%%global prever .beta.4
|
#%%global prever .beta.4
|
||||||
|
|
||||||
%global mainrel 1
|
%global mainrel 1
|
||||||
@ -58,9 +58,7 @@ BuildRequires: ruby(rubygems)
|
|||||||
## For %%check
|
## For %%check
|
||||||
BuildRequires: rubygem(minitest)
|
BuildRequires: rubygem(minitest)
|
||||||
BuildRequires: rubygems-devel
|
BuildRequires: rubygems-devel
|
||||||
%if 0%{?ruby19} > 0
|
|
||||||
Obsoletes: ruby-%{gemname} <= 1.5.2-2
|
Obsoletes: ruby-%{gemname} <= 1.5.2-2
|
||||||
%endif
|
|
||||||
#BuildRequires: ruby(racc)
|
#BuildRequires: ruby(racc)
|
||||||
##
|
##
|
||||||
## Others
|
## Others
|
||||||
@ -121,6 +119,12 @@ cd %{gem_name}-%{version}
|
|||||||
|
|
||||||
gem specification -l --ruby %{SOURCE0} > %{gem_name}.gemspec
|
gem specification -l --ruby %{SOURCE0} > %{gem_name}.gemspec
|
||||||
|
|
||||||
|
# remove bundled external libraries
|
||||||
|
sed -i -e 's|, "ports/archives/[^"][^"]*"||g' \
|
||||||
|
%{gem_name}.gemspec
|
||||||
|
# Actually not needed when using system libraries
|
||||||
|
sed -i -e '\@mini_portile@d' %{gem_name}.gemspec
|
||||||
|
|
||||||
# Ummm...
|
# Ummm...
|
||||||
env LANG=ja_JP.UTF-8 gem build %{gem_name}.gemspec
|
env LANG=ja_JP.UTF-8 gem build %{gem_name}.gemspec
|
||||||
mv %{gem_name}-%{version}.gem $TOPDIR
|
mv %{gem_name}-%{version}.gem $TOPDIR
|
||||||
@ -130,6 +134,9 @@ rm -rf tmpunpackdir
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir -p ./%{gemdir}
|
mkdir -p ./%{gemdir}
|
||||||
|
# 1.6.0 needs this
|
||||||
|
export NOKOGIRI_USE_SYSTEM_LIBRARIES=yes
|
||||||
|
|
||||||
%gem_install
|
%gem_install
|
||||||
|
|
||||||
|
|
||||||
@ -169,71 +176,8 @@ done
|
|||||||
# cleanups
|
# cleanups
|
||||||
rm -rf %{buildroot}%{geminstdir}/ext/%{gemname}/
|
rm -rf %{buildroot}%{geminstdir}/ext/%{gemname}/
|
||||||
rm -rf %{buildroot}%{geminstdir}/tmp/
|
rm -rf %{buildroot}%{geminstdir}/tmp/
|
||||||
rm -f %{buildroot}%{geminstdir}/{.autotest,.require_paths,.gemtest}
|
rm -f %{buildroot}%{geminstdir}/{.autotest,.require_paths,.gemtest,.travis.yml}
|
||||||
rm -f %{buildroot}%{geminstdir}/{build_all,test_all}
|
rm -f %{buildroot}%{geminstdir}/{build_all,dependencies.yml,test_all}
|
||||||
|
|
||||||
%if 0%{?ruby19} < 1
|
|
||||||
# The following method is completely copied from rubygem-gettext
|
|
||||||
# spec file
|
|
||||||
#
|
|
||||||
# Create symlinks
|
|
||||||
##
|
|
||||||
## Note that before switching to gem %%{ruby_sitelib}/%%{gemname}
|
|
||||||
## already existed as a directory, so this cannot be replaced
|
|
||||||
## by symlink (cpio fails)
|
|
||||||
## Similarly, all directories under %%{ruby_sitelib} cannot be
|
|
||||||
## replaced by symlink
|
|
||||||
#
|
|
||||||
|
|
||||||
create_symlink_rec(){
|
|
||||||
|
|
||||||
ORIGBASEDIR=$1
|
|
||||||
TARGETBASEDIR=$2
|
|
||||||
|
|
||||||
## First calculate relative path of ORIGBASEDIR
|
|
||||||
## from TARGETBASEDIR
|
|
||||||
TMPDIR=$TARGETBASEDIR
|
|
||||||
BACKDIR=
|
|
||||||
DOWNDIR=
|
|
||||||
num=0
|
|
||||||
nnum=0
|
|
||||||
while true
|
|
||||||
do
|
|
||||||
num=$((num+1))
|
|
||||||
TMPDIR=$(echo $TMPDIR | sed -e 's|/[^/][^/]*$||')
|
|
||||||
DOWNDIR=$(echo $ORIGBASEDIR | sed -e "s|^$TMPDIR||")
|
|
||||||
if [ x$DOWNDIR != x$ORIGBASEDIR ]
|
|
||||||
then
|
|
||||||
nnum=0
|
|
||||||
while [ $nnum -lt $num ]
|
|
||||||
do
|
|
||||||
BACKDIR="../$BACKDIR"
|
|
||||||
nnum=$((nnum+1))
|
|
||||||
done
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
RELBASEDIR=$( echo $BACKDIR/$DOWNDIR | sed -e 's|//*|/|g' )
|
|
||||||
|
|
||||||
## Next actually create symlink
|
|
||||||
pushd %{buildroot}/$ORIGBASEDIR
|
|
||||||
find . -type f | while read f
|
|
||||||
do
|
|
||||||
DIRNAME=$(dirname $f)
|
|
||||||
BACK2DIR=$(echo $DIRNAME | sed -e 's|/[^/][^/]*|/..|g')
|
|
||||||
mkdir -p %{buildroot}${TARGETBASEDIR}/$DIRNAME
|
|
||||||
LNNAME=$(echo $BACK2DIR/$RELBASEDIR/$f | \
|
|
||||||
sed -e 's|^\./||' | sed -e 's|//|/|g' | \
|
|
||||||
sed -e 's|/\./|/|' )
|
|
||||||
ln -s -f $LNNAME %{buildroot}${TARGETBASEDIR}/$f
|
|
||||||
done
|
|
||||||
popd
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
create_symlink_rec %{geminstdir}/lib %{ruby_sitelib}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -242,26 +186,14 @@ create_symlink_rec %{geminstdir}/lib %{ruby_sitelib}
|
|||||||
# fails without TZ on sparc
|
# fails without TZ on sparc
|
||||||
export TZ="Asia/Tokyo"
|
export TZ="Asia/Tokyo"
|
||||||
#???
|
#???
|
||||||
%if 0%{?ruby19} > 0
|
|
||||||
LANG=ja_JP.UTF-8
|
LANG=ja_JP.UTF-8
|
||||||
%endif
|
|
||||||
|
|
||||||
pushd ./%{geminstdir}
|
pushd ./%{geminstdir}
|
||||||
# Some files are missing and due to it some tests fail, skip
|
|
||||||
SKIPTEST="test/xml/test_xinclude.rb"
|
|
||||||
for f in $SKIPTEST
|
|
||||||
do
|
|
||||||
mv $f $f.skip
|
|
||||||
done
|
|
||||||
|
|
||||||
# Observed fail on test_subclass_parse(Nokogiri::XML::TestDocument)
|
|
||||||
# Need investigation. For now anyway build
|
# Need investigation. For now anyway build
|
||||||
ruby -I.:lib:test \
|
ruby -I.:lib:test \
|
||||||
%if ! 0%{?ruby19} < 1
|
|
||||||
-rubygems \
|
|
||||||
%endif
|
|
||||||
-e \
|
-e \
|
||||||
"require 'minitest/autorun' ; Dir.glob('test/**/test_*.rb'){|f| require f}" || \
|
"require 'test/helper' ; Dir.glob('test/**/test_*.rb'){|f| require f}" || \
|
||||||
echo "Please investigate this"
|
echo "Please investigate this"
|
||||||
|
|
||||||
for f in $SKIPTEST
|
for f in $SKIPTEST
|
||||||
@ -274,15 +206,12 @@ popd
|
|||||||
%files
|
%files
|
||||||
%defattr(-,root, root,-)
|
%defattr(-,root, root,-)
|
||||||
%{_bindir}/%{gemname}
|
%{_bindir}/%{gemname}
|
||||||
%if 0%{?ruby19} < 1
|
|
||||||
%{ruby_sitearch}/%{gemname}
|
|
||||||
%else
|
|
||||||
%{gem_extdir_mri}/
|
%{gem_extdir_mri}/
|
||||||
%endif
|
|
||||||
%dir %{geminstdir}/
|
%dir %{geminstdir}/
|
||||||
%doc %{geminstdir}/[A-Z]*
|
%doc %{geminstdir}/[A-Z]*
|
||||||
#%%doc %{geminstdir}/nokogiri_help_responses.md
|
#%%doc %{geminstdir}/nokogiri_help_responses.md
|
||||||
%exclude %{geminstdir}/Rakefile
|
%exclude %{geminstdir}/Rakefile
|
||||||
|
%exclude %{geminstdir}/Gemfile
|
||||||
%{geminstdir}/bin/
|
%{geminstdir}/bin/
|
||||||
%{geminstdir}/lib/
|
%{geminstdir}/lib/
|
||||||
%{gemdir}/cache/%{gemname}-%{mainver}%{?prever}.gem
|
%{gemdir}/cache/%{gemname}-%{mainver}%{?prever}.gem
|
||||||
@ -303,15 +232,10 @@ popd
|
|||||||
%{geminstdir}/test/
|
%{geminstdir}/test/
|
||||||
%{gemdir}/doc/%{gemname}-%{mainver}%{?prever}/
|
%{gemdir}/doc/%{gemname}-%{mainver}%{?prever}/
|
||||||
|
|
||||||
%if 0%{?ruby19} < 1
|
|
||||||
%files -n ruby-%{gemname}
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{ruby_sitelib}/*%{gemname}.rb
|
|
||||||
%{ruby_sitelib}/%{gemname}/
|
|
||||||
%{ruby_sitelib}/xsd/
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 4 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.6.0-1
|
||||||
|
- 1.6.0
|
||||||
|
|
||||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.9-1.1
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.9-1.1
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user