]> git.pld-linux.org Git - packages/python-ClientCookie.git/blame - python-ClientCookie.spec
BR: rpmbuild(macros) >= 1.710
[packages/python-ClientCookie.git] / python-ClientCookie.spec
CommitLineData
711675a0 1#
2# TODO:
3# - egg-info
efb508dd 4%define module ClientCookie
711675a0 5#
b1c17e3f 6Summary: Python module for handling HTTP cookies on the client side
711675a0 7Summary(pl.UTF-8): Moduł Pythona obsługi ciasteczek HTTP (cookies) po stronie klienta
9a53a7af 8Name: python-%{module}
711675a0 9Version: 1.3.0
78818abb 10Release: 5
711675a0 11License: BSD/ZPL 2.1
12Group: Libraries/Python
40764043 13Source0: http://wwwsearch.sourceforge.net/ClientCookie/src/%{module}-%{version}.tar.gz
711675a0 14# Source0-md5: 7a43e4624299b3951ae1a442194d2185
9a53a7af 15URL: http://wwwsearch.sourceforge.net/ClientCookie/
ddf558cf 16BuildRequires: python
72f57565 17BuildRequires: rpmbuild(macros) >= 1.710
40764043 18%pyrequires_eq python-modules
91a39ec1 19BuildArch: noarch
9a53a7af 20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23ClientCookie is a Python module for handling HTTP cookies on the
24client side, useful for accessing web sites that require cookies to be
25set and then returned later. It also provides some other (optional)
26useful stuff: HTTP-EQUIV and Refresh handling, automatic adding of the
27Referer [sic] header and lazily-seek()able responses. These extras are
28implemented using an extension that makes it easier to add new
29functionality to urllib2. It has developed from a port of Gisle Aas'
30Perl module HTTP::Cookies, from the libwww-perl library.
31
b135611a 32%description -l pl.UTF-8
711675a0 33ClientCookie jest modułem języka Python obsługującym ciasteczka HTTP
34(cookies) po stronie klienta. Ułatwia dostęp do stron WWW wymagających
35ustawienia oraz zwracania ciasteczek. Dodatkowo dostarcza inne
36(opcjonalne) możliwości, takie jak: obsługa HTTP-EQUIV i Refresh,
37automatyczne dodawanie nagłówka Referer i odpowiedzi przeszukiwane
38z opóźnieniem. Dodatki te są zaimplementowane przy użyciu rozszerzenia,
39ułatwiającego dodawanie nowych funkcji do urllib2. ClientCookie został
40stworzony na podstawie modułu HTTP::Cookies dla Perla pochodzącego
41z biblioteki libwww-perl.
9a53a7af 42
43%prep
44%setup -q -n %{module}-%{version}
45
46%build
74efba39 47%py_build
9a53a7af 48
49%install
50rm -rf $RPM_BUILD_ROOT
711675a0 51install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
9a53a7af 52
74efba39 53%py_install
9a53a7af 54
711675a0 55%py_postclean
56install test/*.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
9a53a7af 57
58%clean
59rm -rf $RPM_BUILD_ROOT
60
61%files
62%defattr(644,root,root,755)
711675a0 63%doc COPYING.txt ChangeLog.txt GeneralFAQ.html INSTALL.txt README.txt doc.html
162e9371 64%dir %{py_sitescriptdir}/%{module}
65%{py_sitescriptdir}/%{module}/*.py[co]
711675a0 66%{_examplesdir}/%{name}-%{version}
This page took 0.072467 seconds and 4 git commands to generate.