Hello,

I'm trying to install gDesklets so I can use them on XFCE, but in the course of doing this I found that I need to install a whole bunch of prerequisites. One of these is PyGTK >= 2.4.0. SuSE comes with version 2.2.0 of Python-GTK which I think is the same thing with a different name.

So, when I didn't find any SuSE 9.2 RPMs of the new PyGTK, I decided I would try to make myself an RPM. This is the first time that I have ever done this and my question is regarding where the installation files should go. After building the RPM and looking at the files, it will install all of them like so:

Code:
/usr/local
/usr/local/bin
/usr/local/bin/pygtk-codegen-2.0
/usr/local/include
/usr/local/include/pygtk-2.0
/usr/local/include/pygtk-2.0/pygobject.h
/usr/local/include/pygtk-2.0/pygtk
/usr/local/include/pygtk-2.0/pygtk/pygtk.h
/usr/local/lib
/usr/local/lib/pkgconfig
/usr/local/lib/pkgconfig/pygtk-2.0.pc
/usr/local/lib/python2.3
/usr/local/lib/python2.3/site-packages
/usr/local/lib/python2.3/site-packages/gtk-2.0
/usr/local/lib/python2.3/site-packages/gtk-2.0/atk.la
/usr/local/lib/python2.3/site-packages/gtk-2.0/atk.so
/usr/local/lib/python2.3/site-packages/gtk-2.0/dsextras.py
/usr/local/lib/python2.3/site-packages/gtk-2.0/dsextras.pyc
/usr/local/lib/python2.3/site-packages/gtk-2.0/dsextras.pyo
/usr/local/lib/python2.3/site-packages/gtk-2.0/gobject.la
/usr/local/lib/python2.3/site-packages/gtk-2.0/gobject.so
/usr/local/lib/python2.3/site-packages/gtk-2.0/gtk
/usr/local/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py
/usr/local/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.pyc
/usr/local/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.pyo
/usr/local/lib/python2.3/site-packages/gtk-2.0/gtk/_gtk.la
/usr/local/lib/python2.3/site-packages/gtk-2.0/gtk/_gtk.so
/usr/local/lib/python2.3/site-packages/gtk-2.0/gtk/compat.py
/usr/local/lib/python2.3/site-packages/gtk-2.0/gtk/compat.pyc
/usr/local/lib/python2.3/site-packages/gtk-2.0/gtk/compat.pyo
/usr/local/lib/python2.3/site-packages/gtk-2.0/gtk/keysyms.py
/usr/local/lib/python2.3/site-packages/gtk-2.0/gtk/keysyms.pyc
/usr/local/lib/python2.3/site-packages/gtk-2.0/gtk/keysyms.pyo
/usr/local/lib/python2.3/site-packages/gtk-2.0/pango.la
/usr/local/lib/python2.3/site-packages/gtk-2.0/pango.so
/usr/local/lib/python2.3/site-packages/pygtk.pth
/usr/local/lib/python2.3/site-packages/pygtk.py
/usr/local/lib/python2.3/site-packages/pygtk.pyc
/usr/local/lib/python2.3/site-packages/pygtk.pyo
/usr/local/share
/usr/local/share/pygtk
/usr/local/share/pygtk/2.0
/usr/local/share/pygtk/2.0/codegen
/usr/local/share/pygtk/2.0/codegen/__init__.py
/usr/local/share/pygtk/2.0/codegen/__init__.pyc
/usr/local/share/pygtk/2.0/codegen/__init__.pyo
/usr/local/share/pygtk/2.0/codegen/argtypes.py
/usr/local/share/pygtk/2.0/codegen/argtypes.pyc
/usr/local/share/pygtk/2.0/codegen/argtypes.pyo
/usr/local/share/pygtk/2.0/codegen/codegen.py
/usr/local/share/pygtk/2.0/codegen/codegen.pyc
/usr/local/share/pygtk/2.0/codegen/codegen.pyo
/usr/local/share/pygtk/2.0/codegen/definitions.py
/usr/local/share/pygtk/2.0/codegen/definitions.pyc
/usr/local/share/pygtk/2.0/codegen/definitions.pyo
/usr/local/share/pygtk/2.0/codegen/defsparser.py
/usr/local/share/pygtk/2.0/codegen/defsparser.pyc
/usr/local/share/pygtk/2.0/codegen/defsparser.pyo
/usr/local/share/pygtk/2.0/codegen/docextract.py
/usr/local/share/pygtk/2.0/codegen/docextract.pyc
/usr/local/share/pygtk/2.0/codegen/docextract.pyo
/usr/local/share/pygtk/2.0/codegen/docgen.py
/usr/local/share/pygtk/2.0/codegen/docgen.pyc
/usr/local/share/pygtk/2.0/codegen/docgen.pyo
/usr/local/share/pygtk/2.0/codegen/h2def.py
/usr/local/share/pygtk/2.0/codegen/h2def.pyc
/usr/local/share/pygtk/2.0/codegen/h2def.pyo
/usr/local/share/pygtk/2.0/codegen/mergedefs.py
/usr/local/share/pygtk/2.0/codegen/mergedefs.pyc
/usr/local/share/pygtk/2.0/codegen/mergedefs.pyo
/usr/local/share/pygtk/2.0/codegen/mkskel.py
/usr/local/share/pygtk/2.0/codegen/mkskel.pyc
/usr/local/share/pygtk/2.0/codegen/mkskel.pyo
/usr/local/share/pygtk/2.0/codegen/override.py
/usr/local/share/pygtk/2.0/codegen/override.pyc
/usr/local/share/pygtk/2.0/codegen/override.pyo
/usr/local/share/pygtk/2.0/codegen/scmexpr.py
/usr/local/share/pygtk/2.0/codegen/scmexpr.pyc
/usr/local/share/pygtk/2.0/codegen/scmexpr.pyo
/usr/local/share/pygtk/2.0/defs
/usr/local/share/pygtk/2.0/defs/atk-types.defs
/usr/local/share/pygtk/2.0/defs/atk.defs
/usr/local/share/pygtk/2.0/defs/gdk-types.defs
/usr/local/share/pygtk/2.0/defs/gdk.defs
/usr/local/share/pygtk/2.0/defs/gtk-extrafuncs.defs
/usr/local/share/pygtk/2.0/defs/gtk-types.defs
/usr/local/share/pygtk/2.0/defs/gtk.defs
/usr/local/share/pygtk/2.0/defs/libglade.defs
/usr/local/share/pygtk/2.0/defs/pango-types.defs
/usr/local/share/pygtk/2.0/defs/pango.defs
Is this correct? I checked for these directories but apparantly the Python-GTK that SuSE ships with doesn't use them. Will this cause any problems on my computer? Was I supposed to use a prefix after the configure in the spec file? This is my spec file:

Code:
Name: pygtk
Summary: Python bindings for the GTK+ widget set.
Version: 2.4.1
Release: 1.suse92
License: LGPL
Group: Development/Libraries/Python
Source: pygtk-2.4.1.tar.gz
BuildRoot: %{_builddir}/%{name}-root
Distribution: SuSE 9.2
Url: http://www.pygtk.org
Vendor: James Henstridge

%description
PyGTK is an extension module for python that gives you access to the GTK+ widget set. Just about anything you can write in C with GTK+ you can write in python with PyGTK (within reason), but with all of python's benefits.

%prep
rm -rf $RPM_BUILD_ROOT 
mkdir $RPM_BUILD_ROOT

%setup -q

%build
./configure
make

%install
make DESTDIR=$RPM_BUILD_ROOT install-strip

cd $RPM_BUILD_ROOT

find . -type d -fprint $RPM_BUILD_DIR/file.list.%{name}.dirs
find . -type f -fprint $RPM_BUILD_DIR/file.list.%{name}.files.tmp
sed '/\/man\//s/$/.gz/g' $RPM_BUILD_DIR/file.list.%{name}.files.tmp > $RPM_BUILD_DIR/file.list.%{name}.files
find . -type l -fprint $RPM_BUILD_DIR/file.list.%{name}.libs
sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' $RPM_BUILD_DIR/file.list.%{name}.dirs > $RPM_BUILD_DIR/file.list.%{name}
sed 's,^\.,\%attr(-\,root\,root) ,' $RPM_BUILD_DIR/file.list.%{name}.files >> $RPM_BUILD_DIR/file.list.%{name}
sed 's,^\.,\%attr(-\,root\,root) ,' $RPM_BUILD_DIR/file.list.%{name}.libs >> $RPM_BUILD_DIR/file.list.%{name}

%clean
rm -rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_DIR/file.list.%{name}
rm -rf $RPM_BUILD_DIR/file.list.%{name}.libs
rm -rf $RPM_BUILD_DIR/file.list.%{name}.files
rm -rf $RPM_BUILD_DIR/file.list.%{name}.files.tmp
rm -rf $RPM_BUILD_DIR/file.list.%{name}.dirs

%files -f ../file.list.%{name}

%defattr(-,root,root,0755)
Thanks.