]> git.pld-linux.org Git - packages/perl-Text-Kakasi.git/commitdiff
- tests added, license fixed, cosmetics
authorankry <ankry@pld-linux.org>
Mon, 3 May 2004 18:07:32 +0000 (18:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Text-Kakasi.spec -> 1.10

perl-Text-Kakasi.spec

index b35f6b9902c44f65456eb832b6b7d6d12d46c91e..1687c31cfa2c8b46ebe910db4491725e498fe0c7 100644 (file)
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+#
 %include       /usr/lib/rpm/macros.perl
 Summary:       A KAKASI library module for Perl
 Summary(cs):   Modul s KAKASI knihovnou pro Perl
@@ -17,13 +21,17 @@ Summary(zh_CN):     Perl 
 Name:          perl-Text-Kakasi
 Version:       1.05
 Release:       3
-License:       GPL
+# README says just GPL, but module itself GPL v2+
+License:       GPL v2+
 Group:         Development/Languages/Perl
 Source0:       http://www.daionet.gr.jp/~knok/kakasi/Text-Kakasi-%{version}.tar.gz
 # Source0-md5: 6c50ca6dce1fcc2f01446f6e305571a5
 URL:           http://www.daionet.gr.jp/~knok/kakasi/
 BuildRequires: kakasi-devel >= 2.3.1
 BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: kakasi-dict
+%endif
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -96,10 +104,14 @@ konvertera Kanjitecken till Hiragana, Katakana eller Romaji.
 %build
 %{__perl} Makefile.PL \
        INSTALLDIRS=vendor
-%{__make} OPTIMIZE="%{rpmcflags}"
+%{__make} \
+       OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
This page took 0.090729 seconds and 4 git commands to generate.