#2 Change license and text, aligning with the output of gem2rpm.
Merged 5 years ago by jaruga. Opened 5 years ago by jaruga.
rpms/ jaruga/rubygem-coderay feature/change-license-and-text  into  master

file modified
+11 -7
@@ -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 @@ 

  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 @@ 

  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 @@ 

  %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

  

I noticed I forgot to change the license information that upstream changed.

  • License check: It's changed from LGPLv2+ to MIT.
  • I aligned some texts with the output of gem2rpm coderay-1.1.2.gem command.
  • I added one more test file to the %check section.

  • Checking by rpmlint command: ok

  • Checking the installation: ok
  • Running coderay on irb command: ok
  • Scratch build: ok
    https://koji.fedoraproject.org/koji/taskinfo?taskID=28617393

This PR to share information. It is going to be merged soon.

Pull-Request has been merged by jaruga

5 years ago