|
|
|
# Generated from RedCloth-4.1.9.gem by gem2rpm -*- rpm-spec -*-
|
|
|
|
%global gem_name RedCloth
|
|
|
|
%global gemlibname redcloth_scan.so
|
|
|
|
%global installroot %{buildroot}%{gem_instdir}
|
|
|
|
%global extensionddir %{installroot}/ext/redcloth_scan/
|
|
|
|
|
|
|
|
Summary: Textile parser for Ruby
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 4.2.9
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Group: Development/Languages
|
|
|
|
License: MIT
|
|
|
|
URL: http://redcloth.org
|
|
|
|
Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
Requires: ruby(abi) = 1.9.1
|
|
|
|
Requires: ruby(rubygems)
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: rubygem(rspec-core)
|
|
|
|
BuildRequires: ruby-devel
|
|
|
|
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Textile parser for Ruby.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -c -T
|
|
|
|
export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
|
|
|
|
gem install --local --install-dir .%{gem_dir} \
|
|
|
|
--force -V --rdoc %{SOURCE0}
|
|
|
|
|
|
|
|
# To create debuginfo file corretly (workaround for
|
|
|
|
# "#line" directive)
|
|
|
|
pushd .%{gem_instdir}/ext/redcloth_scan
|
|
|
|
mkdir ext
|
|
|
|
ln -sf .. ext/redcloth_scan
|
|
|
|
popd
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
install -d -m0755 %{buildroot}%{gem_dir}
|
|
|
|
install -d -m0755 %{buildroot}%{ruby_vendorlibdir}
|
|
|
|
install -d -m0755 %{buildroot}%{gem_extdir}/lib
|
|
|
|
|
|
|
|
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}/%{_bindir}
|
|
|
|
|
|
|
|
cp -a %{buildroot}%{gem_dir}/bin/* %{buildroot}/%{_bindir}
|
|
|
|
mv %{extensionddir}%{gemlibname} %{buildroot}%{gem_extdir}/lib/%{gemlibname}
|
|
|
|
rm -rf %{extensionddir}
|
|
|
|
|
|
|
|
rm %{installroot}/lib/%{gemlibname}
|
|
|
|
cp %{installroot}/lib/redcloth.rb %{buildroot}%{ruby_vendorlibdir}/redcloth.rb
|
|
|
|
rm -rf %{buildroot}%{gem_dir}/bin
|
|
|
|
find %{installroot}/bin -type f | xargs chmod a+x
|
|
|
|
find %{installroot} -name "*.rb" | xargs chmod a+x
|
|
|
|
|
|
|
|
find %{installroot} -type f -name \*.rb | xargs chmod 0644
|
|
|
|
|
|
|
|
# 4.2.2-1 No files have the prologue to run as executables.
|
|
|
|
#find %%{installroot} -type f -name "\*.rb" | \
|
|
|
|
# xargs grep -l "^#!l%%{_bindir}/env" $file | xargs chmod 0755
|
|
|
|
|
|
|
|
rm -f %{installroot}/.require_paths
|
|
|
|
rm -f %{installroot}/Manifest
|
|
|
|
rm -f %{installroot}/RedCloth.gemspec
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%check
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
rspec spec
|
|
|
|
popd
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root, -)
|
|
|
|
%{_bindir}/redcloth
|
|
|
|
%exclude %{gem_instdir}/.gemtest
|
|
|
|
%exclude %{gem_instdir}/.rspec
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%{gem_instdir}/bin
|
|
|
|
%{gem_instdir}/Gemfile
|
|
|
|
%{gem_instdir}/redcloth.gemspec
|
|
|
|
%{gem_instdir}/tasks
|
|
|
|
%{gem_libdir}
|
|
|
|
%{ruby_vendorlibdir}/redcloth.rb
|
|
|
|
%{gem_extdir}/lib/%{gemlibname}
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
%doc %{gem_instdir}/doc
|
|
|
|
%doc %{gem_instdir}/spec
|
|
|
|
%doc %{gem_instdir}/README.rdoc
|
|
|
|
%doc %{gem_instdir}/Rakefile
|
|
|
|
%doc %{gem_instdir}/CHANGELOG
|
|
|
|
%doc %{gem_instdir}/COPYING
|
|
|
|
%{gem_cache}
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Sep 03 2010 Michael Stahnke <stahnma@fedoraproject.org> - 4.2.3-1
|
|
|
|
- Version update
|
|
|
|
|
|
|
|
* Mon Feb 15 2010 Darryl L. Pierce <dpierce@redhat.com> - 4.2.2-1
|
|
|
|
- Commented out the piece of set the executable status on files.
|
|
|
|
- Release 4.2.2 of RedCloth.
|
|
|
|
|
|
|
|
* Thu Jul 30 2009 Darryl L. Pierce <dpierce@redhat.com> - 4.1.9-7
|
|
|
|
- Resolves: rhbz#505589 - rubygem-RedCloth-debuginfo created from stripped binaries
|
|
|
|
|
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.9-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue Jul 14 2009 Darryl L. Pierce <dpierce@redhat.com> - 4.1.9-5
|
|
|
|
- Resolves: rhbz#505589 - rubygem-RedCloth-debuginfo created from stripped binaries
|
|
|
|
|
|
|
|
* Fri May 1 2009 Darryl L. Pierce <dpierce@redhat.com> - 4.1.9-4
|
|
|
|
- First official build for Fedora.
|
|
|
|
|
|
|
|
* Thu Apr 30 2009 Darryl L. Pierce <dpierce@redhat.com> - 4.1.9-3
|
|
|
|
- Changed mv to cp for binaries.
|
|
|
|
- Removed redundant %%doc entries.
|
|
|
|
|
|
|
|
* Thu Apr 30 2009 Darryl L. Pierce <dpierce@redhat.com> - 4.1.9-2
|
|
|
|
- Added BuildRequires: ruby-devel to fix koji issues.
|
|
|
|
|
|
|
|
* Thu Apr 23 2009 Darryl L. Pierce <dpierce@redhat.com> - 4.1.9-1
|
|
|
|
- Initial package
|