[packages/ruby-pkg-config] recreate spec using gem2rpm; noarch and vendir dirs now
glen
glen at pld-linux.org
Fri Apr 18 02:22:53 CEST 2014
commit 611edcc51883381fa913b7871a13642911dd67f7
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Apr 18 03:21:31 2014 +0300
recreate spec using gem2rpm; noarch and vendir dirs now
ruby-pkg-config.spec | 36 ++++++++++++++++++++++--------------
1 file changed, 22 insertions(+), 14 deletions(-)
---
diff --git a/ruby-pkg-config.spec b/ruby-pkg-config.spec
index c7720e4..33000ca 100644
--- a/ruby-pkg-config.spec
+++ b/ruby-pkg-config.spec
@@ -1,19 +1,28 @@
+#
+# Conditional build:
+%bcond_with tests # build without tests
+
+%define pkgname pkg-config
Summary: pkg-config module for Ruby
Summary(pl.UTF-8): Moduł pkg-config dla języka Ruby
-Name: ruby-pkg-config
+Name: ruby-%{pkgname}
Version: 1.1.5
Release: 1
License: LGPL v2.1+
Group: Development/Languages
-#Source0Download: http://rubyforge.org/frs/?group_id=3443
-Source0: https://github.com/ruby-gnome2/pkg-config/archive/%{version}/pkg-config-%{version}.tar.gz
-# Source0-md5: c9e4f92576a8ed08d26807059dbef862
+Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
+# Source0-md5: c32204c8d6f0d1cae84f6c67b3e0fd92
URL: https://github.com/ruby-gnome2/pkg-config
BuildRequires: pkgconfig
-BuildRequires: rpmbuild(macros) >= 1.277
-BuildRequires: ruby-devel >= 1:1.8
-Requires: ruby >= 1:1.8
-%{?ruby_mod_ver_requires_eq}
+BuildRequires: rpm-rubyprov
+BuildRequires: rpmbuild(macros) >= 1.656
+%if %{with tests}
+BuildRequires: ruby-bundler
+BuildRequires: ruby-rake
+BuildRequires: ruby-test-unit
+BuildRequires: ruby-test-unit-notify
+%endif
+BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -23,13 +32,12 @@ pkg-config module for Ruby.
Moduł pkg-config dla języka Ruby.
%prep
-%setup -q -n pkg-config-%{version}
+%setup -q -n %{pkgname}-%{version}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{ruby_rubylibdir}
-
-cp -pr lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
+install -d $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -37,5 +45,5 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc NEWS README.rdoc
-%{ruby_rubylibdir}/pkg-config.rb
-%{ruby_rubylibdir}/pkg-config
+%{ruby_vendorlibdir}/%{pkgname}.rb
+%{ruby_vendorlibdir}/%{pkgname}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-pkg-config.git/commitdiff/ee0f74d1a935ac5e93e5d8dcbeec49102fb28a3e
More information about the pld-cvs-commit
mailing list