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?)
11 %include /usr/lib/rpm/macros.python
16 Name: python-%{module}
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)
40 Group: Development/Languages/Python
45 %description gobject -l pl
51 Group: Development/Languages/Python
52 Requires: %{name}-gobject = %{version}
57 %description gtk -l pl
63 Group: Development/Languages/Python
64 Requires: %{name}-gobject = %{version}
69 %description atk -l pl
75 Group: Development/Languages/Python
76 Requires: %{name}-gobject = %{version}
81 %description pango -l pl
85 %setup -q -n %{module}-%{version}
92 rm -rf $RPM_BUILD_ROOT
93 install -d $RPM_BUILD_ROOT
95 %{__make} install DESTDIR=$RPM_BUILD_ROOT
97 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}
98 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}
100 gzip -9nf README ChangeLog NEWS MAPPING TODO THREADS AUTHORS
103 rm -rf $RPM_BUILD_ROOT
106 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_bindir}/*
109 %{_includedir}/pygtk-2.0
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]
117 %{_pkgconfigdir}/*.pc
118 %{_examplesdir}/%{name}
121 %defattr(644,root,root,755)
122 %attr(755,root,root) %{py_sitedir}/gobject*.so
123 %attr(755,root,root) %{py_sitedir}/gobject*.la
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]
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
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