Rebuilt for Ruby 1.9.3.

Update to RedCloth 4.2.9.
f38
Vít Ondruch 13 years ago
parent 70259440ef
commit d55dad516a

1
.gitignore vendored

@ -1,2 +1,3 @@
RedCloth-4.2.2.gem RedCloth-4.2.2.gem
/RedCloth-4.2.3.gem /RedCloth-4.2.3.gem
/RedCloth-4.2.9.gem

@ -1,27 +1,24 @@
# Generated from RedCloth-4.1.9.gem by gem2rpm -*- rpm-spec -*- # Generated from RedCloth-4.1.9.gem by gem2rpm -*- rpm-spec -*-
%global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']") %global gem_name RedCloth
%global ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%global gemname RedCloth
%global gemlibname redcloth_scan.so %global gemlibname redcloth_scan.so
%global geminstdir %{gemdir}/gems/%{gemname}-%{version} %global installroot %{buildroot}%{gem_instdir}
%global installroot %{buildroot}%{geminstdir}
%global extensionddir %{installroot}/ext/redcloth_scan/ %global extensionddir %{installroot}/ext/redcloth_scan/
Summary: Textile parser for Ruby Summary: Textile parser for Ruby
Name: rubygem-%{gemname} Name: rubygem-%{gem_name}
Version: 4.2.3 Version: 4.2.9
Release: 3%{?dist} Release: 1%{?dist}
Group: Development/Languages Group: Development/Languages
License: MIT License: MIT
URL: http://redcloth.org URL: http://redcloth.org
Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: ruby(abi) = 1.8 Requires: ruby(abi) = 1.9.1
Requires: rubygems Requires: ruby(rubygems)
BuildRequires: rubygems BuildRequires: rubygems-devel
BuildRequires: ruby-devel >= 1.8 BuildRequires: rubygem(rspec-core)
Provides: rubygem(%{gemname}) = %{version} BuildRequires: ruby-devel
Provides: rubygem(%{gem_name}) = %{version}
%description %description
Textile parser for Ruby. Textile parser for Ruby.
@ -30,12 +27,12 @@ Textile parser for Ruby.
%prep %prep
%setup -q -c -T %setup -q -c -T
export CONFIGURE_ARGS="--with-cflags='%{optflags}'" export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
gem install --local --install-dir .%{gemdir} \ gem install --local --install-dir .%{gem_dir} \
--force -V --rdoc %{SOURCE0} --force -V --rdoc %{SOURCE0}
# To create debuginfo file corretly (workaround for # To create debuginfo file corretly (workaround for
# "#line" directive) # "#line" directive)
pushd .%{geminstdir}/ext/redcloth_scan pushd .%{gem_instdir}/ext/redcloth_scan
mkdir ext mkdir ext
ln -sf .. ext/redcloth_scan ln -sf .. ext/redcloth_scan
popd popd
@ -45,21 +42,21 @@ popd
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
install -d -m0755 %{buildroot}%{gemdir} install -d -m0755 %{buildroot}%{gem_dir}
install -d -m0755 %{buildroot}%{ruby_sitelib} install -d -m0755 %{buildroot}%{ruby_vendorlibdir}
install -d -m0755 %{buildroot}%{ruby_sitearch} install -d -m0755 %{buildroot}%{gem_extdir}/lib
cp -a .%{gemdir}/* %{buildroot}%{gemdir} cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
mkdir -p %{buildroot}/%{_bindir} mkdir -p %{buildroot}/%{_bindir}
cp -a %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir} cp -a %{buildroot}%{gem_dir}/bin/* %{buildroot}/%{_bindir}
mv %{extensionddir}%{gemlibname} %{buildroot}%{ruby_sitearch}/%{gemlibname} mv %{extensionddir}%{gemlibname} %{buildroot}%{gem_extdir}/lib/%{gemlibname}
rm -rf %{extensionddir} rm -rf %{extensionddir}
rm %{installroot}/lib/%{gemlibname} rm %{installroot}/lib/%{gemlibname}
cp %{installroot}/lib/redcloth.rb %{buildroot}%{ruby_sitelib}/redcloth.rb cp %{installroot}/lib/redcloth.rb %{buildroot}%{ruby_vendorlibdir}/redcloth.rb
rm -rf %{buildroot}%{gemdir}/bin rm -rf %{buildroot}%{gem_dir}/bin
find %{installroot}/bin -type f | xargs chmod a+x find %{installroot}/bin -type f | xargs chmod a+x
find %{installroot} -name "*.rb" | xargs chmod a+x find %{installroot} -name "*.rb" | xargs chmod a+x
@ -76,29 +73,39 @@ rm -f %{installroot}/RedCloth.gemspec
rm -rf %{buildroot} rm -rf %{buildroot}
%check %check
# Requires echoe -- not in Fedora yet pushd .%{gem_instdir}
cd %{buildroot}%{geminstdir} rspec spec
popd
%files %files
%defattr(-, root, root, -) %defattr(-, root, root, -)
%{_bindir}/redcloth %{_bindir}/redcloth
%dir %{geminstdir} %exclude %{gem_instdir}/.gemtest
%{geminstdir}/bin %exclude %{gem_instdir}/.rspec
%{geminstdir}/lib %dir %{gem_instdir}
%{ruby_sitelib}/redcloth.rb %{gem_instdir}/bin
%{ruby_sitearch}/%{gemlibname} %{gem_instdir}/Gemfile
%doc %{gemdir}/doc/%{gemname}-%{version} %{gem_instdir}/redcloth.gemspec
%doc %{geminstdir}/spec %{gem_instdir}/tasks
%doc %{geminstdir}/README %{gem_libdir}
%doc %{geminstdir}/Rakefile %{ruby_vendorlibdir}/redcloth.rb
%doc %{geminstdir}/CHANGELOG %{gem_extdir}/lib/%{gemlibname}
%doc %{geminstdir}/COPYING %doc %{gem_docdir}
%doc %{geminstdir}/setup.rb %doc %{gem_instdir}/doc
%{gemdir}/cache/%{gemname}-%{version}.gem %doc %{gem_instdir}/spec
%{gemdir}/specifications/%{gemname}-%{version}.gemspec %doc %{gem_instdir}/README.rdoc
%doc %{gem_instdir}/Rakefile
%doc %{gem_instdir}/CHANGELOG
%doc %{gem_instdir}/COPYING
%{gem_cache}
%{gem_spec}
%changelog %changelog
* Wed Feb 01 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 4.2.9-1
- Rebuilt for Ruby 1.9.3.
- Update to RedCloth 4.2.9.
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.3-3 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

@ -1 +1 @@
cc95e8af45e7a81c30c7480991d1c7ea RedCloth-4.2.3.gem 021dc588a1f5ec5804c0083c09740b39 RedCloth-4.2.9.gem

Loading…
Cancel
Save