- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-HTTP-MultiPartParser.git] / perl-HTTP-MultiPartParser.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    HTTP
6 %define         pnam    MultiPartParser
7 Summary:        HTTP::MultiPartParser - HTTP MultiPart Parser
8 #Summary(pl.UTF-8):     
9 Name:           perl-HTTP-MultiPartParser
10 Version:        0.02
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/HTTP/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  1b07ebac54ce3288c044a23ba60196d2
17 URL:            http://search.cpan.org/dist/HTTP-MultiPartParser/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-Test-Deep
22 %endif
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 This class provides a low-level API for processing MultiPart MIME data streams 
28 conforming to MultiPart types as defined in RFC 2616.
29
30 %prep
31 %setup -q -n %{pdir}-%{pnam}-%{version}
32
33 %build
34 %{__perl} Makefile.PL \
35         INSTALLDIRS=vendor
36 %{__make}
37
38 %{?with_tests:%{__make} test}
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42
43 %{__make} pure_install \
44         DESTDIR=$RPM_BUILD_ROOT
45
46 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
47 cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc Changes README
55 %{perl_vendorlib}/HTTP/*.pm
56 %{perl_vendorlib}/HTTP/MultiPartParser.pod
57 %{_mandir}/man3/HTTP::MultiPartParser.3*
58 %{_examplesdir}/%{name}-%{version}
This page took 0.311974 seconds and 4 git commands to generate.