]> git.pld-linux.org Git - packages/perl-Apache-Session-Wrapper.git/blob - perl-Apache-Session-Wrapper.spec
- spaces->tabs
[packages/perl-Apache-Session-Wrapper.git] / perl-Apache-Session-Wrapper.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    Apache
7 %define         pnam    Session-Wrapper
8 Summary:        Apache::Session::Wrapper - A simple wrapper around Apache::Session
9 Summary(pl):    Apache::Session::Wrapper - prosty wrapper na Apache::Session
10 Name:           perl-Apache-Session-Wrapper
11 Version:        0.17
12 Release:        2
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:  c7876bad731c2e407816e2ee434ecb14
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-Apache-Session >= 1.6
22 BuildRequires:  perl-Class-Container
23 BuildRequires:  perl-Exception-Class
24 BuildRequires:  perl-Params-Validate >= 0.7
25 %endif
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 This module is a simple wrapper around Apache::Session which provides
31 some methods to simplify getting and setting the session id.
32
33 %description -l pl
34 Ten modu³ jest prostym wrapperem na Apache::Session dostarczaj±cym
35 metody upraszczaj±ce uzyskiwanie i ustawianie identyfikatorów sesji.
36
37 %prep
38 %setup -q -n %{pdir}-%{pnam}-%{version}
39
40 %build
41 %{__perl} Build.PL \
42         destdir=$RPM_BUILD_ROOT \
43         installdirs=vendor
44 ./Build
45
46 %{?with_tests:./Build test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 ./Build install
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc Changes README
59 %{perl_vendorlib}/Apache/*/*.pm
60 %{_mandir}/man3/*
This page took 0.110311 seconds and 3 git commands to generate.