A Happy New Year

- 1.5.6
This commit is contained in:
Mamoru Tasaka 2013-01-01 00:22:36 +09:00
parent f7f82ee52f
commit 0ad636e27f
3 changed files with 30 additions and 9 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ nokogiri-1.4.3.1.gem
/nokogiri-1.5.0.gem /nokogiri-1.5.0.gem
/nokogiri-1.5.2.gem /nokogiri-1.5.2.gem
/nokogiri-1.5.5.gem /nokogiri-1.5.5.gem
/nokogiri-1.5.6.gem

View File

@ -4,10 +4,10 @@
%global rubyabi 1.8 %global rubyabi 1.8
%endif %endif
%global mainver 1.5.5 %global mainver 1.5.6
#%%global prever .beta.4 #%%global prever .beta.4
%global mainrel 2 %global mainrel 1
%global prerpmver %(echo "%{?prever}" | sed -e 's|\\.||g') %global prerpmver %(echo "%{?prever}" | sed -e 's|\\.||g')
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) %global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
@ -99,18 +99,35 @@ This package provides non-Gem support for %{gemname}.
%prep %prep
%setup -q -T -c %setup -q -T -c
# Gem repack
TOPDIR=$(pwd)
mkdir tmpunpackdir
pushd tmpunpackdir
gem unpack %{SOURCE0}
cd %{gem_name}-%{version}
# patches
#%%patch0 -p1
gem specification -l --ruby %{SOURCE0} > %{gem_name}.gemspec
# Ummm...
env LANG=ja_JP.UTF-8 gem build %{gem_name}.gemspec
mv %{gem_name}-%{version}.gem $TOPDIR
popd
rm -rf tmpunpackdir
%build
mkdir -p ./%{gemdir} mkdir -p ./%{gemdir}
export CONFIGURE_ARGS="--with-cflags='%{optflags}'" export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
gem install \ gem install \
--local \ --local \
--install-dir ./%{gemdir} \ --install-dir ./%{gemdir} \
-V --force \ -V --force \
%{SOURCE0} %{gem_name}-%{version}.gem
# patches
pushd .%{geminstdir}
#%%patch0 -p1
popd
# Permission # Permission
chmod 0644 .%{gemdir}/cache/%{gemname}-%{mainver}%{?prever}.gem chmod 0644 .%{gemdir}/cache/%{gemname}-%{mainver}%{?prever}.gem
@ -120,7 +137,6 @@ rm -f .%{geminstdir}/lib/*.jar
# For now remove JRuby support # For now remove JRuby support
rm -rf .%{geminstdir}/ext/java rm -rf .%{geminstdir}/ext/java
%build
%install %install
mkdir -p %{buildroot}%{gemdir} mkdir -p %{buildroot}%{gemdir}
@ -291,6 +307,10 @@ popd
%endif %endif
%changelog %changelog
* Tue Jan 1 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.5.6-1
- A Happy New Year
- 1.5.6
* Fri Aug 17 2012 Vít Ondruch <vondruch@redhat.com> - 1.5.5-2 * Fri Aug 17 2012 Vít Ondruch <vondruch@redhat.com> - 1.5.5-2
- Rebuilt againts libxml2 2.9. - Rebuilt againts libxml2 2.9.

View File

@ -1 +1 @@
b65b2607bf1b3e6cdb0491faab816e68 nokogiri-1.5.5.gem 5ccf492f60fd9edc4f86aef3bb97145c nokogiri-1.5.6.gem