[packages/ruby-trollop] build noarch, install to vendor dir
glen
glen at pld-linux.org
Sun Apr 28 02:53:57 CEST 2013
commit 5778f0088d8600c1f69c1d1864d1190b7693ece0
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Apr 28 03:53:43 2013 +0300
build noarch, install to vendor dir
ruby-trollop.spec | 24 +++++++++---------------
1 file changed, 9 insertions(+), 15 deletions(-)
---
diff --git a/ruby-trollop.spec b/ruby-trollop.spec
index 645a2a7..623813e 100644
--- a/ruby-trollop.spec
+++ b/ruby-trollop.spec
@@ -2,16 +2,14 @@
Summary: Yet another commandline option parsing library
Name: ruby-%{pkgname}
Version: 1.15
-Release: 2
+Release: 3
License: Ruby
+Group: Development/Languages
Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
# Source0-md5: 359347775ff3166eb13ec80363ad67a1
-Group: Development/Languages
URL: http://trollop.rubyforge.org/
-BuildRequires: rpmbuild(macros) >= 1.484
-BuildRequires: ruby >= 1:1.8.6
-BuildRequires: ruby-modules
-%{?ruby_mod_ver_requires_eq}
+BuildRequires: rpm-rubyprov
+BuildRequires: rpmbuild(macros) >= 1.656
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -43,32 +41,28 @@ ri documentation for %{pkgname}.
Dokumentacji w formacie ri dla %{pkgname}.
%prep
-%setup -q -c
-%{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz
-find -newer README.txt -o -print | xargs touch --reference %{SOURCE0}
+%setup -q -n %{pkgname}-%{version}
%build
rdoc --ri --op ri lib
rdoc --op rdoc lib
-# rm -r ri/NOT_THIS_MODULE_RELATED_DIRS
rm ri/created.rid
+rm ri/cache.ri
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}}
-
-cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_ridir},%{ruby_rdocdir}}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
-
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc *.txt
-%{ruby_rubylibdir}/*.rb
+%{ruby_vendorlibdir}/trollop.rb
%files rdoc
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-trollop.git/commitdiff/5778f0088d8600c1f69c1d1864d1190b7693ece0
More information about the pld-cvs-commit
mailing list