pygobject.spec revision 13099
10139N/A#
10139N/A# spec file for package pygobject
10139N/A#
12134N/A# Copyright (c) 2008 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
10139N/A#
10139N/A# Owner: laca
10139N/A#
10139N/AName: pygobject
10139N/ALicense: LGPL
10139N/AGroup: System/Library
13099N/AVersion: 2.14.2
10139N/ARelease: 2
10139N/ADistribution: Java Desktop System
10139N/AVendor: Sun Microsystems, Inc.
10139N/ASummary: Python bindings for GObject
11266N/ASource: http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.14/pygobject-%{version}.tar.bz2
11409N/A#owner:dcarbery date:2007-10-16 bugzilla:487523 type:bug
12134N/APatch1: pygobject-01-pc-file.diff
10139N/AURL: http://www.gnome.org
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/ADocdir: %{_defaultdocdir}/doc
10139N/AAutoreqprov: on
10139N/A
10139N/A%define libglade_version 2.4.0
10139N/A%define glib2_version 2.6.0
10139N/A%define gtk2_version 2.6.0
10139N/A%define atk_version 1.8.0
10139N/A%define pango_version 1.8.0
10139N/A%define python_version 2.4
10139N/A
10139N/ARequires: libglade >= %{libglade_version}
10139N/ARequires: gtk2 >= %{gtk2_version}
10139N/ARequires: glib2 >= %{glib2_version}
10139N/ARequires: atk >= %{atk_version}
10139N/ARequires: pango >= %{pango_version}
10139N/ARequires: python >= %{python_version}
10139N/ABuildRequires: gtk2-devel >= %{gtk2_version}
10139N/ABuildRequires: libglade-devel >= %{libglade_version}
10139N/ABuildRequires: glib2-devel >= %{glib2_version}
10139N/ABuildRequires: atk-devel >= %{atk_version}
10139N/ABuildRequires: pango-devel >= %{pango_version}
10139N/A
10139N/A%description
10139N/APyGObject is an extension module for python that gives you access to GObject
10139N/A
10139N/A%package devel
10139N/ASummary: files needed to build wrappers for GObject libraries
10139N/AGroup: Development/Languages
10139N/ARequires: %{name} = %{version}
10139N/A
10139N/A%description devel
10139N/AThis package contains files required to build wrappers for GObject
10139N/Alibraries so that they interoperate with pygobject.
10139N/A
10139N/A%prep
10139N/A%setup -q -n pygobject-%{version}
11359N/A%patch1 -p1
10139N/A
10139N/A%build
10139N/A%ifos solaris
10139N/A# Disable optimizations on x86 to workaround compiler bug 6382078.
10139N/A%ifarch sparc
10139N/ACFLAGS="$RPM_OPT_FLAGS" \
10139N/A%else
10139N/ACFLAGS="$RPM_OPT_FLAGS -xO0" \
10139N/A%endif
10139N/A%endif
10911N/A# Append -xc99 to fix #error failure in /usr/include/sys/feature_tests.h
10911N/ACFLAGS="$CFLAGS -xc99"
10139N/A./configure --prefix=%{_prefix} \
10139N/A --sysconfdir=%{_sysconfdir}
10139N/Amake
10139N/A
10139N/A%install
10139N/Amake install DESTDIR=$RPM_BUILD_ROOT \
10139N/A pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
10139N/A pythondir=%{_libdir}/python%{python_version}/vendor-packages
10139N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
10139N/Afind $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';'
10139N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%post
10139N/A
10139N/A%postun
10139N/A
10139N/A%files
10139N/A%defattr(-, root, root)
10139N/A%{_libdir}/python?.?/vendor-packages/*
10139N/A
10139N/A%files devel
10139N/A%defattr(-, root, root)
10139N/A%doc examples
10139N/A%doc AUTHORS NEWS README MAPPING ChangeLog
10139N/A%{_bindir}/*
10139N/A%{_includedir}/*
10139N/A%{_libdir}/pkgconfig/*
10139N/A%{_libdir}/pygobject/*
10139N/A%{_datadir}/pygobject/*
10139N/A
10139N/A%changelog -n pygobject
13099N/A* Mon May 26 2008 - damien.carbery@sun.com
13099N/A- Bump to 2.14.2.
13099N/A
12134N/A* Fri Jan 04 2008 - damien.carbery@sun.com
12134N/A- Bump to 2.14.1. Remove upstream patch, 01-uninst-datadir; rename rest.
12134N/A
11407N/A* Tue Oct 16 2007 - damien.carbery@sun.com
11407N/A- Add patch, 02-pc-file, to add entries to the pc files to support building
11407N/A against the uninstalled module.
11407N/A
11359N/A* Sun Oct 07 2007 - damien.carbery@sun.com
11359N/A- Add patch, 01-uninst-datadir, to add a 'datadir' entry to the uninstalled pc
11359N/A file.
11359N/A
11266N/A* Wed Sep 19 2007 - damien.carbery@sun.com
11266N/A- Bump to 2.14.0.
11266N/A
10910N/A* Mon Jul 09 2007 - damien.carbery@sun.com
10910N/A- Bump to 2.13.2. Remove upstream patches, 01-gcc-wall and 02-return-zero.
10911N/A Remove autofoo calls because configure.ac patches removed.
10911N/A Append -xc99 to CFLAGS to fix #error in /usr/include/sys/feature_tests.h
10910N/A
10592N/A* Wed May 09 2007 - damien.carbery@sun.com
10592N/A- Bump to 2.13.1. Remove upstream patches, 01-uninstalled.pc and 02-void-return.
10592N/A Add patches, 01-gcc-wall and 02-return-zero, to fix build issues.
10592N/A
10139N/A* Mon Nov 27 2006 - damien.carbery@sun.com
10139N/A- Remove reference to pygtk2-02-pygobject-xsl-dir.diff as it has been removed.
10139N/A
10139N/A* Mon Nov 27 2006 - damien.carbery@sun.com
10139N/A- Bump to 2.12.3.
10139N/A
10139N/A* Sat Oct 07 2006 - brian.cameron@sun.com
10139N/A- Add aclocal and automake calls.
10139N/A
10139N/A* Wed Oct 04 2006 - damien.carbery@sun.com
10139N/A- Bump to 2.12.2.
10139N/A
10139N/A* Tue Sep 05 2006 - damien.carbery@sun.com
10139N/A- Bump to 2.12.1.
10139N/A
10139N/A* Mon Aug 28 2006 - damien.carbery@sun.com
10139N/A- Bump to 2.11.4.
10139N/A
10139N/A* Tue Aug 22 2006 - damien.carbery@sun.com
10139N/A- Bump to 2.11.3.
10139N/A
10139N/A* Tue Aug 08 2006 - damien.carbery@sun.com
10139N/A- Bump to 2.11.2.
10139N/A
10139N/A* Mon Aug 07 2006 - damien.carbery@sun.com
10139N/A- Bump to 2.11.1.
10139N/A
10139N/A* Fri Jul 21 2006 - damien.carbery@sun.com
10139N/A- Bump to 2.11.0.
10139N/A
10139N/A* Tue Apr 11 2006 - damien.carbery@sun.com
10139N/A- Bump to 2.10.1.
10139N/A
10139N/A* Wed Apr 5 2006 - damien.carbery@sun.com
10139N/A- Initial Sun release.