You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
109 lines
3.3 KiB
109 lines
3.3 KiB
# Generated from RedCloth-4.1.9.gem by gem2rpm -*- rpm-spec -*-
|
|
%global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
|
|
%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 geminstdir %{gemdir}/gems/%{gemname}-%{version}
|
|
%global installroot %{buildroot}%{geminstdir}
|
|
%global extensionddir %{installroot}/ext/redcloth_scan/
|
|
|
|
Summary: Textile parser for Ruby
|
|
Name: rubygem-%{gemname}
|
|
Version: 4.1.9
|
|
Release: 7%{?dist}
|
|
Group: Development/Languages
|
|
License: MIT
|
|
URL: http://redcloth.org
|
|
Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Requires: ruby(abi) = 1.8
|
|
Requires: rubygems
|
|
BuildRequires: rubygems
|
|
BuildRequires: ruby-devel >= 1.8
|
|
Provides: rubygem(%{gemname}) = %{version}
|
|
|
|
%description
|
|
Textile parser for Ruby.
|
|
|
|
|
|
%prep
|
|
%setup -q -c -T
|
|
export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
|
|
gem install --local --install-dir .%{gemdir} \
|
|
--force -V --rdoc %{SOURCE0}
|
|
|
|
# To create debuginfo file corretly (workaround for
|
|
# "#line" directive)
|
|
pushd .%{geminstdir}/ext/redcloth_scan
|
|
mkdir ext
|
|
ln -sf .. ext/redcloth_scan
|
|
popd
|
|
|
|
%build
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
|
|
install -d -m0755 %{buildroot}%{gemdir}
|
|
install -d -m0755 %{buildroot}%{ruby_sitelib}
|
|
install -d -m0755 %{buildroot}%{ruby_sitearch}
|
|
|
|
cp -a .%{gemdir}/* %{buildroot}%{gemdir}
|
|
|
|
mkdir -p %{buildroot}/%{_bindir}
|
|
|
|
cp -a %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir}
|
|
mv %{extensionddir}%{gemlibname} %{buildroot}%{ruby_sitearch}/%{gemlibname}
|
|
rm -rf %{extensionddir}
|
|
|
|
rm %{installroot}/lib/%{gemlibname}
|
|
cp %{installroot}/lib/redcloth.rb %{buildroot}%{ruby_sitelib}/redcloth.rb
|
|
rm -rf %{buildroot}%{gemdir}/bin
|
|
find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x
|
|
find %{buildroot}%{geminstdir} -name "*.rb" | xargs chmod a+x
|
|
|
|
find %{buildroot}%{geminstdir} -type f -name \*.rb | xargs chmod 0644
|
|
|
|
find %{buildroot}%{geminstdir} -type f -name \*.rb | \
|
|
xargs grep -l "^#!%{_bindir}/env" $file | xargs chmod 0755
|
|
|
|
rm %{installroot}/.require_paths
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-, root, root, -)
|
|
%{_bindir}/redcloth
|
|
%{gemdir}/gems/%{gemname}-%{version}/
|
|
%{ruby_sitelib}/redcloth.rb
|
|
%{ruby_sitearch}/%{gemlibname}
|
|
%doc %{gemdir}/doc/%{gemname}-%{version}
|
|
%{gemdir}/cache/%{gemname}-%{version}.gem
|
|
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
|
|
|
|
|
|
%changelog
|
|
* Thu Jul 30 2009 Darryl 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 Pierce <dpierce@redhat.com> - 4.1.9-5
|
|
- Resolves: rhbz#505589 - rubygem-RedCloth-debuginfo created from stripped binaries
|
|
|
|
* Fri May 1 2009 Darryl Pierce <dpierce@redhat.com> - 4.1.9-4
|
|
- First official build for Fedora.
|
|
|
|
* Thu Apr 30 2009 Darryl Pierce <dpierce@redhat.com> - 4.1.9-3
|
|
- Changed mv to cp for binaries.
|
|
- Removed redundant %doc entries.
|
|
|
|
* Thu Apr 30 2009 Darryl Pierce <dpierce@redhat.com> - 4.1.9-2
|
|
- Added BuildRequires: ruby-devel to fix koji issues.
|
|
|
|
* Thu Apr 23 2009 Darryl Pierce <dpierce@redhat.com> - 4.1.9-1
|
|
- Initial package
|