From: Elan Ruusamäe Date: Wed, 25 Sep 2013 17:53:54 +0000 (+0300) Subject: up to 3.4.6 X-Git-Tag: auto/th/ruby-slop-3.4.6-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=9a60c56ee4e16567834a887b0825d2d964fc0f3b;p=packages%2Fruby-slop.git up to 3.4.6 --- diff --git a/ruby-slop.spec b/ruby-slop.spec index b4c355e..3fb7532 100644 --- a/ruby-slop.spec +++ b/ruby-slop.spec @@ -5,12 +5,12 @@ %define pkgname slop Summary: Option gathering made easy Name: ruby-%{pkgname} -Version: 3.4.3 +Version: 3.4.6 Release: 1 License: GPL v2+ or Ruby Group: Development/Languages Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem -# Source0-md5: - +# Source0-md5: a7c04794a673c5953a73dd3f0b5bf043 URL: http://github.com/injekt/slop BuildRequires: rpm-rubyprov BuildRequires: rpmbuild(macros) >= 1.656 @@ -37,16 +37,19 @@ Documentation for %{name}. %setup -q -n %{pkgname}-%{version} %build +%__gem_helper spec + %if %{with tests} # if running via testrb, modify the check for invoked testing binary sed -i 's|Usage: rake_test_loader \[options\]|Usage: testrb: SlopTest#test_printing_help_with__help____true [options]|' test/slop_test.rb -testrb test/*_test.rb +testrb -Ilib test/*_test.rb %endif %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{ruby_vendorlibdir} +install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}} cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir} +cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir} %clean rm -rf $RPM_BUILD_ROOT @@ -56,3 +59,4 @@ rm -rf $RPM_BUILD_ROOT %doc README.md CHANGES.md LICENSE %{ruby_vendorlibdir}/slop.rb %{ruby_vendorlibdir}/slop +%{ruby_specdir}/slop-%{version}.gemspec