]> git.pld-linux.org Git - packages/perl-Text-Quoted.git/blob - perl-Text-Quoted.spec
32f64570d65ecf09a06ef4df0a87368444ecf85b
[packages/perl-Text-Quoted.git] / perl-Text-Quoted.spec
1 #
2 # Conditional build:
3 # _without_tests - do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    Text
7 %define pnam    Quoted
8 Summary:        Text::Quoted - extract the structure of a quoted mail message
9 Summary(pl):    Text::Quoted - wydzielenie struktury cytowanej wiadomo¶ci pocztowej
10 Name:           perl-Text-Quoted
11 Version:        1.2
12 Release:        1
13 # same as perl
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  cec22ff657590d1e3dbf89ad17f3f94a
18 BuildRequires:  perl-devel >= 5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 Text::Quoted Perl module examines the structure of some text which may
25 contain multiple different levels of quoting, and turns the text into
26 a nested data structure.
27
28 %description -l pl
29 Modu³ Perla Text::Quoted analizuje strukturê pewnego tekstu, który
30 mo¿e zawieraæ wiele ró¿nych poziomów cytowania i przekszta³ca tekst w
31 zagnie¿d¿on± strukturê danych.
32
33 %prep
34 %setup -q -n %{pdir}-%{pnam}-%{version}
35
36 %build
37 find -type f | xargs perl -pi -e 's,/usr/local,/usr,g'
38 %{__perl} Makefile.PL \
39         INSTALLDIRS=vendor
40 %{__make}
41
42 %{!?_without_tests:%{__make} test}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 %{__make} install DESTDIR=$RPM_BUILD_ROOT
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc Changes
55 %{perl_vendorlib}/Text/Quoted.pm
56 %{_mandir}/man3/*
This page took 0.056932 seconds and 3 git commands to generate.