summaryrefslogtreecommitdiff
path: root/python-ClientCookie.spec
blob: 095033c436564f38b1853644d495a881305f18d1 (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
%define 	module ClientCookie

Summary:	Python module for handling HTTP cookies on the client side
Summary(pl):	Moduł Pythona obsługi ciasteczek (cookies) po stronie klienta
Name:		python-%{module}
Version:	0.9.3a
Release:	1
License:	BSD
Group:		Development/Languages/Python
Source0:	http://wwwsearch.sourceforge.net/%{module}/src/%{module}-%{version}.tar.gz
# Source0-md5:	5ccfe81880662e7a8911fd85b95b95e4
URL:		http://wwwsearch.sourceforge.net/ClientCookie/
Requires:	python-modules >= 2.1
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
ClientCookie is a Python module for handling HTTP cookies on the
client side, useful for accessing web sites that require cookies to be
set and then returned later. It also provides some other (optional)
useful stuff: HTTP-EQUIV and Refresh handling, automatic adding of the
Referer [sic] header and lazily-seek()able responses. These extras are
implemented using an extension that makes it easier to add new
functionality to urllib2. It has developed from a port of Gisle Aas'
Perl module HTTP::Cookies, from the libwww-perl library.

%description -l pl
ClientCookie to moduł Pythona obsługujący ciasteczka (cookies) po
stronie klienta, ułatwia dostęp do stron korzystających z ciasteczek z
poziomu skryptów. Dodatkowo dostarcza obsługę dla HTTP-EQUIV i
Refresh, automatyczne dodawanie nagłówka Referer i możliwość
seek()owania odpowiedzi. Te dodatki są udostępnione przez
rozszerzenie ułatwiające dodawanie nowych funkcji do urllib2.
ClientCookie zostało stworzone na wzór modułu HTTP::Cookies dla Perla
pochodzącego z biblioteki libwww-perl.

%prep
%setup -q -n %{module}-%{version}

%build
python setup.py build

%install
rm -rf $RPM_BUILD_ROOT

python setup.py install \
	--root=$RPM_BUILD_ROOT \
	--optimize=2

rm $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/*.py

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc COPYING ChangeLog GeneralFAQ.html INSTALL README.html doc.html
%dir %{py_sitescriptdir}/%{module}
%{py_sitescriptdir}/%{module}/*.py[co]