Change license and text, aligning with the output of gem2rpm.

This commit is contained in:
Jun Aruga 2018-07-26 11:36:26 +02:00
parent d36e5c23ec
commit 24c8b248c9

View File

@ -1,10 +1,10 @@
%global gem_name coderay
Summary: Fast syntax highlighter engine for many programming languages
Name: rubygem-%{gem_name}
Version: 1.1.2
Release: 1%{?dist}
License: LGPLv2+
Release: 2%{?dist}
Summary: Fast syntax highlighting for selected languages
License: MIT
URL: http://coderay.rubychan.de
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# git clone https://github.com/rubychan/coderay.git && cd coderay
@ -12,13 +12,13 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: %{gem_name}-%{version}-tests.tgz
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby >= 1.8.6
BuildRequires: rubygem(test-unit)
BuildArch: noarch
%description
Coderay is a Ruby library for syntax highlighting. CodeRay is build to be easy
to use and intuitive, but at the same time fully featured, complete, fast and
efficient.
Fast and easy syntax highlighting for selected languages, written in Ruby.
Comes with RedCloth integration and LOC counter.
%package doc
@ -47,15 +47,16 @@ mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \
%{buildroot}%{_bindir}/
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
%check
pushd .%{gem_instdir}
tar xzvf %{SOURCE1}
# See https://github.com/rubychan/coderay/blob/master/rake_tasks/test.rake
LANG=en_US.UTF-8
ruby ./test/functional/suite.rb
ruby ./test/functional/for_redcloth.rb
ruby ./test/unit/suite.rb
popd
%files
@ -72,6 +73,9 @@ popd
%doc %{gem_instdir}/README_INDEX.rdoc
%changelog
* Thu Jul 26 2018 Jun Aruga <jaruga@redhat.com> - 1.1.2-2
- Change license and text, aligning with the output of gem2rpm.
* Wed Jul 25 2018 Jun Aruga <jaruga@redhat.com> - 1.1.2-1
- update to new version