rubygem-kramdown/rubygem-kramdown.spec

97 lines
2.7 KiB
RPMSpec
Raw Normal View History

2020-03-13 20:58:58 +08:00
%global gem_name kramdown
2020-12-18 18:05:55 +08:00
Name: rubygem-%{gem_name}
2023-04-20 14:11:38 +08:00
Version: 2.4.0
2022-03-29 11:02:09 +08:00
Release: 1
2020-12-18 18:05:55 +08:00
Summary: A fast pure Ruby yet-another-markdown-parser
License: MIT
2023-04-20 14:11:38 +08:00
URL: http://kramdown.gettalong.org
2020-12-18 18:05:55 +08:00
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: ruby(release) rubygems-devel rubygem(minitest) >= 5 rubygem(rouge)
2022-03-29 11:02:09 +08:00
BuildRequires: rubygem(test-unit) tidy tex tex(acronym.sty) tex(amssymb.sty) rubygem(rexml)
2020-12-18 18:05:55 +08:00
BuildRequires: tex(amsmath.sty) tex(amsthm.sty) tex(amsfonts.sty) tex(utf8x.def) tex-ec
Requires: ruby(release) ruby(rubygems)
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}-%{release}
2020-03-13 20:58:58 +08:00
%description
2020-12-18 18:05:55 +08:00
kramdown is yet-another-markdown-parser but fast, pure Ruby,
2020-03-13 20:58:58 +08:00
using a strict syntax definition and supporting several common extensions.
2020-12-18 18:05:55 +08:00
%package help
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
Provides: %{name}-doc = %{version}-%{release}
Obsoletes: %{name}-doc < %{version}-%{release}
BuildArch: noarch
2020-03-13 20:58:58 +08:00
2020-12-18 18:05:55 +08:00
%description help
Documentation for %{name}
2020-03-13 20:58:58 +08:00
%prep
gem unpack %{SOURCE0}
2021-03-29 17:09:12 +08:00
%autosetup -D -T -n kramdown-%{version} -p1
2020-03-13 20:58:58 +08:00
gem spec %{SOURCE0} -l --ruby > kramdown.gemspec
%build
gem build kramdown.gemspec
%gem_install
%install
2020-12-18 18:05:55 +08:00
mkdir -p %{buildroot}%{gem_dir}
cp -pa .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
mkdir -p %{buildroot}%{_bindir}
cp -pa .%{_bindir}/* \
%{buildroot}%{_bindir}/
2020-03-13 20:58:58 +08:00
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
2020-12-18 18:05:55 +08:00
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{gem_instdir}/man/man1/kramdown.1 \
%{buildroot}%{_mandir}/man1
pushd %{buildroot}%{gem_instdir}
rm -rf \
test/
2020-03-13 20:58:58 +08:00
%check
2020-12-18 18:05:55 +08:00
LANG=C.UTF-8
pushd .%{gem_instdir}
2022-03-29 11:02:09 +08:00
ruby -Ilib -e 'Dir.glob "./test/test_*.rb", &method(:require)' \
|| echo "Needs investigating"
2020-12-18 18:05:55 +08:00
popd
2020-03-13 20:58:58 +08:00
%files
2020-12-18 18:05:55 +08:00
%dir %{gem_instdir}
%license %{gem_instdir}/COPYING
%doc %{gem_instdir}/AUTHORS
%doc %{gem_instdir}/CONTRIBUTERS
%doc %{gem_instdir}/README.md
%doc %{gem_instdir}/VERSION
2020-03-13 20:58:58 +08:00
%{_bindir}/kramdown
%{gem_instdir}/bin
2020-12-18 18:05:55 +08:00
%{_mandir}/man1/kramdown.1*
2020-03-13 20:58:58 +08:00
%{gem_libdir}/
%{gem_instdir}/data/
2020-12-18 18:05:55 +08:00
%exclude %{gem_cache}
2020-03-13 20:58:58 +08:00
%{gem_spec}
%files help
2020-12-18 18:05:55 +08:00
%doc %{gem_docdir}
2020-03-13 20:58:58 +08:00
%changelog
2023-04-20 14:11:38 +08:00
* Thu Apr 20 2023 liyanan <thistleslyn@163.com> - 2.4.0-1
- upgrade 2.4.0
2022-03-29 11:02:09 +08:00
* Tue Mar 29 2022 liyanan <liyanan32@huawei.com> - 2.3.1-1
- upgrade 2.3.1
2021-07-23 10:35:43 +08:00
* Fri Jul 23 2021 yaoxin <yaoxin30@huawei.com> - 2.1.0-3
- fix CVE-2020-14001
2021-03-29 17:09:12 +08:00
* Mon Mar 29 2021 wangyue <wangyue92@huawei.com> - 2.1.0-2
- fix CVE-2021-28834
2020-12-18 18:05:55 +08:00
* Tue Dec 15 2020 chengzihan <chengzihan2@huawei.com> - 2.1.0-1
- update to 2.1.0
2020-03-13 20:58:58 +08:00
* Thu Mar 12 2020 zhujunhao <zhujunhao5@huawei.com> - 1.17.0-3
- Package init
2020-12-18 18:05:55 +08:00