gnome-python.spec
author laca
Thu, 27 Oct 2005 20:17:24 +0000
changeset 6193 011617068c65
parent 5606 fc9ef0930572
child 6200 19ff8721b8f2
permissions -rw-r--r--
2005-10-27 Laszlo Peter <[email protected]> * Pyrex.spec: move to vendor-packages from site-packages * gnome-menus.spec: move to vendor-packages from site-packages * gnome-python.spec: move to vendor-packages from site-packages; include pyc files * orca.spec: move to vendor-packages from site-packages * planner.spec: move python module to vendor-packages * pygtk2.spec: move to vendor-packages * pyorbit.spec: move to vendor-packages * pyspi.spec: move to vendor-packages * python.spec: add vendor-packages dir; add a pth file to site-packages that tells python to search for modules in the vendor-packages directory too * patches/Python-01-solaris-lib-dirs.diff: new. update setup.py to search for some directories in /usr/sfw and to not search for anything in /usr/local. * vte.spec: move the python module to vendor-packages 2005-10-26 Laszlo Peter <[email protected]> * db_evo.spec: remove. unused. * docs/jds-branches.html: update to include gnome-2-12 branch
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
     1
#
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
     2
# spec file for package gnome-python
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
     3
#
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
     4
# Copyright (c) 2005 Sun Microsystems, Inc.
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
     6
# package are under the same license as the package itself.
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
     7
#
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
     8
Name:			gnome-python
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
     9
License:		LGPL	
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    10
Group:			System/Library
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    11
Version:		2.6.2
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    12
Release:		1
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    13
Distribution:		Java Desktop System
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    14
Vendor:			Sun Microsystems, Inc.
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    15
Summary:		Python bindings for various GNOME libraries
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    16
Source:			http://ftp.gnome.org/pub/GNOME/sources/gnome-python/2.6/gnome-python-%{version}.tar.bz2	
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    17
URL:			http://www.gnome.org
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    18
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    19
Docdir:			%{_defaultdocdir}/doc
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    20
Autoreqprov:		on
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    21
5605
aa5a3d2eff68 2005-08-26 Laszlo Peter <[email protected]>
laca
parents: 5580
diff changeset
    22
%define libglade_version           2.4.0
6193
011617068c65 2005-10-27 Laszlo Peter <[email protected]>
laca
parents: 5606
diff changeset
    23
%define python_version             2.4
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    24
%define pygtk2_version             2.4.0
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    25
%define pyorbit_version            2.0.1
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    26
%define libgnomeui_version         2.0.0
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    27
%define gconf_version              1.2.0
5605
aa5a3d2eff68 2005-08-26 Laszlo Peter <[email protected]>
laca
parents: 5580
diff changeset
    28
%define nautilus_version           2.0.0
aa5a3d2eff68 2005-08-26 Laszlo Peter <[email protected]>
laca
parents: 5580
diff changeset
    29
%define gnome_panel_version        2.0.0
aa5a3d2eff68 2005-08-26 Laszlo Peter <[email protected]>
laca
parents: 5580
diff changeset
    30
%define gtkhtml_version            2.3.1
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    31
%define libgnomeprintui_version    2.2.0
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    32
5605
aa5a3d2eff68 2005-08-26 Laszlo Peter <[email protected]>
laca
parents: 5580
diff changeset
    33
Requires: python >= %{python_version}
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    34
Requires: pygtk2 >= %{pygtk2_version}
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    35
Requires: pyorbit >= %{pyorbit_version}
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    36
Requires: libgnomeui >= %{libgnomeui_version}
5605
aa5a3d2eff68 2005-08-26 Laszlo Peter <[email protected]>
laca
parents: 5580
diff changeset
    37
Requires: libglade >= %{libglade_version}
aa5a3d2eff68 2005-08-26 Laszlo Peter <[email protected]>
laca
parents: 5580
diff changeset
    38
Requires: GConf >= %{gconf_version}
aa5a3d2eff68 2005-08-26 Laszlo Peter <[email protected]>
laca
parents: 5580
diff changeset
    39
Requires: nautilus >= %{nautilus_version}
aa5a3d2eff68 2005-08-26 Laszlo Peter <[email protected]>
laca
parents: 5580
diff changeset
    40
Requires: gnome-panel >= %{gnome_panel_version}
aa5a3d2eff68 2005-08-26 Laszlo Peter <[email protected]>
laca
parents: 5580
diff changeset
    41
Requires: gtkhtml >= %{gtkhtml_version}
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    42
Requires: libgnomeprintui >= %{libgnomeprintui_version}
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    43
5605
aa5a3d2eff68 2005-08-26 Laszlo Peter <[email protected]>
laca
parents: 5580
diff changeset
    44
BuildRequires: python >= %{python_version}
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    45
BuildRequires: pygtk2-devel >= %{pygtk2_version}
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    46
BuildRequires: pyorbit-devel >= %{pyorbit_version}
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    47
BuildRequires: libgnomeui-devel >= %{libgnomeui_version}
5605
aa5a3d2eff68 2005-08-26 Laszlo Peter <[email protected]>
laca
parents: 5580
diff changeset
    48
BuildRequires: GConf-devel >= %{gconf_version}
aa5a3d2eff68 2005-08-26 Laszlo Peter <[email protected]>
laca
parents: 5580
diff changeset
    49
BuildRequires: nautilus-devel >= %{nautilus_version}
aa5a3d2eff68 2005-08-26 Laszlo Peter <[email protected]>
laca
parents: 5580
diff changeset
    50
BuildRequires: gnome-panel-devel >= %{gnome_panel_version}
aa5a3d2eff68 2005-08-26 Laszlo Peter <[email protected]>
laca
parents: 5580
diff changeset
    51
BuildRequires: gtkhtml-devel >= %{gtkhtml_version}
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    52
BuildRequires: libgnomeprintui-devel >= %{libgnomeprintui_version}
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    53
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    54
%description
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    55
GNOME-Python provides the Python language bindings for the GNOME libraries.
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    56
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    57
%package devel
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    58
Summary: Files needed to build applications using the Python bindings for GNOME libraries
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    59
Group: Development/Languages
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    60
Requires: %{name} = %{version}
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    61
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    62
%description devel
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    63
This package contains files required to build Python applications that need 
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    64
to interope rate with the various GNOME libraries
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    65
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    66
%prep
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    67
%setup -q -n gnome-python-%{version}
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    68
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    69
%build
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    70
CFLAGS="$RPM_OPT_FLAGS"				\
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    71
./configure 	--prefix=%{_prefix}		\
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    72
	    	--sysconfdir=%{_sysconfdir}
6193
011617068c65 2005-10-27 Laszlo Peter <[email protected]>
laca
parents: 5606
diff changeset
    73
make \
011617068c65 2005-10-27 Laszlo Peter <[email protected]>
laca
parents: 5606
diff changeset
    74
    pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
011617068c65 2005-10-27 Laszlo Peter <[email protected]>
laca
parents: 5606
diff changeset
    75
    pythondir=%{_libdir}/python%{python_version}/vendor-packages
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    76
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    77
%install
6193
011617068c65 2005-10-27 Laszlo Peter <[email protected]>
laca
parents: 5606
diff changeset
    78
make install DESTDIR=$RPM_BUILD_ROOT \
011617068c65 2005-10-27 Laszlo Peter <[email protected]>
laca
parents: 5606
diff changeset
    79
    pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
011617068c65 2005-10-27 Laszlo Peter <[email protected]>
laca
parents: 5606
diff changeset
    80
    pythondir=%{_libdir}/python%{python_version}/vendor-packages
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    81
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    82
find $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';'
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    83
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    84
%clean
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    85
rm -rf $RPM_BUILD_ROOT
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    86
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    87
%post
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    88
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    89
%postun
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    90
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    91
%files
5606
fc9ef0930572 fix %files
laca
parents: 5605
diff changeset
    92
%defattr(-, root, root)
6193
011617068c65 2005-10-27 Laszlo Peter <[email protected]>
laca
parents: 5606
diff changeset
    93
%{_libdir}/python?.?/vendor-packages/gtk-2.0
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    94
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    95
%doc AUTHORS NEWS README ChangeLog
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    96
%doc examples
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    97
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    98
%files devel
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
    99
%defattr(644, root, root)
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
   100
%{_libdir}/pkgconfig/*
5606
fc9ef0930572 fix %files
laca
parents: 5605
diff changeset
   101
%{_datadir}/pygtk
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
   102
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
   103
%changelog -n gnome-python
5605
aa5a3d2eff68 2005-08-26 Laszlo Peter <[email protected]>
laca
parents: 5580
diff changeset
   104
* Fri Aug 26 2005 - [email protected]
5606
fc9ef0930572 fix %files
laca
parents: 5605
diff changeset
   105
- fix dependencies, fix %files
5580
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
   106
* Fri Aug 12 2005 - [email protected]
3ddcb6abfa94 Adding in spec files (Linux and Solaris) for Orca and the GNOME/Python
richb
parents:
diff changeset
   107
- Initial Sun release