Vít Ondruch 12 years ago
parent c36086706f
commit 64df6cdde0

@ -1,22 +1,22 @@
# Generated from RedCloth-4.1.9.gem by gem2rpm -*- rpm-spec -*- # Generated from RedCloth-4.1.9.gem by gem2rpm -*- rpm-spec -*-
%global gem_name RedCloth %global gem_name RedCloth
%global gemlibname redcloth_scan.so %global gemlibname redcloth_scan.so
%global installroot %{buildroot}%{gem_instdir}
%global extensionddir %{installroot}/ext/redcloth_scan/
Summary: Textile parser for Ruby Summary: Textile parser for Ruby
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 4.2.9 Version: 4.2.9
Release: 3%{?dist} Release: 4%{?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/%{gem_name}-%{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.9.1 Requires: ruby(release)
Requires: ruby(rubygems) Requires: ruby(rubygems)
BuildRequires: rubygems-devel BuildRequires: rubygems-devel
BuildRequires: rubygem(rspec-core) BuildRequires: rubygem(rspec-core)
BuildRequires: rubygem(rspec-mocks)
BuildRequires: rubygem(rspec-expectations)
BuildRequires: ruby-devel BuildRequires: ruby-devel
Provides: rubygem(%{gem_name}) = %{version} Provides: rubygem(%{gem_name}) = %{version}
@ -26,9 +26,8 @@ Textile parser for Ruby.
%prep %prep
%setup -q -c -T %setup -q -c -T
export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
gem install --local --install-dir .%{gem_dir} \ %gem_install -n %{SOURCE0}
--force -V --rdoc %{SOURCE0}
# To create debuginfo file corretly (workaround for # To create debuginfo file corretly (workaround for
# "#line" directive) # "#line" directive)
@ -37,38 +36,20 @@ mkdir ext
ln -sf .. ext/redcloth_scan ln -sf .. ext/redcloth_scan
popd popd
%build %build
%install %install
rm -rf %{buildroot} mkdir -p %{buildroot}%{gem_dir}
cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
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} mkdir -p %{buildroot}%{_bindir}
cp -a ./%{_bindir}/* %{buildroot}%{_bindir}
cp -a %{buildroot}%{gem_dir}/bin/* %{buildroot}/%{_bindir} # Move C extension to the ext dir
mv %{extensionddir}%{gemlibname} %{buildroot}%{gem_extdir}/lib/%{gemlibname} mkdir -p %{buildroot}%{gem_extdir_mri}/lib
rm -rf %{extensionddir} mv %{buildroot}%{gem_instdir}/lib/redcloth_scan.so %{buildroot}%{gem_extdir_mri}/lib/
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 %clean
rm -rf %{buildroot} rm -rf %{buildroot}
@ -82,14 +63,14 @@ popd
%{_bindir}/redcloth %{_bindir}/redcloth
%exclude %{gem_instdir}/.gemtest %exclude %{gem_instdir}/.gemtest
%exclude %{gem_instdir}/.rspec %exclude %{gem_instdir}/.rspec
%exclude %{gem_instdir}/ext
%dir %{gem_instdir} %dir %{gem_instdir}
%{gem_instdir}/bin %{gem_instdir}/bin
%{gem_instdir}/Gemfile %{gem_instdir}/Gemfile
%{gem_instdir}/redcloth.gemspec %{gem_instdir}/redcloth.gemspec
%{gem_instdir}/tasks %{gem_instdir}/tasks
%{gem_libdir} %{gem_libdir}
%{ruby_vendorlibdir}/redcloth.rb %{gem_extdir_mri}/lib/%{gemlibname}
%{gem_extdir}/lib/%{gemlibname}
%doc %{gem_docdir} %doc %{gem_docdir}
%doc %{gem_instdir}/doc %doc %{gem_instdir}/doc
%doc %{gem_instdir}/spec %doc %{gem_instdir}/spec
@ -102,6 +83,9 @@ popd
%changelog %changelog
* Thu Mar 07 2013 Josef Stribny <jstribny@redhat.com> - 4.2.9-4
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.9-3 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

Loading…
Cancel
Save