Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package gnome-python-desktop
      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-desktop
     11 License:		GPL
     12 Group:			System/Library
     13 Version:		2.16.0
     14 Release:		1
     15 Distribution:		Java Desktop System
     16 Vendor:			Sun Microsystems, Inc.
     17 Summary:		Python bindings for various GNOME desktop libraries
     18 Source:			http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.16/%{name}-%{version}.tar.bz2
     19 URL:			http://www.gnome.org
     20 BuildRoot:		%{_tmppath}/%{name}-%{version}-build
     21 Docdir:			%{_defaultdocdir}/doc
     22 Autoreqprov:		on
     23 
     24 %define python_version		   2.4
     25 %define pygtk2_version             2.4.0
     26 %define gnome_python_version       2.10.0
     27 %define gnome_panel_version        2.13.4
     28 %define libgnomeprint_version      2.2.0
     29 %define libgnomeprintui_version    2.2.0
     30 %define gtksourceview_version      1.1.90
     31 %define libwnck_version            2.9.92
     32 %define libgtop_version            2.13.0
     33 %define nautilus_cd_burner_version 2.11.1
     34 %define gconf_version              2.10.0
     35 %define metacity_version           2.13.3
     36 
     37 Requires: pygtk2 >= %{pygtk2_version}
     38 Requires: gnome-python >= %{gnome_python_version}
     39 Requires: gnome-panel >= %{gnome_panel_version}
     40 Requires: libgnomeprint >= %{libgnomeprint_version}
     41 Requires: libgnomeprintui >= %{libgnomeprintui_version}
     42 Requires: gtksourceview >= %{gtksourceview_version}
     43 Requires: libwnck >= %{libwnck_version}
     44 Requires: libgtop >= %{libgtop_version}
     45 Requires: nautilus-cd-burner >= %{nautilus_cd_burner_version}
     46 Requires: GConf >= %{gconf_version}
     47 Requires: metacity >= %{metacity_version}
     48 
     49 BuildRequires: pygtk2-devel >= %{pygtk2_version}
     50 BuildRequires: gnome-python-devel >= %{gnome_python_version}
     51 BuildRequires: gnome-panel-devel >= %{gnome_panel_version}
     52 BuildRequires: libgnomeprint-devel >= %{libgnomeprint_version}
     53 BuildRequires: libgnomeprintui-devel >= %{libgnomeprintui_version}
     54 BuildRequires: gtksourceview-devel >= %{gtksourceview_version}
     55 BuildRequires: libwnck-devel >= %{libwnck_version}
     56 BuildRequires: libgtop-devel >= %{libgtop_version}
     57 BuildRequires: nautilus-cd-burner >= %{nautilus_cd_burner_version}
     58 BuildRequires: GConf-devel >= %{gconf_version}
     59 BuildRequires: metacity >= %{metacity_version}
     60 
     61 %description
     62 GNOME-Python provides the Python language bindings for the GNOME desktop libraries.
     63 
     64 %package devel
     65 Summary: Files needed to build applications using the Python bindings for GNOME desktop libraries
     66 Group: Development/Languages
     67 Requires: %{name} = %{version}
     68 
     69 %description devel
     70 This package contains files required to build Python applications that need 
     71 to interoperate with the various GNOME desktop libraries
     72 
     73 %prep
     74 %setup -q -n gnome-python-desktop-%{version}
     75 
     76 %build
     77 CFLAGS="$RPM_OPT_FLAGS"				\
     78 ./configure 	--prefix=%{_prefix}		\
     79 	    	--sysconfdir=%{_sysconfdir}     \
     80                 %{gtk_doc_option}
     81 make \
     82     pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
     83     pythondir=%{_libdir}/python%{python_version}/vendor-packages
     84 
     85 %install
     86 make install DESTDIR=$RPM_BUILD_ROOT \
     87     pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
     88     pythondir=%{_libdir}/python%{python_version}/vendor-packages
     89 find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
     90 find $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';'
     91 
     92 %clean
     93 rm -rf $RPM_BUILD_ROOT
     94 
     95 %post
     96 
     97 %postun
     98 
     99 %files
    100 %defattr(-, root, root)
    101 %{_libdir}/python?.?/vendor-packages/gtk-2.0
    102 
    103 %doc AUTHORS NEWS README ChangeLog
    104 %doc examples
    105 
    106 %files devel
    107 %defattr(644, root, root)
    108 %{_libdir}/pkgconfig/*
    109 %{_datadir}/pygtk
    110 %{_datadir}/gtk-doc
    111 
    112 %changelog -n gnome-python-desktop
    113 * Fri Nov  3 2006 - laca@sun.com
    114 - use %gtk_doc_option in configure so that it can be disabled using
    115   --without-gtk-doc
    116 * Tue Sep 05 2006 - damien.carbery@sun.com
    117 - Bump to 2.16.0.
    118 * Wed Jul 26 2006 - damien.carbery@sun.com
    119 - Bump to 2.15.90.
    120 * Mon Mar 13 2006 - damien.carbery@sun.com
    121 - Bump to 2.14.0.
    122 * Wed Mar 01 2006 - glynn.foster@sun.com
    123 - Initial version
    124