]>
Commit | Line | Data |
---|---|---|
770077cd | 1 | %define module pyglet |
2 | Summary: A cross-platform windowing and multimedia library for Python | |
3 | Summary(pl.UTF-8): Międzyplatformowa biblioteka Pythona do obsługi okien i multimediów | |
4 | Name: python-%{module} | |
5 | Version: 1.1.3 | |
6 | Release: 1 | |
7 | License: BSD/BSD | |
8 | Group: Development/Languages/Python | |
9 | Source0: http://pyglet.googlecode.com/files/%{module}-%{version}.tar.gz | |
10 | # Source0-md5: 54530c20a95fffeb6c60fd4a9b073b83 | |
11 | URL: http://www.pyglet.org/ | |
12 | BuildRequires: python-devel >= 1:2.5 | |
13 | BuildRequires: rpm-pythonprov | |
14 | BuildRequires: rpmbuild(macros) >= 1.219 | |
15 | Requires: python-PyOpenAL | |
16 | Requires: python-PyOpenGL | |
17 | BuildArch: noarch | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | pyglet provides an object-oriented programming interface for | |
22 | developing games and other visually-rich applications. | |
23 | ||
24 | %description -l pl.UTF-8 | |
25 | pyglet dostarcza interfejs do programowania zorientowanego obiektowo | |
26 | dla rozwoju gier i innych aplikacji wizualnych. | |
27 | ||
28 | %prep | |
29 | %setup -q -n %{module}-%{version} | |
30 | ||
31 | %build | |
32 | %{__python} setup.py build | |
33 | ||
34 | %install | |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | %{__python} setup.py install \ | |
37 | --optimize=2 \ | |
38 | --root=$RPM_BUILD_ROOT | |
39 | ||
40 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
41 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
42 | %py_postclean | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
49 | %doc CHANGELOG NOTICE README PKG-INFO doc examples | |
50 | %dir %{py_sitescriptdir}/%{module} | |
51 | %{py_sitescriptdir}/pyglet/*.py[co] | |
52 | %dir %{py_sitescriptdir}/%{module}/app | |
53 | %{py_sitescriptdir}/pyglet/app/* | |
54 | %dir %{py_sitescriptdir}/%{module}/font | |
55 | %{py_sitescriptdir}/pyglet/font/* | |
56 | %dir %{py_sitescriptdir}/%{module}/gl | |
57 | %{py_sitescriptdir}/pyglet/gl/* | |
58 | %dir %{py_sitescriptdir}/%{module}/graphics | |
59 | %{py_sitescriptdir}/pyglet/graphics/* | |
60 | %dir %{py_sitescriptdir}/%{module}/image | |
61 | %{py_sitescriptdir}/pyglet/image/* | |
62 | %dir %{py_sitescriptdir}/%{module}/media | |
63 | %{py_sitescriptdir}/pyglet/media/* | |
64 | %dir %{py_sitescriptdir}/%{module}/text | |
65 | %{py_sitescriptdir}/pyglet/text/* | |
66 | %dir %{py_sitescriptdir}/%{module}/window | |
67 | %{py_sitescriptdir}/pyglet/window/* | |
68 | %{py_sitescriptdir}/*.egg-info |