]> git.pld-linux.org Git - packages/perl-Text-ChaSen.git/blob - perl-Text-ChaSen.spec
- new bconds
[packages/perl-Text-ChaSen.git] / perl-Text-ChaSen.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    Text
7 %define pnam    ChaSen
8 Summary:        Text::ChaSen - ChaSen library module for Perl
9 Summary(pl):    Text::ChaSen - modu³ biblioteki ChaSen dla Perla
10 Name:           perl-%{pdir}-%{pnam}
11 Version:        1.03
12 Release:        2
13 License:        distributable
14 Group:          Development/Languages/Perl
15 Source0:        http://www.daionet.gr.jp/~knok/chasen/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  1f5f8b1c79b815c1bc7d171971f1f4a4
17 #Patch0:                http://www.daionet.gr.jp/~knok/chasen/%%{pnam}.pm-1.03-pod-fix.diff
18 URL:            http://www.daionet.gr.jp/~knok/chasen/
19 BuildRequires:  perl-devel >= 5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 BuildRequires:  chasen-devel
22 Requires:       chasen
23 Obsoletes:      chasen-perl
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Text::ChaSen - ChaSen library module for Perl.
28
29 %description -l pl
30 Text::ChaSen - modu³ biblioteki ChaSen dla Perla.
31
32 %prep
33 %setup -q -n %{pdir}-%{pnam}-%{version}
34
35 %build
36 %{__perl} Makefile.PL \
37         INSTALLDIRS=vendor
38 %{__make} \
39         OPTIMIZE="%{rpmcflags}"
40
41 %{?with_tests:%{__make} test}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45
46 %{__make} install \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc ChangeLog README
55 %{perl_vendorarch}/Text/ChaSen.pm
56 %dir %{perl_vendorarch}/auto/Text/ChaSen
57 %{perl_vendorarch}/auto/Text/ChaSen/ChaSen.bs
58 %attr(755,root,root) %{perl_vendorarch}/auto/Text/ChaSen/ChaSen.so
59 %{_mandir}/man3/*
This page took 0.095662 seconds and 3 git commands to generate.