summaryrefslogtreecommitdiff
path: root/perl-Apache-Cookie-Encrypted.spec
blob: 22579d10d59971ace81dd79736c01a1aedd1ca08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#
# Conditional build:
%bcond_without	tests	# do not perform "make test"
#
%include	/usr/lib/rpm/macros.perl
%define		pdir	Apache
%define		pnam	CookieEncrypted
Summary:	Apache::Cookie::Encrypted - encrypted HTTP cookies class
Summary(pl):	Apache::Cookie::Encrypted - klasa szyfrowanych ,,cookie'' HTTP
Name:		perl-Apache-Cookie-Encrypted
Version:	0.03
Release:	5
# same as Apache::Cookie or perl
License:	GPL v1+ or Artistic or Apache Software License 1.1
Group:		Development/Languages/Perl
Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}%{pnam}-%{version}.tar.gz
# Source0-md5:	d8dac472f79ccfc33418423137f1d4bb
BuildRequires:	perl-devel >= 1:5.8.0
BuildRequires:	perl-Crypt-Blowfish >= 2.06
BuildRequires:	perl-Crypt-CBC >= 1.25
BuildRequires:	perl-libapreq >= 0.01
BuildRequires:	rpm-perlprov >= 4.1-13
Requires:	perl(Crypt::Blowfish) >= 2.06
Requires:	perl(Crypt::CBC)      >= 1.25
Requires:	perl(Apache::Cookie)  >= 0.01
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Apache::Cookie::Encrypted is a subclass of Apache::Cookie. It takes
the value you put in to the cookie and automaticaly encrypts it. It
automaticaly decrypts it when the value is retrieved. Other than that
it behaves just like Apache::Cookie.

%description -l pl
Apache::Cookie::Encrypted jest podklasą Apache::Cookie. Każda wartość,
zapisywana w ,,cookie'' jest automatycznie szyfrowana przy wysyłaniu i
rezszyfrowywana po otrzymaniu; poza tym moduł zachowuje się tak samo,
jak Apache::Cookie.

%prep
%setup -q -n %{pdir}%{pnam}-%{version}

%build
echo '!' | perl Makefile.PL \
	INSTALLDIRS=vendor
%{__make}

%{?with_tests:%{__make} test}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc Changes README
%dir %{perl_vendorlib}/Apache/Cookie
%{perl_vendorlib}/Apache/Cookie/Encrypted.pm
%{_mandir}/man3/*