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