summaryrefslogtreecommitdiff
path: root/python-WSGIUtils.spec
blob: 0c6266792d1c36324dcfc9b0b4637eafa860094b (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
Summary:	Collection of libraries for use in a WSGI environment
Summary(pl.UTF-8):	Zbiór bibliotek do używania w środowisku WSGI
Name:		python-WSGIUtils
Version:	0.7
Release:	5
Group:		Development/Languages/Python
License:	X11/MIT
Source0:	http://cheeseshop.python.org/packages/source/W/WSGIUtils/WSGIUtils-%{version}.tar.gz
# Source0-md5:	80656ce771bb33eb8ad502c3b674b1fc
URL:		http://www.owlfish.com/software/wsgiutils/
BuildRequires:	rpmbuild(macros) >= 1.710
BuildRequires:	python-devel
%pyrequires_eq	python-modules
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
WSGIUtils is a package of standalone utility libraries that ease the
development of simple WSGI programs. The package is divided into two
main components which can be used individualy or in combination:

- wsgiServer is a multi-threaded WSGI web server based on
  SimpleHTTPServer
- wsgiAdaptor is a simple WSGI application that provides basic
  authentication, signed cookies and persistent sessions

%description -l pl.UTF-8
WSGIUtils to pakiet samodzielnych bibliotek narzędziowych
ułatwiających tworzenie prostych programów WSGI. Pakiet jest
podzielony na dwa główne składniki, których można używać oddzielnie
lub łącznie:

- wsgiServer to wielowątkowy serwer WWW WSGI oparty na
  SimpleHTTPServer
- wsgiAdaptor to prosta aplikacja WSGI udostępniająca podstawowe
  uwierzytelnianie, podpisane ciasteczka i trwałe sesje

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

%build
%py_build

%install
rm -rf $RPM_BUILD_ROOT
%py_install \
	--single-version-externally-managed \
	--optimize=2 \
	--root=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc README.txt
%{py_sitescriptdir}/wsgiutils*
%{py_sitescriptdir}/WSGIUtils*