2016-08-23 19:44:14 +00:00
|
|
|
%global gem_name rouge
|
|
|
|
|
2018-06-04 14:13:17 +00:00
|
|
|
Name: rubygem-%{gem_name}
|
2018-08-17 11:30:53 +00:00
|
|
|
Version: 3.2.1
|
2018-08-02 21:23:36 +00:00
|
|
|
Release: 1%{?dist}
|
2018-06-04 14:13:17 +00:00
|
|
|
Summary: Pure-ruby colorizer based on pygments
|
|
|
|
License: MIT and BSD
|
2016-08-23 19:44:14 +00:00
|
|
|
|
2018-06-04 14:13:17 +00:00
|
|
|
URL: http://rouge.jneen.net/
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
2016-08-23 19:44:14 +00:00
|
|
|
|
2018-06-04 14:13:17 +00:00
|
|
|
BuildRequires: ruby(release)
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: ruby >= 2.0
|
|
|
|
|
|
|
|
BuildRequires: help2man
|
|
|
|
|
|
|
|
BuildArch: noarch
|
2016-08-23 19:44:14 +00:00
|
|
|
|
|
|
|
%description
|
2018-06-04 14:13:17 +00:00
|
|
|
Rouge aims to a be a simple, easy-to-extend drop-in replacement for pygments.
|
2016-08-23 19:44:14 +00:00
|
|
|
|
|
|
|
|
2018-06-04 14:13:17 +00:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
2016-08-23 19:44:14 +00:00
|
|
|
|
2018-06-04 14:13:17 +00:00
|
|
|
%description doc
|
|
|
|
Documentation for %{name}.
|
2016-08-23 19:44:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2018-06-04 14:13:17 +00:00
|
|
|
%setup -q -n %{gem_name}-%{version}
|
2016-08-23 19:44:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2018-06-04 14:13:17 +00:00
|
|
|
gem build ../%{gem_name}-%{version}.gemspec
|
|
|
|
|
2016-08-23 19:44:14 +00:00
|
|
|
%gem_install
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
2018-06-04 14:13:17 +00:00
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
cp -pa .%{_bindir}/* %{buildroot}%{_bindir}/
|
|
|
|
|
|
|
|
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
|
|
|
|
|
|
|
|
|
|
|
# Generate man page from "rougify --help" output
|
2016-08-23 19:44:14 +00:00
|
|
|
export GEM_PATH="%{buildroot}%{gem_dir}:%{gem_dir}"
|
2018-06-04 14:13:17 +00:00
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
|
|
|
|
|
help2man -N -s1 -o %{buildroot}%{_mandir}/man1/rougify.1 \
|
|
|
|
%{buildroot}%{_bindir}/rougify
|
2016-08-23 19:44:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
2018-06-04 14:13:17 +00:00
|
|
|
%license %{gem_instdir}/LICENSE
|
|
|
|
|
2016-08-23 19:44:14 +00:00
|
|
|
%{_bindir}/rougify
|
2018-06-04 14:13:17 +00:00
|
|
|
|
2016-08-23 19:44:14 +00:00
|
|
|
%{_mandir}/man1/rougify.1*
|
2018-06-04 14:13:17 +00:00
|
|
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%{gem_instdir}/bin
|
|
|
|
%exclude %{gem_instdir}/rouge.gemspec
|
|
|
|
|
|
|
|
%{gem_libdir}
|
|
|
|
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
|
2016-08-23 19:44:14 +00:00
|
|
|
%{gem_spec}
|
|
|
|
|
2018-06-04 14:13:17 +00:00
|
|
|
|
2016-08-23 19:44:14 +00:00
|
|
|
%files doc
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
2018-06-04 14:13:17 +00:00
|
|
|
%{gem_instdir}/Gemfile
|
|
|
|
|
2016-08-23 19:44:14 +00:00
|
|
|
|
|
|
|
%changelog
|
2018-08-17 11:30:53 +00:00
|
|
|
* Fri Aug 17 2018 Fabio Valentini <decathorpe@gmail.com> - 3.2.1-1
|
|
|
|
- Update to version 3.2.1.
|
|
|
|
|
2018-08-02 21:23:36 +00:00
|
|
|
* Thu Aug 02 2018 Fabio Valentini <decathorpe@gmail.com> - 3.2.0-1
|
|
|
|
- Update to version 3.2.0.
|
|
|
|
|
2018-07-14 04:42:48 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-04 14:13:17 +00:00
|
|
|
* Mon Jun 04 2018 Fabio Valentini <decathorpe@gmail.com> - 3.1.1-1
|
|
|
|
- Update to version 3.1.1.
|
|
|
|
|
2018-02-09 14:46:47 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-07-27 17:43:52 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-11 12:44:04 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-08-23 19:44:14 +00:00
|
|
|
* Tue Aug 23 2016 Björn Esser <fedora@besser82.io> - 1.11.1-1
|
|
|
|
- initial import (#1368850)
|
|
|
|
|
|
|
|
* Sun Aug 21 2016 Björn Esser <fedora@besser82.io> - 1.11.1-0.1
|
|
|
|
- initial rpm-release (#1368850)
|
2018-06-04 14:13:17 +00:00
|
|
|
|