]>
Commit | Line | Data |
---|---|---|
58df8531 | 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): | |
10 | Name: perl-Apache-Session-Wrapper | |
11 | Version: 0.17 | |
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: c7876bad731c2e407816e2ee434ecb14 | |
18 | BuildRequires: perl-devel >= 1:5.8 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | %if %{with tests} | |
21 | BuildRequires: perl(Apache::Cookie) | |
22 | BuildRequires: perl(Apache::Session) >= 1.6 | |
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 | |
35 | # TODO | |
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}/%{pdir}/*/*.pm | |
60 | %{_mandir}/man3/* |