[packages/ruby-mime-types] build gem requires/provides
glen
glen at pld-linux.org
Sun Jun 23 15:03:49 CEST 2013
commit 38101ef093c99c9e015c7bb2448eff9b5a467d2a
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Jun 23 16:03:09 2013 +0300
build gem requires/provides
ruby-mime-types.spec | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/ruby-mime-types.spec b/ruby-mime-types.spec
index 6d86f2f..a83d1a4 100644
--- a/ruby-mime-types.spec
+++ b/ruby-mime-types.spec
@@ -4,14 +4,14 @@ Summary(hu.UTF-8): MIME::Types Rubyhoz
Summary(pl.UTF-8): MIME::Types dla języka Ruby
Name: ruby-%{pkgname}
Version: 1.23
-Release: 1
+Release: 2
License: MIT, Artistic or GPL v2+
Group: Development/Languages
Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
# Source0-md5: 26b9ebe2f50e7ed6348475f7c520cfaf
URL: http://mime-types.rubyforge.org/
BuildRequires: rpm-rubyprov
-BuildRequires: rpmbuild(macros) >= 1.656
+BuildRequires: rpmbuild(macros) >= 1.665
%if %(locale -a | grep -q '^en_US$'; echo $?)
BuildRequires: glibc-localedb-all
%endif
@@ -58,6 +58,8 @@ Dokumentacji w formacie ri dla %{pkgname}.
%setup -q -n %{pkgname}-%{version}
%build
+%__gem_helper spec
+
# rdoc fails if not UTF-8 locale
export LC_ALL=en_US.UTF-8
rdoc --op rdoc lib
@@ -68,19 +70,25 @@ rm ri/cache.ri
%install
rm -rf $RPM_BUILD_ROOT
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}
+install -d $RPM_BUILD_ROOT%{ruby_specdir}
+cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
+%doc README.rdoc History.rdoc Licence.rdoc
%dir %{ruby_vendorlibdir}/mime
%{ruby_vendorlibdir}/mime-types.rb
%{ruby_vendorlibdir}/mime/types.rb
%{ruby_vendorlibdir}/mime/types
+%{ruby_specdir}/%{pkgname}-%{version}.gemspec
%files rdoc
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-mime-types.git/commitdiff/38101ef093c99c9e015c7bb2448eff9b5a467d2a
More information about the pld-cvs-commit
mailing list