1 # 2 # spec file for package gnome-python 3 # 4 # Copyright (c) 2005 Sun Microsystems, Inc. 5 # This file and all modifications and additions to the pristine 6 # package are under the same license as the package itself. 7 # 8 # Owner: laca 9 # 10 Name: gnome-python 11 License: LGPL 12 Group: System/Library 13 Version: 2.16.2 14 Release: 1 15 Distribution: Java Desktop System 16 Vendor: Sun Microsystems, Inc. 17 Summary: Python bindings for various GNOME libraries 18 Source: http://ftp.gnome.org/pub/GNOME/sources/gnome-python/2.16/gnome-python-%{version}.tar.bz2 19 URL: http://www.gnome.org 20 BuildRoot: %{_tmppath}/%{name}-%{version}-build 21 Docdir: %{_defaultdocdir}/doc 22 Autoreqprov: off 23 24 %define libglade_version 2.4.0 25 %define python_version 2.4 26 %define pygtk2_version 2.4.0 27 %define pyorbit_version 2.0.1 28 %define libgnomeui_version 2.0.0 29 %define gconf_version 1.2.0 30 %define nautilus_version 2.0.0 31 %define gnome_panel_version 2.0.0 32 %define gtkhtml_version 2.3.1 33 %define libgnomeprintui_version 2.2.0 34 35 Requires: python >= %{python_version} 36 Requires: pygtk2 >= %{pygtk2_version} 37 Requires: pyorbit >= %{pyorbit_version} 38 Requires: libgnomeui >= %{libgnomeui_version} 39 Requires: libglade >= %{libglade_version} 40 Requires: GConf >= %{gconf_version} 41 Requires: nautilus >= %{nautilus_version} 42 Requires: gnome-panel >= %{gnome_panel_version} 43 Requires: gtkhtml >= %{gtkhtml_version} 44 Requires: libgnomeprintui >= %{libgnomeprintui_version} 45 46 BuildRequires: python >= %{python_version} 47 BuildRequires: pygtk2-devel >= %{pygtk2_version} 48 BuildRequires: pyorbit-devel >= %{pyorbit_version} 49 BuildRequires: libgnomeui-devel >= %{libgnomeui_version} 50 BuildRequires: GConf-devel >= %{gconf_version} 51 BuildRequires: nautilus-devel >= %{nautilus_version} 52 BuildRequires: gnome-panel-devel >= %{gnome_panel_version} 53 BuildRequires: gtkhtml-devel >= %{gtkhtml_version} 54 BuildRequires: libgnomeprintui-devel >= %{libgnomeprintui_version} 55 56 %description 57 GNOME-Python provides the Python language bindings for the GNOME libraries. 58 59 %package devel 60 Summary: Files needed to build applications using the Python bindings for GNOME libraries 61 Group: Development/Languages 62 Requires: %{name} = %{version} 63 64 %description devel 65 This package contains files required to build Python applications that need 66 to interope rate with the various GNOME libraries 67 68 %prep 69 %setup -q -n gnome-python-%{version} 70 71 %build 72 CFLAGS="$RPM_OPT_FLAGS" \ 73 ./configure --prefix=%{_prefix} \ 74 --sysconfdir=%{_sysconfdir} 75 make \ 76 pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \ 77 pythondir=%{_libdir}/python%{python_version}/vendor-packages 78 79 %install 80 make install DESTDIR=$RPM_BUILD_ROOT \ 81 pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \ 82 pythondir=%{_libdir}/python%{python_version}/vendor-packages 83 find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' 84 find $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';' 85 86 %clean 87 rm -rf $RPM_BUILD_ROOT 88 89 %post 90 91 %postun 92 93 %files 94 %defattr(-, root, root) 95 %{_libdir}/python?.?/vendor-packages/gtk-2.0 96 %{_libdir}/gnome-vfs-*/modules/lib*.so 97 98 %doc AUTHORS NEWS README ChangeLog 99 %doc examples 100 101 %files devel 102 %defattr(644, root, root) 103 %{_libdir}/pkgconfig/* 104 %{_datadir}/pygtk 105 %{_includedir}/* 106 107 %changelog -n gnome-python 108 * Mon Nov 06 2006 - damien.carbery@sun.com 109 - Bump to 2.16.2. 110 111 * Mon Nov 06 2006 - damien.carbery@sun.com 112 - Bump to 2.16.1. 113 114 * Tue Sep 05 2006 - damien.carbery@sun.com 115 - Bump to 2.16.0. 116 117 * Tue Aug 22 2006 - damien.carbery@sun.com 118 - Bump to 2.15.91. 119 120 * Wed Jul 26 2006 - damien.carbery@sun.com 121 - Bump to 2.15.90. 122 123 * Fri Jul 21 2006 - damien.carbery@sun.com 124 - Bump to 2.15.4. 125 126 * Mon Mar 13 2006 - damien.carbery@sun.com 127 - Bump to 2.12.4. 128 129 * Tue Jan 03 2006 - dermot.mccluskey@sun.com 130 - Bump to 2.12.3. 131 132 * Tue Dec 20 2005 - dermot.mccluskey@sun.com 133 - Bump to 2.12.2 134 135 * Thu Oct 27 2005 - laca@sun.com 136 - move from site-packages to vendor-packages 137 - include the .pyc files 138 139 * Fri Aug 26 2005 - laca@sun.com 140 - fix dependencies, fix %files 141 142 * Fri Aug 12 2005 - rich.burridge@sun.com 143 - Initial Sun release 144