|
|
|
@ -1,29 +1,30 @@
|
|
|
|
|
%global gem_name redcarpet
|
|
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 3.3.2
|
|
|
|
|
Release: 25%{?dist}
|
|
|
|
|
Summary: A fast, safe and extensible Markdown to (X)HTML parser
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 3.3.2
|
|
|
|
|
Release: 25%{?dist}
|
|
|
|
|
|
|
|
|
|
Summary: A fast, safe and extensible Markdown to (X)HTML parser
|
|
|
|
|
# https://github.com/vmg/redcarpet/issues/502
|
|
|
|
|
License: MIT and ISC
|
|
|
|
|
URL: http://github.com/vmg/redcarpet
|
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
|
BuildRequires: ruby-devel
|
|
|
|
|
BuildRequires: rubygem(test-unit)
|
|
|
|
|
License: MIT and ISC
|
|
|
|
|
URL: http://github.com/vmg/redcarpet
|
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
|
BuildRequires: ruby-devel
|
|
|
|
|
BuildRequires: rubygem(test-unit)
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A fast, safe and extensible Markdown to (X)HTML parser.
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
%description doc
|
|
|
|
|
Documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
@ -45,32 +46,43 @@ cp -a ./%{_bindir}/* %{buildroot}%{_bindir}
|
|
|
|
|
chmod 755 %{buildroot}%{_bindir}/redcarpet
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{gem_extdir_mri}
|
|
|
|
|
cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/
|
|
|
|
|
cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} \
|
|
|
|
|
%{buildroot}%{gem_extdir_mri}/
|
|
|
|
|
|
|
|
|
|
# cleanups
|
|
|
|
|
pushd %{buildroot}%{gem_instdir}
|
|
|
|
|
# Prevent dangling symlink in -debuginfo.
|
|
|
|
|
rm -rf %{buildroot}%{gem_instdir}/ext
|
|
|
|
|
rm -rf \
|
|
|
|
|
Gemfile \
|
|
|
|
|
Rakefile \
|
|
|
|
|
ext/ \
|
|
|
|
|
test/ \
|
|
|
|
|
%{gem_name}.gemspec \
|
|
|
|
|
%{nil}
|
|
|
|
|
popd
|
|
|
|
|
rm -f %{buildroot}%{gem_cache}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
RUBYOPT=-Ilib:$(dirs +1)%{gem_extdir_mri}:test ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
|
|
|
|
env \
|
|
|
|
|
RUBYOPT=-Ilib:$(dirs +1)%{gem_extdir_mri}:test \
|
|
|
|
|
ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
|
%license %{gem_instdir}/COPYING
|
|
|
|
|
%doc %{gem_instdir}/README.markdown
|
|
|
|
|
|
|
|
|
|
%{_bindir}/redcarpet
|
|
|
|
|
|
|
|
|
|
%{gem_instdir}/bin
|
|
|
|
|
%{gem_libdir}
|
|
|
|
|
%{gem_extdir_mri}
|
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
|
|
|
|
|
|
%{gem_spec}
|
|
|
|
|
%license %{gem_instdir}/COPYING
|
|
|
|
|
%doc %{gem_instdir}/README.markdown
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%{gem_instdir}/Gemfile
|
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
|
%{gem_instdir}/test
|
|
|
|
|
%{gem_instdir}/%{gem_name}.gemspec
|
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|