wannabe NEW python-ClientCookie.spec

Jakub Piotr Cłapa loc at toya.net.pl
Sat Feb 14 23:28:08 CET 2004


Malutki, aczkolwiek bardzo przydatny modul do pythona, ktory nie mial 
sie gdzie podziac, wiec zaprosilem go do PLD. :)

Staralem sie, zeby nie mial bledow (adapteryzowany tez jest), ale to moj 
pierwszy spec, wiec prosilbym o przejrzenie. Jesli sie nada to tez o 
commitowanie.

-- 
z wyrazami szacunku,
Jakub Piotr Cłapa
-------------- next part --------------
# $Revision:$, $Date:$
%include	/usr/lib/rpm/macros.python
%define 	module ClientCookie

Summary:	Python package providing a module for handling HTTP cookies on the client side
Summary(pl):	Pakiet zawieraj±cy modu³ obs³ugi ciasteczek (cookies) po stronie klienta
Name:		python-%{module}
Version:	0.9.3a
Release:	0.2
License:	BSD
Group:		Development/Languages/Python
Source0:	http://wwwsearch.sourceforge.net/%{module}/src/%{module}-%{version}.tar.gz
URL:		http://wwwsearch.sourceforge.net/ClientCookie/
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 mozliwosc
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
install -d $RPM_BUILD_ROOT%{py_sitedir}

python setup.py install \
        --root=$RPM_BUILD_ROOT \
        --install-purelib=%{py_sitedir} \
        --optimize=2

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

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)

%dir %{py_sitedir}/%{module}
%{py_sitedir}/%{module}/*.py[co]

%doc ChangeLog COPYING doc.html GeneralFAQ.html INSTALL README.html README.txt

%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org

$Log:$


More information about the pld-devel-pl mailing list