From 43566552513dece0b6b96754221ffd0f523a6cb3 Mon Sep 17 00:00:00 2001 From: Jun Aruga Date: Jul 25 2018 16:23:57 +0000 Subject: update to 1.1.2 --- diff --git a/rubygem-coderay.spec b/rubygem-coderay.spec index fe9e594..4fb7078 100644 --- a/rubygem-coderay.spec +++ b/rubygem-coderay.spec @@ -2,18 +2,18 @@ Summary: Fast syntax highlighter engine for many programming languages Name: rubygem-%{gem_name} -Version: 1.1.0 -Release: 10%{?dist} -Group: Development/Languages +Version: 1.1.2 +Release: 1%{?dist} License: LGPLv2+ URL: http://coderay.rubychan.de -Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem -Requires: ruby(release) -Requires: ruby(rubygems) -#BuildRequires: rubygem(term-ansicolor) +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +# git clone https://github.com/rubychan/coderay.git && cd coderay +# git checkout v1.1.2 && tar czvf coderay-1.1.2-tests.tgz test/ +Source1: %{gem_name}-%{version}-tests.tgz +BuildRequires: ruby(release) BuildRequires: rubygems-devel +BuildRequires: rubygem(test-unit) BuildArch: noarch -Provides: rubygem(%{gem_name}) = %{version} %description Coderay is a Ruby library for syntax highlighting. CodeRay is build to be easy @@ -21,43 +21,60 @@ to use and intuitive, but at the same time fully featured, complete, fast and efficient. +%package doc +Summary: Documentation for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +Documentation for %{name}. + %prep -%setup -q -c -T -%gem_install -n %{SOURCE0} +%setup -q -n %{gem_name}-%{version} %build +gem build ../%{gem_name}-%{version}.gemspec + +%gem_install %install mkdir -p %{buildroot}%{gem_dir} -cp -pa .%{gem_dir}/* \ +cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ mkdir -p %{buildroot}%{_bindir} -cp -pa .%{_bindir}/* \ +cp -a .%{_bindir}/* \ %{buildroot}%{_bindir}/ -rm -rf %{buildroot}/%{gem_libdir}/term find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x -find %{buildroot}/%{gem_instdir}/bin -type f | xargs sed -i 's/\r//' $FILES -%files +%check +pushd .%{gem_instdir} +tar xzvf %{SOURCE1} +LANG=en_US.UTF-8 +ruby ./test/functional/suite.rb +ruby ./test/functional/for_redcloth.rb +popd + +%files +%dir %{gem_instdir} %{_bindir}/coderay -%dir %{gem_instdir}/ -%dir %{gem_libdir} -%dir %{gem_instdir}/test -%{gem_instdir}/test/* +%license %{gem_instdir}/MIT-LICENSE %{gem_instdir}/bin -%{gem_libdir}/[cC]* -%doc %{gem_docdir} -%doc %{gem_instdir}/Rakefile -%doc %{gem_instdir}/README_INDEX.rdoc +%{gem_libdir} %exclude %{gem_cache} %{gem_spec} +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/README_INDEX.rdoc %changelog +* Wed Jul 25 2018 Jun Aruga - 1.1.2-1 +- update to new version + * Sat Jul 14 2018 Fedora Release Engineering - 1.1.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild