|
# template: scl
|
|
%{?scl:%scl_package rubygem-%{gem_name}}
|
|
%{!?scl:%global pkg_name %{name}}
|
|
|
|
%global gem_name syntax
|
|
|
|
Name: %{?scl_prefix}rubygem-%{gem_name}
|
|
Version: 1.0.0
|
|
Release: 14%{?dist}
|
|
Summary: Syntax is Ruby library for performing simple syntax highlighting
|
|
Group: Development/Languages
|
|
License: FIXME
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
# start specfile generated dependencies
|
|
Requires: %{?scl_prefix_ruby}ruby(release)
|
|
Requires: %{?scl_prefix_ruby}ruby
|
|
Requires: %{?scl_prefix_ruby}ruby(rubygems)
|
|
BuildRequires: %{?scl_prefix_ruby}ruby(release)
|
|
BuildRequires: %{?scl_prefix_ruby}ruby
|
|
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
|
|
BuildArch: noarch
|
|
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
|
# end specfile generated dependencies
|
|
|
|
%description
|
|
Syntax is Ruby library for performing simple syntax highlighting.
|
|
|
|
|
|
%package doc
|
|
Summary: Documentation for %{pkg_name}
|
|
Group: Documentation
|
|
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
Documentation for %{pkg_name}.
|
|
|
|
%prep
|
|
%{?scl:scl enable %{scl} - << \EOF}
|
|
gem unpack %{SOURCE0}
|
|
%{?scl:EOF}
|
|
|
|
%setup -q -D -T -n %{gem_name}-%{version}
|
|
|
|
%{?scl:scl enable %{scl} - << \EOF}
|
|
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
%{?scl:EOF}
|
|
|
|
%build
|
|
# Create the gem as gem install only works on a gem file
|
|
%{?scl:scl enable %{scl} - << \EOF}
|
|
gem build %{gem_name}.gemspec
|
|
%{?scl:EOF}
|
|
|
|
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
|
|
# by default, so that we can move it into the buildroot in %%install
|
|
%{?scl:scl enable %{scl} - << \EOF}
|
|
%gem_install
|
|
%{?scl:EOF}
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
cp -a .%{gem_dir}/* \
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
%files
|
|
%dir %{gem_instdir}
|
|
%{gem_instdir}/data
|
|
%{gem_libdir}
|
|
%exclude %{gem_cache}
|
|
%{gem_spec}
|
|
|
|
%files doc
|
|
%doc %{gem_docdir}
|
|
%{gem_instdir}/test
|
|
|
|
%changelog
|
|
* Wed Apr 08 2020 Zach Huntington-Meath <zhunting@redhat.com> - 1.0.0-14
|
|
- Bump release to build for el8
|
|
|
|
* Wed Sep 05 2018 Eric D. Helms <ericdhelms@gmail.com> - 1.0.0-13
|
|
- Rebuild for Rails 5.2 and Ruby 2.5
|
|
|
|
* Fri Jan 05 2018 Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> 1.0.0-12
|
|
- Final set of rebuilds (ericdhelms@gmail.com)
|
|
- Switch to using gem_install macro (ericdhelms@gmail.com)
|
|
|
|
* Tue Dec 22 2015 Dominic Cleal <dcleal@redhat.com> 1.0.0-11
|
|
- Fix build errors and modernise specs (dcleal@redhat.com)
|
|
- Replace ruby(abi) for ruby22 rebuild (dcleal@redhat.com)
|
|
|
|
* Tue Aug 25 2015 Dominic Cleal <dcleal@redhat.com> 1.0.0-10
|
|
- Converted to tfm SCL (dcleal@redhat.com)
|
|
|
|
* Fri Mar 15 2013 Lukas Zapletal <lzap+git@redhat.com> 1.0.0-8
|
|
- new package built with tito
|
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-7
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Tue Jan 31 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.0.0-6
|
|
- Rebuilt for Ruby 1.9.3.
|
|
- Introduced %%check section.
|
|
- Added patch for Ruby 1.9.3 tests.
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Mon Jul 06 2009 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 1.0.0-2
|
|
- Bring tests back
|
|
- Depend on ruby(abi)
|
|
- Replace defines with globals
|
|
|
|
* Fri Jul 03 2009 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - 1.0.0-1
|
|
- Package generated by gem2rpm
|
|
- Don't ship tests
|
|
- Fix up License
|