]> git.pld-linux.org Git - packages/perl-Apache-Session-Wrapper.git/blob - perl-Apache-Session-Wrapper.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Apache-Session-Wrapper.git] / perl-Apache-Session-Wrapper.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # perform "make test" (requires webserver package via Apache::TestRunPerl)
4 #
5 %define         pdir    Apache
6 %define         pnam    Session-Wrapper
7 Summary:        Apache::Session::Wrapper - A simple wrapper around Apache::Session
8 Summary(pl.UTF-8):      Apache::Session::Wrapper - prosty wrapper na Apache::Session
9 Name:           perl-Apache-Session-Wrapper
10 Version:        0.34
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/Apache/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  3580d0a48786a987c0b1101b25f4f624
17 URL:            http://search.cpan.org/dist/Apache-Session-Wrapper/
18 BuildRequires:  perl-Module-Build
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 %if %{with tests}
22 BuildRequires:  perl-Apache-Session >= 1:1.81
23 BuildRequires:  perl-Class-Container
24 BuildRequires:  perl-Exception-Class
25 BuildRequires:  perl-Params-Validate >= 0.7
26 %endif
27 BuildArch:      noarch
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 This module is a simple wrapper around Apache::Session which provides
32 some methods to simplify getting and setting the session id.
33
34 %description -l pl.UTF-8
35 Ten moduł jest prostym wrapperem na Apache::Session dostarczającym
36 metody upraszczające uzyskiwanie i ustawianie identyfikatorów sesji.
37
38 %prep
39 %setup -q -n %{pdir}-%{pnam}-%{version}
40
41 %build
42 %{__perl} Build.PL \
43         destdir=$RPM_BUILD_ROOT \
44         installdirs=vendor
45 ./Build
46
47 %{?with_tests:./Build test}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 ./Build install
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc Changes README
60 %{perl_vendorlib}/Apache/*/*.pm
61 %{_mandir}/man3/*
This page took 0.134919 seconds and 4 git commands to generate.