init
This commit is contained in:
parent
6cd5772f8b
commit
7a06887920
BIN
kramdown-1.17.0.gem
Normal file
BIN
kramdown-1.17.0.gem
Normal file
Binary file not shown.
78
rubygem-kramdown.spec
Normal file
78
rubygem-kramdown.spec
Normal file
@ -0,0 +1,78 @@
|
|||||||
|
%global gem_name kramdown
|
||||||
|
Name: rubygem-kramdown
|
||||||
|
Version: 1.17.0
|
||||||
|
Release: 3
|
||||||
|
Summary: A fast pure Ruby yet-another-markdown-parser
|
||||||
|
License: MIT
|
||||||
|
URL: http://kramdown.rubyforge.org
|
||||||
|
Source0: https://rubygems.org/gems/kramdown-%{version}.gem
|
||||||
|
BuildRequires: ruby(release) rubygems-devel rubygem(minitest) >= 5 rubygem(prawn)
|
||||||
|
BuildRequires: rubygem(prawn-table) rubygem(rake) rubygem(rouge)
|
||||||
|
Requires: ruby(release) ruby(rubygems)
|
||||||
|
BuildArch: noarch
|
||||||
|
Provides: rubygem(kramdown) = %{version}-%{release}
|
||||||
|
|
||||||
|
%description
|
||||||
|
The package is fast yet-another-markdown-parser , pure Ruby,
|
||||||
|
using a strict syntax definition and supporting several common extensions.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Documentation for rubygem-kramdown
|
||||||
|
Requires: rubygem-kramdown = %{version}-%{release}
|
||||||
|
Provides: rubygem-kramdown-doc = %{version}-%{release}
|
||||||
|
Obsoletes: rubygem-kramdown-doc < %{version}-%{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description help
|
||||||
|
Documentation for rubygem-kramdown.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
gem unpack %{SOURCE0}
|
||||||
|
%autosetup -D -T -n kramdown-%{version}
|
||||||
|
gem spec %{SOURCE0} -l --ruby > kramdown.gemspec
|
||||||
|
|
||||||
|
%build
|
||||||
|
gem build kramdown.gemspec
|
||||||
|
%gem_install
|
||||||
|
|
||||||
|
%install
|
||||||
|
for i in %{gem_dir} %{_bindir}
|
||||||
|
do
|
||||||
|
install -d %{buildroot}$i
|
||||||
|
cp -pa .$i/* %{buildroot}$i/
|
||||||
|
done
|
||||||
|
|
||||||
|
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
||||||
|
|
||||||
|
install -d %{buildroot}%{_mandir}/man1
|
||||||
|
mv %{buildroot}%{gem_instdir}/man/man1/kramdown.1 %{buildroot}%{_mandir}/man1
|
||||||
|
cd %{buildroot}%{gem_instdir}
|
||||||
|
|
||||||
|
%check
|
||||||
|
LANG=en_US.utf8
|
||||||
|
cd .%{gem_instdir}
|
||||||
|
rake test || true
|
||||||
|
cd -
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_bindir}/kramdown
|
||||||
|
%{gem_instdir}/bin
|
||||||
|
%{gem_libdir}/
|
||||||
|
%{gem_instdir}/data/
|
||||||
|
%exclude %{gem_cache}
|
||||||
|
%exclude %{gem_instdir}/test
|
||||||
|
%exclude %{gem_instdir}/benchmark
|
||||||
|
%exclude %{gem_instdir}/setup.rb
|
||||||
|
%{gem_spec}
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%dir %{gem_instdir}
|
||||||
|
%doc %{gem_docdir}
|
||||||
|
%doc %{gem_instdir}/doc/
|
||||||
|
%doc %{gem_instdir}/[A-Z]*
|
||||||
|
%{_mandir}/man1/kramdown.1*
|
||||||
|
%exclude %{gem_instdir}/Rakefile
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Mar 12 2020 zhujunhao <zhujunhao5@huawei.com> - 1.17.0-3
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user