base-specs/pygobject.spec
author laca
Wed, 28 Feb 2007 18:57:18 +0000
changeset 9397 b16e349d18c5
child 9850 402dacff19be
permissions -rw-r--r--
the easy part of the reorg (most files moved around)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     1
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     2
# spec file for package pygobject
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     3
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     4
# Copyright (c) 2005 Sun Microsystems, Inc.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     6
# package are under the same license as the package itself.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     7
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     8
# Owner: laca
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     9
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    10
Name:			pygobject
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    11
License:		LGPL	
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    12
Group:			System/Library
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
Version:		2.12.3
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
Release:		2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
Distribution:		Java Desktop System
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
Vendor:			Sun Microsystems, Inc.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
Summary:		Python bindings for GObject
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    18
Source:			http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.12/pygobject-%{version}.tar.bz2	
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    19
URL:			http://www.gnome.org
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    20
# date:2006-04-05 owner:dcarbery type:feature bugzilla:385129
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
Patch1:                 pygobject-01-uninstalled.pc.diff
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    22
# date:2006-07-27 owner:dcarbery type:bug bugzilla:385127
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
Patch2:                 pygobject-02-void-return.diff
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
Docdir:			%{_defaultdocdir}/doc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
Autoreqprov:		on
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
%define libglade_version 2.4.0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
%define glib2_version 2.6.0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
%define gtk2_version 2.6.0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
%define atk_version 1.8.0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
%define pango_version 1.8.0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
%define python_version 2.4
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
Requires:		libglade >= %{libglade_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
Requires:		gtk2 >= %{gtk2_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
Requires:		glib2 >= %{glib2_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
Requires:		atk >= %{atk_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
Requires:		pango >= %{pango_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
Requires:		python >= %{python_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
BuildRequires: 		gtk2-devel >= %{gtk2_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
BuildRequires:		libglade-devel >= %{libglade_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
BuildRequires:		glib2-devel >= %{glib2_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
BuildRequires:		atk-devel >= %{atk_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
BuildRequires:		pango-devel >= %{pango_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
%description
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
PyGObject is an extension module for python that gives you access to GObject
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
%package devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
Summary: files needed to build wrappers for GObject libraries
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
Group: Development/Languages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
Requires: %{name} = %{version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
%description devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
This package contains files required to build wrappers for GObject
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
libraries so that they interoperate with pygobject.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
%setup -q -n pygobject-%{version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
%patch1 -p1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
%patch2 -p1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
aclocal -I ./m4 $ACLOCAL_FLAGS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
autoconf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
automake -a -c -f
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
%ifos solaris
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
# Disable optimizations on x86 to workaround compiler bug 6382078.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
%ifarch sparc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
CFLAGS="$RPM_OPT_FLAGS"				\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
CFLAGS="$RPM_OPT_FLAGS -xO0"			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
./configure 	--prefix=%{_prefix}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
	    	--sysconfdir=%{_sysconfdir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
make
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
make install DESTDIR=$RPM_BUILD_ROOT \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
    pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
    pythondir=%{_libdir}/python%{python_version}/vendor-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
find $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';'
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
%post
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
%postun
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
%defattr(-, root, root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
%{_libdir}/python?.?/vendor-packages/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
%files devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
%defattr(-, root, root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
%doc examples
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
%doc AUTHORS NEWS README MAPPING ChangeLog
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
%{_bindir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
%{_includedir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
%{_libdir}/pkgconfig/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
%{_libdir}/pygobject/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
%{_datadir}/pygobject/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
%changelog -n pygobject
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   109
* Mon Nov 27 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   110
- Remove reference to pygtk2-02-pygobject-xsl-dir.diff as it has been removed.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   111
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   112
* Mon Nov 27 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   113
- Bump to 2.12.3.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   114
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   115
* Sat Oct 07 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   116
- Add aclocal and automake calls.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   117
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   118
* Wed Oct 04 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   119
- Bump to 2.12.2.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   120
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
* Tue Sep 05 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   122
- Bump to 2.12.1.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   124
* Mon Aug 28 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   125
- Bump to 2.11.4.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   126
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   127
* Tue Aug 22 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   128
- Bump to 2.11.3.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   129
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   130
* Tue Aug 08 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   131
- Bump to 2.11.2.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   132
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   133
* Mon Aug 07 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   134
- Bump to 2.11.1.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   135
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   136
* Fri Jul 21 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   137
- Bump to 2.11.0.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   138
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   139
* Tue Apr 11 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   140
- Bump to 2.10.1.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   141
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   142
* Wed Apr  5 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   143
- Initial Sun release.