# Generated from syntax-1.0.0.gem by gem2rpm -*- rpm-spec -*- %define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']") %define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) %define gemname syntax %define geminstdir %{gemdir}/gems/%{gemname}-%{version} Summary: Syntax is Ruby library for performing simple syntax highlighting Name: rubygem-%{gemname} Version: 1.0.0 Release: 1%{?dist} Group: Development/Languages License: GPLv2+ or Ruby URL: http://127.0.0.1/ Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: rubygems BuildRequires: rubygems BuildArch: noarch Provides: rubygem(%{gemname}) = %{version} %description Syntax is Ruby library for performing simple syntax highlighting. %prep %build %install rm -rf %{buildroot} mkdir -p %{buildroot}%{gemdir} gem install --local --install-dir %{buildroot}%{gemdir} \ --force --rdoc %{SOURCE0} %clean rm -rf %{buildroot} %files %defattr(-, root, root, -) %{gemdir}/gems/%{gemname}-%{version}/ %doc %{gemdir}/doc/%{gemname}-%{version} %{gemdir}/cache/%{gemname}-%{version}.gem %{gemdir}/specifications/%{gemname}-%{version}.gemspec %changelog * Wed Apr 01 2009 Hans Ulrich Niedermann - 1.0.0-1 - Initial package