2 %define module cherrypy
4 Summary: A pythonic, object-oriented web development framework
5 Summary(pl.UTF-8): Pythonowy, zorientowany obiektowo szkielet do tworzenia WWW
10 Group: Development/Languages/Python
11 Source0: http://dl.sourceforge.net/cherrypy/%{fname}-%{version}.tar.gz
12 # Source0-md5: 14bf17b0706bc480342cb8fcfaed74cd
13 Patch0: %{name}-autoreload.patch
14 URL: http://www.cherrypy.org
15 BuildRequires: python >= 1:2.5
16 %pyrequires_eq python-modules
17 Requires: python-devel-tools
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 CherryPy is a pythonic, object-oriented web development framework.
24 CherryPy allows developers to build web applications in much the same
25 way they would build any other object-oriented Python program. This
26 usually results in smaller source code developed in less time.
28 CherryPy is now more than three years old and it is has proven very
29 fast and stable. It is being used in production by many sites, from
30 the simplest ones to the most demanding ones.
32 Oh, and most importantly: CherryPy is fun to work with :-)
34 %description -l pl.UTF-8
35 CherryPy to pythonowy, obiektowo zorientowany szkielet do tworzenia
38 CherryPy pozwala programistom tworzyć aplikacje WWW w sposób bardzo
39 podobny do tworzenia każdego innego obiektowo zorientowanego programu
40 w Pythonie. Wynikiem tego jest zwykle mniejszy kod źródłowy stworzony
43 CherryPy ma już nieco ponad trzy lata i okazał się być bardzo szybki i
44 stabilny. Jest używany produkcyjnie przez wiele serwisów, od
45 najprostszych do bardziej wymagających.
47 I najważniejsze - praca z CherryPy jest zabawą :-)
50 Summary: Example files for CherryPy
51 Summary(pl.UTF-8): Pliki przykładów dla CherryPy
52 Group: Development/Languages/Python
53 Requires: %{name} = %{version}-%{release}
56 Example files for CherryPy.
58 %description examples -l pl.UTF-8
59 Pliki przykładów dla CherryPy.
62 %setup -q -n %{fname}-%{version}
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
72 python setup.py install \
73 --root=$RPM_BUILD_ROOT \
76 rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/tutorial
78 find $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/ -name \*.py | xargs rm -f
80 cp -r cherrypy/tutorial $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
83 rm -rf $RPM_BUILD_ROOT
86 %defattr(644,root,root,755)
87 %doc CHANGELOG.txt CHERRYPYTEAM.txt README.txt
88 %{py_sitescriptdir}/%{module}
89 %{py_sitescriptdir}/CherryPy*
92 %defattr(644,root,root,755)
93 %{_examplesdir}/%{name}-%{version}