commit ee0f74d1a935ac5e93e5d8dcbeec49102fb28a3e
Author: Elan Ruusamäe <[email protected]>
Date: Fri Apr 18 03:22:42 2014 +0300
build with gem provides
ruby-pkg-config.spec | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/ruby-pkg-config.spec b/ruby-pkg-config.spec
index 33000ca..1dbf4a6 100644
--- a/ruby-pkg-config.spec
+++ b/ruby-pkg-config.spec
@@ -34,10 +34,15 @@ Moduł pkg-config dla języka Ruby.
%prep
%setup -q -n %{pkgname}-%{version}
+%build
+# write .gemspec
+%__gem_helper spec
+
%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
@@ -47,3 +52,4 @@ rm -rf $RPM_BUILD_ROOT
%doc NEWS README.rdoc
%{ruby_vendorlibdir}/%{pkgname}.rb
%{ruby_vendorlibdir}/%{pkgname}
+%{ruby_specdir}/%{pkgname}-%{version}.gemspec
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-pkg-config.git/commitdiff/ee0f74d1a935ac5e93e5d8dcbeec49102fb28a3e
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit