]>
Commit | Line | Data |
---|---|---|
b7c81cf4 | 1 | |
2 | # | |
3 | # todo: | |
4 | # 1. libglade subpackage (needs libglade2) | |
5 | # 2. descriptions and summaries | |
6 | # 3. review subpackages content and dependencies (does gtk require atk | |
7 | # and pango modules? more?) | |
8 | # 4. numpy? | |
9 | # | |
10 | ||
11 | %include /usr/lib/rpm/macros.python | |
12 | %define module pygtk | |
13 | ||
14 | Summary: P | |
15 | Summary(pl): P | |
16 | Name: python-%{module} | |
17 | Version: 1.99.7 | |
18 | Release: 0.1 | |
19 | License: GPL | |
20 | Group: Development/Languages/Python | |
21 | Source0: %{module}-%{version}.tar.gz | |
22 | URL: http://daa.com.au/~james/pygtk | |
23 | %requires_eq python-modules | |
24 | BuildRequires: gtk+-devel | |
25 | BuildRequires: atk-devel | |
26 | BuildRequires: pango-devel | |
27 | BuildRequires: rpm-pythonprov | |
28 | BuildRequires: python-devel | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | N/A | |
33 | ||
34 | %description -l pl | |
35 | N/A | |
36 | ||
37 | %package gobject | |
38 | Summary: GObject | |
39 | Summary(pl): GObject | |
40 | Group: Development/Languages/Python | |
41 | ||
42 | %description gobject | |
43 | N/A | |
44 | ||
45 | %description gobject -l pl | |
46 | N/A | |
47 | ||
48 | %package gtk | |
49 | Summary: GTK | |
50 | Summary(pl): GTK | |
51 | Group: Development/Languages/Python | |
52 | Requires: %{name}-gobject = %{version} | |
53 | ||
54 | %description gtk | |
55 | N/A | |
56 | ||
57 | %description gtk -l pl | |
58 | N/A | |
59 | ||
60 | %package atk | |
61 | Summary: atk | |
62 | Summary(pl): atk | |
63 | Group: Development/Languages/Python | |
64 | Requires: %{name}-gobject = %{version} | |
65 | ||
66 | %description atk | |
67 | N/A | |
68 | ||
69 | %description atk -l pl | |
70 | N/A | |
71 | ||
72 | %package pango | |
73 | Summary: pango | |
74 | Summary(pl): pango | |
75 | Group: Development/Languages/Python | |
76 | Requires: %{name}-gobject = %{version} | |
77 | ||
78 | %description pango | |
79 | N/A | |
80 | ||
81 | %description pango -l pl | |
82 | N/A | |
83 | ||
84 | %prep | |
85 | %setup -q -n %{module}-%{version} | |
86 | ||
87 | %build | |
88 | %configure | |
89 | %{__make} | |
90 | ||
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | install -d $RPM_BUILD_ROOT | |
94 | ||
95 | %{__make} install DESTDIR=$RPM_BUILD_ROOT | |
96 | ||
97 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name} | |
98 | cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name} | |
99 | ||
100 | gzip -9nf README ChangeLog NEWS MAPPING TODO THREADS AUTHORS | |
101 | ||
102 | %clean | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %files | |
106 | %defattr(644,root,root,755) | |
107 | %doc *.gz | |
108 | %attr(755,root,root) %{_bindir}/* | |
109 | %{_includedir}/pygtk-2.0 | |
110 | ||
111 | %dir %{_datadir}/%{module} | |
112 | %dir %{_datadir}/%{module}/2.0 | |
113 | %dir %{_datadir}/%{module}/2.0/codegen | |
114 | %dir %{_datadir}/%{module}/2.0/defs | |
115 | %{_datadir}/%{module}/2.0/codegen/*.py[co] | |
116 | ||
117 | %{_pkgconfigdir}/*.pc | |
118 | %{_examplesdir}/%{name} | |
119 | ||
120 | %files gobject | |
121 | %defattr(644,root,root,755) | |
122 | %attr(755,root,root) %{py_sitedir}/gobject*.so | |
123 | %attr(755,root,root) %{py_sitedir}/gobject*.la | |
124 | ||
125 | %files gtk | |
126 | %defattr(644,root,root,755) | |
127 | %{_datadir}/%{module}/2.0/defs/gtk* | |
128 | %{_datadir}/%{module}/2.0/defs/gdk* | |
129 | %dir %{py_sitedir}/gtk | |
130 | %attr(755,root,root) %{py_sitedir}/gtk/*.so | |
131 | %attr(755,root,root) %{py_sitedir}/gtk/*.la | |
132 | %{py_sitedir}/gtk/*.py[co] | |
133 | ||
134 | %files atk | |
135 | %defattr(644,root,root,755) | |
136 | %{_datadir}/%{module}/2.0/defs/atk* | |
137 | %attr(755,root,root) %{py_sitedir}/atk*.so | |
138 | %attr(755,root,root) %{py_sitedir}/atk*.la | |
139 | ||
140 | %files pango | |
141 | %defattr(644,root,root,755) | |
142 | %{_datadir}/%{module}/2.0/defs/pango* | |
143 | %attr(755,root,root) %{py_sitedir}/pango*.so | |
144 | %attr(755,root,root) %{py_sitedir}/pango*.la |