[packages/ruby-mecab] build to vendor dir

glen glen at pld-linux.org
Sat Sep 14 18:21:29 CEST 2013


commit 85d0a08cdbe65f04d0505c5b67d424a0fb80f7fd
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Sep 14 19:21:23 2013 +0300

    build to vendor dir

 ruby-mecab.spec | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/ruby-mecab.spec b/ruby-mecab.spec
index 62320a9..a0874fc 100644
--- a/ruby-mecab.spec
+++ b/ruby-mecab.spec
@@ -2,18 +2,18 @@ Summary:	MeCab module for Ruby
 Summary(pl.UTF-8):	Moduł MeCab dla języka Ruby
 Name:		ruby-mecab
 Version:	0.996
-Release:	1
+Release:	2
 License:	GPL v2 or LGPL v2.1 or BSD
 Group:		Development/Languages
-#Source0Download: http://code.google.com/p/mecab/downloads/list
+# Source0Download: http://code.google.com/p/mecab/downloads/list
 Source0:	http://mecab.googlecode.com/files/mecab-ruby-%{version}.tar.gz
 # Source0-md5:	d72937048a8aeb3ae8da69139a959210
 URL:		http://code.google.com/p/mecab/
 BuildRequires:	libstdc++-devel
 BuildRequires:	mecab-devel >= 0.996
-BuildRequires:	rpmbuild(macros) >= 1.484
+BuildRequires:	rpm-rubyprov
+BuildRequires:	rpmbuild(macros) >= 1.665
 BuildRequires:	ruby-devel >= 1:1.8.6
-%{?ruby_mod_ver_requires_eq}
 Requires:	mecab >= 0.996
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -27,7 +27,8 @@ Moduł MeCab dla języka Ruby.
 %setup -q -n mecab-ruby-%{version}
 
 %build
-%{__ruby} extconf.rb
+%{__ruby} extconf.rb \
+	--vendor
 
 %{__make} \
 	V=1 \
@@ -37,7 +38,6 @@ Moduł MeCab dla języka Ruby.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
@@ -47,4 +47,4 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS BSD COPYING README bindings.html
-%attr(755,root,root) %{ruby_sitearchdir}/MeCab.so
+%attr(755,root,root) %{ruby_vendorarchdir}/MeCab.so
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-mecab.git/commitdiff/85d0a08cdbe65f04d0505c5b67d424a0fb80f7fd



More information about the pld-cvs-commit mailing list