%global gem_name treetop Name: rubygem-%{gem_name} Version: 1.6.10 Release: 3%{?dist} Summary: A Ruby-based text parsing and interpretation DSL License: MIT URL: https://github.com/cjheath/treetop Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # git clone https://github.com/cjheath/treetop.git && cd treetop # git archive -v -o treetop-1.6.10-specs.tar.gz 725eb7f9e5e80105f3b39424b40ad014addd9035 spec/ Source1: %{gem_name}-%{version}-specs.tar.gz BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildRequires: rubygem(activesupport) BuildRequires: rubygem(polyglot) BuildRequires: rubygem(rr) BuildRequires: rubygem(rspec) BuildArch: noarch %description A Parsing Expression Grammar (PEG) Parser generator DSL for Ruby. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} -b 1 %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%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 %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ mkdir -p %{buildroot}%{_bindir} cp -a .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x mkdir -p %{buildroot}%{_mandir}/man1 mv %{buildroot}%{gem_instdir}/doc/tt.1 %{buildroot}%{_mandir}/man1 %check pushd .%{gem_instdir} ln -s %{_builddir}/spec spec rspec spec popd %files %dir %{gem_instdir} %{_bindir}/tt %license %{gem_instdir}/LICENSE %{gem_instdir}/bin %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %doc %{_mandir}/man1/* %files doc %doc %{gem_docdir} %{gem_instdir}/Gemfile %doc %{gem_instdir}/History.txt %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile # TextMate Bundle? Really? # https://github.com/cjheath/treetop/pull/34 %exclude %{gem_instdir}/Treetop.tmbundle %doc %{gem_instdir}/doc %{gem_instdir}/examples %{gem_instdir}/treetop.gemspec %changelog * Thu Jan 30 2020 Fedora Release Engineering - 1.6.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.6.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Jun 25 2019 Vít Ondruch - 1.6.10-1 - Update to Treetop 1.6.10. * Sat Feb 02 2019 Fedora Release Engineering - 1.6.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 1.6.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 1.6.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.6.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.6.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.6.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jul 09 2015 Vít Ondruch - 1.6.3-1 - Update to Treetop 1.6.3. * Fri Jun 19 2015 Fedora Release Engineering - 1.4.14-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 1.4.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Aug 16 2013 Vít Ondruch - 1.4.14-1 - Update to Treetop 1.4.14. * Sun Aug 04 2013 Fedora Release Engineering - 1.4.12-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Mar 05 2013 Vít Ondruch - 1.4.12-3 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 * Thu Feb 14 2013 Fedora Release Engineering - 1.4.12-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Nov 13 2012 Mo Morsi - 1.4.12-1 - Update to treetop 1.4.12. * Mon Oct 29 2012 Vít Ondruch - 1.4.11-1 - Update to treetop 1.4.11. * Sat Jul 21 2012 Fedora Release Engineering - 1.4.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Jan 30 2012 Bohuslav Kabrda - 1.4.10-2 - Rebuilt for Ruby 1.9.3. * Sun Jan 08 2012 - 1.4.10-1 - Rebuilt and fix bz#716045 * Wed Feb 09 2011 Fedora Release Engineering - 1.4.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Jan 10 2011 Mohammed Morsi - 1.4.9-1 - Updated to latest upstream release * Fri Jul 31 2009 Lubomir Rintel (Good Data) - 1.3.0-1 - Update to new upstream version - Mark more documentation files as such * Fri Jun 26 2009 Lubomir Rintel (Good Data) - 1.2.5-3 - Get rid of duplicate files (thanks to Mamoru Tasaka) * Mon Jun 08 2009 Lubomir Rintel (Good Data) - 1.2.5-2 - Fix up documentation list - Use gem_instdir macro where appropriate - Do not move examples around - Depend on ruby(abi) - Replace defines with globals * Fri Jun 05 2009 Lubomir Rintel (Good Data) - 1.2.5-1 - Package generated by gem2rpm - Move examples into documentation - Remove empty files - Fix file permissions - Fix up License