author | laca |
Thu, 27 Oct 2005 20:17:24 +0000 | |
changeset 6193 | 011617068c65 |
parent 5606 | fc9ef0930572 |
child 6200 | 19ff8721b8f2 |
permissions | -rw-r--r-- |
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 | 22 |
%define libglade_version 2.4.0 |
6193 | 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 | 28 |
%define nautilus_version 2.0.0 |
29 |
%define gnome_panel_version 2.0.0 |
|
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 | 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 | 37 |
Requires: libglade >= %{libglade_version} |
38 |
Requires: GConf >= %{gconf_version} |
|
39 |
Requires: nautilus >= %{nautilus_version} |
|
40 |
Requires: gnome-panel >= %{gnome_panel_version} |
|
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 | 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 | 48 |
BuildRequires: GConf-devel >= %{gconf_version} |
49 |
BuildRequires: nautilus-devel >= %{nautilus_version} |
|
50 |
BuildRequires: gnome-panel-devel >= %{gnome_panel_version} |
|
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 | 73 |
make \ |
74 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \ |
|
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 | 78 |
make install DESTDIR=$RPM_BUILD_ROOT \ |
79 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \ |
|
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 | 92 |
%defattr(-, root, root) |
6193 | 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 | 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 | 104 |
* Fri Aug 26 2005 - [email protected] |
5606 | 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 |