-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpython-cherrypy.spec
101 lines (78 loc) · 2.92 KB
/
python-cherrypy.spec
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
%define fname CherryPy
%define module cherrypy
Summary: A pythonic, object-oriented web development framework
Summary(pl): Pythonowy, zorientowany obiektowo szkielet do tworzenia WWW
Name: python-%{module}
Version: 2.1.1
Release: 1
License: BSD
Group: Development/Languages/Python
Source0: http://dl.sourceforge.net/cherrypy/%{fname}-%{version}.tar.gz
# Source0-md5: f36d73a8c38c1444285b37c3451dce86
Patch0: %{name}-autoreload.patch
URL: http://www.cherrypy.org
BuildRequires: python
%pyrequires_eq python-modules
Requires: python-devel-tools
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
CherryPy is a pythonic, object-oriented web development framework.
CherryPy allows developers to build web applications in much the same
way they would build any other object-oriented Python program. This
usually results in smaller source code developed in less time.
CherryPy is now more than three years old and it is has proven very
fast and stable. It is being used in production by many sites, from
the simplest ones to the most demanding ones.
Oh, and most importantly: CherryPy is fun to work with :-)
%description -l pl
CherryPy to pythonowy, obiektowo zorientowany szkielet do tworzenia
WWW.
CherryPy pozwala programistom tworzyæ aplikacje WWW w sposób bardzo
podobny do tworzenia ka¿dego innego obiektowo zorientowanego programu
w Pythonie. Wynikiem tego jest zwykle mniejszy kod ¼ród³owy stworzony
w krótszym czasie.
CherryPy ma ju¿ nieco ponad trzy lata i okaza³ siê byæ bardzo szybki i
stabilny. Jest u¿ywany produkcyjnie przez wiele serwisów, od
najprostszych do bardziej wymagaj±cych.
I najwa¿niejsze - praca z CherryPy jest zabaw± :-)
%package examples
Summary: Example files for CherryPy
Summary(pl): Pliki przyk³adów dla CherryPy
Group: Development/Languages/Python
Requires: %{name} = %{version}-%{release}
%description examples
Example files for CherryPy.
%description examples -l pl
Pliki przyk³adów dla CherryPy.
%prep
%setup -q -n %{fname}-%{version}
%patch0 -p1
%build
python setup.py build
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
install -d $RPM_BUILD_ROOT%{py_sitescriptdir}/CherryPy-%{version}-py%{py_ver}.egg-info
python setup.py install \
--root=$RPM_BUILD_ROOT \
--optimize=2
rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/tutorial
find $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/ -name \*.py | xargs rm -f
cp -r cherrypy/tutorial $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
echo 'Metadata-Version: 1.0
Name: CherryPy
Version: %{version}
Summary: %{summary}
Home-page: %{url}
License: %{license}' > $RPM_BUILD_ROOT%{py_sitescriptdir}/CherryPy-%{version}-py%{py_ver}.egg-info/PKG-INFO
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc CHANGELOG.txt CHERRYPYTEAM.txt README.txt
%{py_sitescriptdir}/%{module}
%{py_sitescriptdir}/CherryPy*
%files examples
%defattr(644,root,root,755)
%{_examplesdir}/%{name}-%{version}