|
|
|
%global gem_name redcarpet
|
|
|
|
%global gem_extinstdir %{gem_extdir_mri}/lib
|
|
|
|
|
|
|
|
Summary: A fast, safe and extensible Markdown to (X)HTML parser
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 2.1.1
|
|
|
|
Release: 7%{?dist}
|
|
|
|
Group: Development/Languages
|
|
|
|
License: ISC
|
|
|
|
URL: http://github.com/tanoku/redcarpet
|
|
|
|
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
Patch0: rubygem-redcarpet-libxml2-2.8-fix.patch
|
|
|
|
Requires: ruby(release)
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: ruby-devel
|
|
|
|
BuildRequires: rubygem(minitest)
|
|
|
|
BuildRequires: rubygem(rake)
|
|
|
|
BuildRequires: rubygem(nokogiri)
|
|
|
|
BuildRequires: rubygem(rdoc)
|
|
|
|
|
|
|
|
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
A fast, safe and extensible Markdown to (X)HTML parser
|
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Documentation for %{name}
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -c -T
|
|
|
|
%gem_install -n %{SOURCE0}
|
|
|
|
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
%patch0 -p1
|
|
|
|
popd
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
cp -a ./%{_bindir}/* %{buildroot}%{_bindir}
|
|
|
|
chmod 755 %{buildroot}%{_bindir}/redcarpet
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{gem_extinstdir}
|
|
|
|
mv %{buildroot}%{gem_instdir}/lib/redcarpet.so %{buildroot}%{gem_extinstdir}
|
|
|
|
|
|
|
|
# Fix permissions
|
|
|
|
chmod 644 ./%{gem_instdir}/COPYING
|
|
|
|
|
|
|
|
%check
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
ruby -rubygems -Ilib test/redcarpet_test.rb
|
|
|
|
popd
|
|
|
|
|
|
|
|
%files
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%{_bindir}/redcarpet
|
|
|
|
%{gem_instdir}/bin
|
|
|
|
%exclude %{gem_instdir}/ext
|
|
|
|
%{gem_libdir}
|
|
|
|
%{gem_extinstdir}
|
|
|
|
%{gem_cache}
|
|
|
|
%{gem_spec}
|
|
|
|
%doc %{gem_instdir}/COPYING
|
|
|
|
%doc %{gem_instdir}/README.markdown
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
%{gem_instdir}/test
|
|
|
|
%{gem_instdir}/%{gem_name}.gemspec
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Thu Mar 14 2013 Josef Stribny <jstribny@redhat.com> - 2.1.1-7
|
|
|
|
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
|
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon May 21 2012 Matt Hicks <mhicks@redhat.com> - 2.1.1-4
|
|
|
|
- Removing conditionals
|
|
|
|
|
|
|
|
* Mon May 21 2012 Matt Hicks <mhicks@redhat.com> - 2.1.1-3
|
|
|
|
- Adding newer rdoc build requires to fix rpmdiff issue
|
|
|
|
|
|
|
|
* Fri May 18 2012 Matt Hicks <mhicks@redhat.com> - 2.1.1-2
|
|
|
|
- Cleaning up spec to remove patch and rake testing dependency
|
|
|
|
|
|
|
|
* Thu Apr 26 2012 Matt Hicks <mhicks@redhat.com> - 2.1.1-1
|
|
|
|
- Initial package
|