blob: 697b676e0cda093db2d31e853eba6e7b37b659ce (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
#
%define module GooeyPy
#
Summary: Python/GooeyPy - a fast, flexible and cool looking GUI for pygame
Summary(pl.UTF-8): Python/GooeyPy - szybkie, elastycznie i dobrze wyglądające GUI dla pygame
Name: python-%{module}
Version: 0.1.2
Release: 1
License: LGPL v2.1+
Group: Libraries/Python
Source0: http://cheeseshop.python.org/packages/source/G/GooeyPy/%{module}-%{version}.tar.gz
# Source0-md5: 90bf6d39c0a5d4382a2b8bec965ceb3e
URL: http://joey101.net/gooeypy/
BuildRequires: python >= 1:2.4
BuildRequires: python-Cellulose
BuildRequires: python-devel
BuildRequires: python-pygame
BuildRequires: python-setuptools
BuildRequires: rpmbuild(macros) >= 1.710
Requires: python-Cellulose
%pyrequires_eq python-modules
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
A fast, flexible, and cool looking GUI for pygame.
%description -l pl.UTF-8
Szybkie, elastyczne i dobrze wyglądające GUI dla pygame.
%package examples
Summary: Examples of Python/GooeyPy
Summary(pl.UTF-8): Przykłady do Python/GooeyPy
Group: Development/Languages/Python
%pyrequires_eq python
Requires: %{name} = %{version}-%{release}
%description examples
Examples of Python/GooeyPy.
%description examples -l pl.UTF-8
Przykłady do Python/GooeyPy.
%prep
%setup -q -n %{module}-%{version}
%build
%py_build
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{py_sitescriptdir}
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
cp -af examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
cp -af gooeypy $RPM_BUILD_ROOT%{py_sitescriptdir}/gooeypy
%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
%py_postclean
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc AUTHORS CHANGELOG README
%doc docs
%{py_sitescriptdir}/gooeypy
%files examples
%defattr(644,root,root,755)
%{_examplesdir}/%{name}-%{version}
|