update to version 3.1.1
This commit is contained in:
parent
1b09fd89c9
commit
215eb14f06
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,4 +1,2 @@
|
|||||||
*~
|
rouge-1.11.1.gem
|
||||||
*.gem
|
rouge-3.1.1.gem
|
||||||
*.rpm
|
|
||||||
results_*/
|
|
||||||
|
@ -1,78 +1,93 @@
|
|||||||
%global gem_name rouge
|
%global gem_name rouge
|
||||||
|
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 1.11.1
|
Version: 3.1.1
|
||||||
Release: 4%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Simple, easy-to-extend drop-in replacement for pygments
|
Summary: Pure-ruby colorizer based on pygments
|
||||||
|
|
||||||
License: MIT and BSD
|
License: MIT and BSD
|
||||||
URL: http://%{gem_name}.jneen.net
|
|
||||||
Source0: https://rubygems.org/downloads/%{gem_name}-%{version}.gem
|
URL: http://rouge.jneen.net/
|
||||||
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
|
|
||||||
|
BuildRequires: ruby(release)
|
||||||
|
BuildRequires: rubygems-devel
|
||||||
|
BuildRequires: ruby >= 2.0
|
||||||
|
|
||||||
|
BuildRequires: help2man
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: help2man
|
|
||||||
BuildRequires: rubygems-devel
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Rouge is a pure-ruby syntax highlighter. It can highlight 100
|
Rouge aims to a be a simple, easy-to-extend drop-in replacement for pygments.
|
||||||
different languages, and output HTML or ANSI 256-color text.
|
|
||||||
Its HTML output is compatible with style-sheets designed for pygments.
|
|
||||||
|
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation files for %{name}
|
Summary: Documentation for %{name}
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
This package contains the documentation files for %{name}.
|
Documentation for %{name}.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%{__rm} -rf %{gem_name}-%{version}
|
%setup -q -n %{gem_name}-%{version}
|
||||||
%{_bindir}/gem unpack %{SOURCE0}
|
|
||||||
%setup -DTqn %{gem_name}-%{version}
|
|
||||||
%{_bindir}/gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
||||||
f="bin/rougify"
|
|
||||||
%{__sed} -e '1s:^#![ \t]*%{_bindir}/env ruby:#!%{_bindir}/ruby:' \
|
|
||||||
< ${f} > ${f}.new && \
|
|
||||||
/bin/touch -r ${f} ${f}.new && %{__mv} -f ${f}.new ${f}
|
|
||||||
f="lib/rouge/demos/perl"
|
|
||||||
%{__sed} -e '1s:^#![ \t]*%{_bindir}/env perl:#!%{__perl}:' \
|
|
||||||
< ${f} > ${f}.new && \
|
|
||||||
/bin/touch -r ${f} ${f}.new && %{__mv} -f ${f}.new ${f} && \
|
|
||||||
%{__chmod} -c 0755 ${f}
|
|
||||||
/bin/find lib/rouge/lexers/ -name '*.rb' -type f -print0 | \
|
|
||||||
%{_bindir}/xargs -0 %{__chmod} -c 0644
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{_bindir}/gem build %{gem_name}.gemspec
|
gem build ../%{gem_name}-%{version}.gemspec
|
||||||
|
|
||||||
%gem_install
|
%gem_install
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__mkdir} -p %{buildroot}%{_bindir} %{buildroot}%{gem_dir} \
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
%{buildroot}%{_mandir}/man1
|
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
|
||||||
%{__cp} -a ./%{_bindir}/* %{buildroot}%{_bindir}
|
|
||||||
%{__cp} -a ./%{gem_dir}/* %{buildroot}%{gem_dir}
|
|
||||||
%{__rm} -f %{buildroot}%{gem_instdir}/{*.gemspec,LICENSE}
|
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
|
||||||
export GEM_PATH="%{buildroot}%{gem_dir}:%{gem_dir}"
|
export GEM_PATH="%{buildroot}%{gem_dir}:%{gem_dir}"
|
||||||
%{_bindir}/help2man -N -s1 -o %{buildroot}%{_mandir}/man1/rougify.1 \
|
|
||||||
|
mkdir -p %{buildroot}%{_mandir}/man1
|
||||||
|
|
||||||
|
help2man -N -s1 -o %{buildroot}%{_mandir}/man1/rougify.1 \
|
||||||
%{buildroot}%{_bindir}/rougify
|
%{buildroot}%{_bindir}/rougify
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%exclude %{gem_cache}
|
%license %{gem_instdir}/LICENSE
|
||||||
%license LICENSE
|
|
||||||
%{_bindir}/rougify
|
%{_bindir}/rougify
|
||||||
|
|
||||||
%{_mandir}/man1/rougify.1*
|
%{_mandir}/man1/rougify.1*
|
||||||
%{gem_instdir}
|
|
||||||
|
%dir %{gem_instdir}
|
||||||
|
%{gem_instdir}/bin
|
||||||
|
%exclude %{gem_instdir}/rouge.gemspec
|
||||||
|
|
||||||
|
%{gem_libdir}
|
||||||
|
|
||||||
|
%exclude %{gem_cache}
|
||||||
|
|
||||||
%{gem_spec}
|
%{gem_spec}
|
||||||
|
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%doc %{gem_docdir}
|
%doc %{gem_docdir}
|
||||||
|
|
||||||
|
%{gem_instdir}/Gemfile
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 04 2018 Fabio Valentini <decathorpe@gmail.com> - 3.1.1-1
|
||||||
|
- Update to version 3.1.1.
|
||||||
|
|
||||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.1-4
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.1-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
@ -87,3 +102,4 @@ export GEM_PATH="%{buildroot}%{gem_dir}:%{gem_dir}"
|
|||||||
|
|
||||||
* Sun Aug 21 2016 Björn Esser <fedora@besser82.io> - 1.11.1-0.1
|
* Sun Aug 21 2016 Björn Esser <fedora@besser82.io> - 1.11.1-0.1
|
||||||
- initial rpm-release (#1368850)
|
- initial rpm-release (#1368850)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user