!1 Package init
From: @chengzihan2 Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
9181ab8271
BIN
kramdown-parser-gfm-1.1.0.gem
Normal file
BIN
kramdown-parser-gfm-1.1.0.gem
Normal file
Binary file not shown.
57
rubygem-kramdown-parser-gfm.spec
Normal file
57
rubygem-kramdown-parser-gfm.spec
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
%global gem_name kramdown-parser-gfm
|
||||||
|
Name: rubygem-%{gem_name}
|
||||||
|
Summary: Kramdown parser for GitHub-flavored markdown
|
||||||
|
Version: 1.1.0
|
||||||
|
Release: 1
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/kramdown/parser-gfm
|
||||||
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: ruby(release) rubygems-devel ruby >= 2.3
|
||||||
|
BuildRequires: rubygem(kramdown) >= 2.0.0 rubygem(minitest) rubygem(rouge)
|
||||||
|
|
||||||
|
%description
|
||||||
|
kramdown-parser-gfm provides a kramdown parser for the GFM dialect of
|
||||||
|
Markdown.
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Documentation for %{name}
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
%description doc
|
||||||
|
Documentation for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{gem_name}-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
gem build ../%{gem_name}-%{version}.gemspec
|
||||||
|
%gem_install
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
|
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
|
||||||
|
|
||||||
|
%check
|
||||||
|
pushd .%{gem_instdir}
|
||||||
|
mv test/testcases/codeblock_fenced.text test/testcases/codeblock_fenced.disabled
|
||||||
|
ruby -I'lib' -e 'Dir.glob "./test/**test_*.rb", &method(:require)'
|
||||||
|
mv test/testcases/codeblock_fenced.disabled test/testcases/codeblock_fenced.text
|
||||||
|
popd
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license %{gem_instdir}/COPYING
|
||||||
|
%dir %{gem_instdir}
|
||||||
|
%{gem_libdir}
|
||||||
|
%{gem_spec}
|
||||||
|
%exclude %{gem_instdir}/VERSION
|
||||||
|
%exclude %{gem_cache}
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%doc %{gem_docdir}
|
||||||
|
%doc %{gem_instdir}/CONTRIBUTERS
|
||||||
|
%{gem_instdir}/test
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Dec 15 2020 chengzihan <chengzihan2@huawei.com> - 1.1.0-1
|
||||||
|
- Package init
|
||||||
4
rubygem-kramdown-parser-gfm.yaml
Normal file
4
rubygem-kramdown-parser-gfm.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: kramdown/parser-gfm
|
||||||
|
tag_prefix: "REL_"
|
||||||
|
separator: "_"
|
||||||
Loading…
x
Reference in New Issue
Block a user