[packages/perl-mecab] - new
qboosh
qboosh at pld-linux.org
Sat Nov 24 14:34:28 CET 2012
commit bbf483864b50914821a1ca1a62b23418cfe83351
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Nov 24 14:34:34 2012 +0100
- new
perl-mecab.spec | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
---
diff --git a/perl-mecab.spec b/perl-mecab.spec
new file mode 100644
index 0000000..65aaab4
--- /dev/null
+++ b/perl-mecab.spec
@@ -0,0 +1,58 @@
+#
+# Conditional build:
+%bcond_with tests # perform "make test" (requires mecab dictionary)
+#
+%include /usr/lib/rpm/macros.perl
+Summary: MeCab module for Perl
+Summary(pl.UTF-8): Moduł MeCab dla Perla
+Name: perl-mecab
+Version: 0.994
+Release: 1
+License: GPL v2 or LGPL v2.1 or BSD
+Group: Development/Languages/Perl
+#Source0Download: http://code.google.com/p/mecab/downloads/list
+Source0: http://mecab.googlecode.com/files/mecab-perl-%{version}.tar.gz
+# Source0-md5: 58dba6d959f5a6d78dbc2d145cac26a3
+URL: http://code.google.com/p/mecab/
+BuildRequires: libstdc++-devel
+BuildRequires: mecab-devel
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%{?with_tests:BuildRequires: mecab-ipadic}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+MeCab module for Perl.
+
+%description -l pl.UTF-8
+Moduł MeCab dla Perla.
+
+%prep
+%setup -q -n mecab-perl-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+
+%{__make} \
+ CC="%{__cxx}"
+ OPTIMIZE="%{rpmcxxflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS BSD COPYING README bindings.html
+%{perl_vendorarch}/MeCab.pm
+%dir %{perl_vendorarch}/auto/MeCab
+%{perl_vendorarch}/auto/MeCab/MeCab.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/MeCab/MeCab.so
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-mecab.git/commitdiff/bbf483864b50914821a1ca1a62b23418cfe83351
More information about the pld-cvs-commit
mailing list