Accepting request 58494 from devel:languages:python
Accepted submit request 58494 from user vuntz OBS-URL: https://build.opensuse.org/request/show/58494 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-gobject?expand=0&rev=1
This commit is contained in:
commit
def5f8e909
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
pygobject-2.26.0.tar.bz2
Normal file
3
pygobject-2.26.0.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5554acff9c27b647144143b0459359864e4a6f2ff62c7ba21cf310ad755cf7c7
|
||||
size 808427
|
385
python-gobject.changes
Normal file
385
python-gobject.changes
Normal file
@ -0,0 +1,385 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 7 15:05:51 CET 2011 - vuntz@opensuse.org
|
||||
|
||||
- Rename source package and binary package from python-gobject2 to
|
||||
python-gobject: there's no reason to have the trailing 2 here.
|
||||
- Add appropriate Provides/Obsoletes for migration.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 27 20:37:08 CEST 2010 - vuntz@opensuse.org
|
||||
|
||||
- Update to version 2.26.0:
|
||||
+ A lot of work for introspection support.
|
||||
+ A lot of work for python3 support.
|
||||
+ Wrap g_get_system_{config,data}_dirs()
|
||||
+ Wrap g_uri_list_extract_uris.
|
||||
+ Add override for GLib.Variant.new_tuple
|
||||
+ Use Bytes instead of Unicode when reading io
|
||||
+ Many bug fixes.
|
||||
+ Fix warnings.
|
||||
+ Code cleanup.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 27 16:00:44 CEST 2010 - vuntz@opensuse.org
|
||||
|
||||
- Fix Supplements of python-gobject2-cairo subpackage to reference
|
||||
the name of the package providing cairo, instead of
|
||||
name-version-arch.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 8 16:49:36 CEST 2010 - vuntz@opensuse.org
|
||||
|
||||
- Merge doc subpackage in devel subpackage, since the files in
|
||||
there are needed when building API docs for other python
|
||||
bindings.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 8 14:29:38 CEST 2010 - vuntz@opensuse.org
|
||||
|
||||
- Update to version 2.21.5:
|
||||
+ Adjust to API break in GObject-Introspection
|
||||
+ Override test fixes for new GTK+ annotations
|
||||
+ Fix up treeiter usage due to caller-allocates annotations in
|
||||
gtk+
|
||||
+ Add __name__ to DynamicModule class.
|
||||
+ Do not override GdkRectangle.
|
||||
+ Add override for TreeModel implementing __len__()
|
||||
+ Fix warnings
|
||||
+ Various fixes to demos, and new demos
|
||||
- Changes from version 2.21.4:
|
||||
+ Merge PyGI
|
||||
+ Various fixes to demos, and new demos
|
||||
- Changes from version 2.21.3:
|
||||
+ Proper handling of null-ok in virtual methods
|
||||
+ Fall back to use the floating references API in glib if there
|
||||
isn't a sinkfunc defined.
|
||||
+ Revert "Drop sinkfuncs."
|
||||
+ [giounix] Make it possible to compile on glib 2.20
|
||||
+ Release the lock when potentially invoking Python code.
|
||||
- Changes from version 2.21.2:
|
||||
+ Drop sinkfuncs.
|
||||
+ Clear error if we failed the import
|
||||
+ Added missing , to keyword list of gio.GFile.set_attribute
|
||||
+ Fix arg conversion in gio.GFile.set_attribute
|
||||
+ Set constants under python 2.5 or before
|
||||
+ Doc Extractor: Use replacements that make sense for &...;
|
||||
expressions.
|
||||
+ Setup.py cosmetic tidy
|
||||
+ Fix crash when importing gio
|
||||
+ Include pygsource.h
|
||||
+ codegen/docextract_to_xml.py: One more &...; replacement
|
||||
( ).
|
||||
+ codegen/docextract_to_xml.py: Replace some &..; that cause
|
||||
errors.
|
||||
+ codegen/docextract_to_xml.py: Handle C++ multi-line comments.
|
||||
+ codegen/docextract.py: Stop final section processing on first
|
||||
match.
|
||||
+ Update doc extraction tool to handle GObjectIntrospection
|
||||
annotations.
|
||||
+ bgo#613341 - pygobject tests seem to require pygtk causing a
|
||||
circular dependencies problem
|
||||
+ Don't raise an error in _pygi_import if pygi support is
|
||||
disabled
|
||||
+ Initialize PyGPollFD_Type.fd_obj to NULL
|
||||
+ Wrap gio.Cancellable.make_pollfd() and add a test
|
||||
+ Make cancellable an optional parameter in many methods
|
||||
+ Documentation fixes.
|
||||
+ Build fixes.
|
||||
- Add gobject-introspection-devel, python-cairo-devel
|
||||
BuildRequires.
|
||||
- Remove non-existing --enable-pygi configure flag.
|
||||
- Create a cairo subpackage, for the pygi cairo binding, so that
|
||||
cairo is not installed by default with the main package (since
|
||||
cairo implies installing X).
|
||||
- Move /usr/bin/pygobject-codegen-2.0 and /usr/share/pygobject/ to
|
||||
devel subpackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 6 12:26:38 CET 2010 - vuntz@opensuse.org
|
||||
|
||||
- Update to version 2.21.1:
|
||||
+ Wrap a lot of new API.
|
||||
+ Make cancellable optional in gio.SocketClient.connect_to_host,
|
||||
gio.SocketAddressEnumerator.next,
|
||||
gio.Resolver.lookup_by_address, GFile.create_readwrite
|
||||
+ Deprecate old gio.Drive methods
|
||||
+ Strip g_ prefix for many other functions
|
||||
+ Strip g_ prefix from InetAddress functions
|
||||
+ Fix function name gio.resolver_get_default
|
||||
+ Register enums and flags in PyGI if needed (bgo#603534)
|
||||
+ Remove a duplicate entry in gio.defs
|
||||
+ Fix handling of uchar in pyg_value_from_pyobject
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 20 11:57:27 CET 2009 - vuntz@opensuse.org
|
||||
|
||||
- Update to version 2.21.0:
|
||||
+ pygmainloop: fix use of PySignal_WakeUpFD API for nested loops
|
||||
(bgo#481569)
|
||||
+ Add capabilities to import wrappers from pygi
|
||||
+ Move threads_init() function from 'gobject' to 'glib'
|
||||
+ Fix wrong minimum checking in float properties (bgo#587637)
|
||||
+ Wrap new API added in GIO 2.22
|
||||
+ Fix bad name when rebuilding the unix source module
|
||||
+ Add the missing limit constants from glibconfig.h (bgo#603244)
|
||||
+ Suppress warnings about format conversion (bgo#603355)
|
||||
+ Properly define Connectable as interface type and not object
|
||||
type
|
||||
+ Wrap new API added in GIO-UNIX 2.22
|
||||
+ Wrap g_find_program_in_path (bgo#598435)
|
||||
+ Add pygi-external.h into Makefile SOURCES
|
||||
- Pass --enable-pygi to configure to have introspection support.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 17 17:54:09 CET 2009 - jengelh@medozas.de
|
||||
|
||||
- Package documentation as noarch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 29 10:20:43 CEST 2009 - vuntz@opensuse.org
|
||||
|
||||
- Update to version 2.20.0:
|
||||
- Allow to use automake 1.11
|
||||
- Specify programming language in .devhelp file
|
||||
- Plug reference leak of GSource in pyg_main_loop_init
|
||||
- Updated uninstalled.pc file
|
||||
- Changes from version 2.19.0:
|
||||
- Add macros to help with Python list to/from GList/GSList
|
||||
conversions.
|
||||
- GIO docs practically completed
|
||||
- GFileInfo.list_attributes should accept None/NULL
|
||||
- Strip out Windows DLL API macros
|
||||
- Document that many functions got moved gobject -> glib
|
||||
- Allow h2def.py to work when there are tabs or multiple spaces
|
||||
after the struct keyword.
|
||||
- Fix build when builddir is not the same as srcdir
|
||||
- Make gio.Emblem constructor new-style
|
||||
- Cleanup GIO overrides to use Python function/method names
|
||||
- Make codegen report errors using Python function/method names
|
||||
- Fix object type in gio.BufferedInputStream_fill_async
|
||||
- Wrap gio.BufferedInputStream.fill_async
|
||||
- Add gio.BufferedOutputStream which was forgotten in the types
|
||||
- Split overrides for gio.MemoryOutputStream
|
||||
- Wrap gio.memory_input_stream_new_from_data
|
||||
- Introduces the girepository module from the former PyBank
|
||||
- Add API appeared in 2.20 but not marked as such in gio docs
|
||||
- Wrap gio.FileOutputStream.query_info_async
|
||||
- Wrap gio.FileInputStream.query_async
|
||||
- Install executable codegen parts with executing permissions
|
||||
- Wrap gio.DataInputStream.read_line_async and read_until_async
|
||||
- Fix gio.OutputStream.splice_async
|
||||
- Add GIO 2.20 API and update docs
|
||||
- Remove AutoReqProv: it's default now.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 27 12:25:51 CEST 2009 - vuntz@novell.com
|
||||
|
||||
- Update to version 2.18.0:
|
||||
+ Improve gio docs with some more classes
|
||||
+ Wrap gio.OutputStream.splice_async()
|
||||
+ Add Python ver into installed libpyglib name
|
||||
+ Wrap gio.OutputStream.flush_async()
|
||||
+ Use 'Requires.private' for libffi in '.pc' files
|
||||
+ Add wrapper for gio.FileAttributeMatcher
|
||||
+ Mark relevant glib.IOChannel methods as METH_NOARGS
|
||||
+ Retire hand-written ChangeLog; autocreate from Git history
|
||||
+ Wrap gio.InputStream.skip_async()
|
||||
+ Add in codegen -n --namespace option and the code to remove dll
|
||||
API in headers, added documentation
|
||||
+ Properly mark glib.get_user_special_dir() as a keywords method
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 1 12:45:48 CEST 2009 - mboman@suse.de
|
||||
|
||||
- Update to version 2.17.0:
|
||||
+ Write a good part of the docs for gio
|
||||
+ Wrap g_mount_guess_content_type
|
||||
g_mount_guess_content_type_finish
|
||||
+ Swap first two arguments of gio.File.query_info_async
|
||||
+ Fix a crash in pyg_type_add_interfaces
|
||||
+ Remove an empty structure, use sizeof(PyObject)
|
||||
+ Wrap four g_get_user_*_dir() functions
|
||||
+ Remove 'ltihooks.py' as using deprecated Python module
|
||||
+ Code maintenance: add .gitignore files
|
||||
+ CellRendererPixbuf stock-size property has wrong type
|
||||
+ Add a doap file after git migration
|
||||
+ missing dep on libffi in pygobject-2.0.pc
|
||||
+ g_volume_monitor_tp_new new function, return the singleton
|
||||
object
|
||||
+ Remove a DeprecationWarning under python 2.6
|
||||
+ several scripts from codegen directory are not distributed
|
||||
+ g_file_copy_async change argument order to keep it consistent
|
||||
with the other methods
|
||||
+ memory leak in gio.File.copy_async
|
||||
+ g_file_monitor should accept None for cancellable and set the
|
||||
default flag to G_FILE_MONITOR_NONE
|
||||
+ pyg_notify_free needs to ensure it has GIL before calling
|
||||
Py_XDECREF
|
||||
+ Wrap g_file_set_display_name_async
|
||||
+ Add a semi-private method to return the option context C object
|
||||
from an option context wrapper
|
||||
+ Converting a negative long Python value to a GUINT64 GValue
|
||||
doesn't error out as it should
|
||||
+ Wrap g_file_set_attributes_async and g_file_set_attributes_finish
|
||||
+ g_file_query_filesystem_info_async fix a typo
|
||||
+ Wrap g_file_query_filesystem_info_async
|
||||
+ Add missing g_file_query_filesystem_info_async and
|
||||
g_file_query_filesystem_info_finish
|
||||
+ Wrap g_file_eject_mountable
|
||||
+ g_file_copy callback cannot be optional
|
||||
+ Swap various kwargs names to reflect the code
|
||||
+ Update the address of the FSF
|
||||
+ Add g_volume_should_automount
|
||||
+ Wrap g_drive_enumerate_identifiers and
|
||||
g_volume_enumerate_identifiers
|
||||
+ Add a couple of convinence functions to convert from/to a
|
||||
python list and an array of strings
|
||||
+ Allow setting pytype wrapper class
|
||||
+ Wrap g_file_enumerator_close_async
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 22 16:32:12 CET 2009 - vuntz@novell.com
|
||||
|
||||
- Update to version 2.16.1:
|
||||
+ Apply the patch provided by Cygwin Ports maintainer
|
||||
(bgo#564018)
|
||||
+ Bad -I ordering can break build, patch from (bgo#566737)
|
||||
+ Fix keyword list to be in sync with positional arguments
|
||||
(bgo#566744)
|
||||
+ Add a comment explaining why the two for loops for registering
|
||||
interfaces
|
||||
+ Huge cleanup of GIO overrides (bgo#566706)
|
||||
+ gtk.Buildable interface method override is not recognized
|
||||
(bgo#566571)
|
||||
+ Do not escape the ampersand "&" in entity references. Replace
|
||||
some unusual entity references in the output with their literal
|
||||
values. (bgo#568485)
|
||||
+ gio.InputStream.read_async can cause memory corruption.
|
||||
(bgo#567792)
|
||||
+ Inconsistent use of tabs and spaces in pygtk.py (bgo#569350)
|
||||
+ Huge fix of memory leaks in GIO (bgo#568427)
|
||||
+ non-async functions don't release python locks before calling
|
||||
blocking C functions (bgo#556250)
|
||||
+ Change comment to avoid false positives when grep'ing for
|
||||
deprecated gtk functions
|
||||
+ ltihooks.py updating license header from GPL to LGPL
|
||||
- Remove gtk-doc BuildRequires.
|
||||
- Use %makeinstall
|
||||
- Stop using pygobject-acinclude.m4: it's not needed anymore, it
|
||||
seems.
|
||||
- Use fdupes.
|
||||
- Move /usr/lib/libpyglib-2.0.so to devel package.
|
||||
- Add post/postun with ldconfig call.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 5 09:59:37 EST 2009 - mboman@suse.de
|
||||
|
||||
- Update to version 2.16.0:
|
||||
+ gobject.timeout_add_seconds() not found in docs (bgo#547119)
|
||||
+ _wrap_g_output_stream_write_async not adding a reference to the
|
||||
buffer passed (bgo#564102)
|
||||
+ gio.VolumeMonitor segfaults (bgo#555613)
|
||||
+ Test if `domain' is not-null before using it to avoids segfaults
|
||||
(bgo#561826)
|
||||
+ g_output_stream_write_all use gsize instead of gssize
|
||||
+ add __repr__ to gio.Drive, gio.Mount and gio.Volume (bgo#530935)
|
||||
+ Missing AC_CONFIG_MACRO_DIR([m4]) (bgo#551227)
|
||||
+ Make codegen not import when corresponding argument types are not
|
||||
registered (bgo#551056)
|
||||
+ Fix typos breaking compilation (bgo#551212)
|
||||
+ GFile load_contents methods chop data at first \0 (bgo#551059)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 04 23:07:17 CEST 2008 - mboman@novell.com
|
||||
|
||||
- Update to version 2.15.4:
|
||||
+ Too many changes and fixes to list. Please see NEWS for full details.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 30 23:07:17 CEST 2008 - maw@suse.de
|
||||
|
||||
- Update to version 2.14.2:
|
||||
+ Allow gobject.property work with subclasses (bgo#523352)
|
||||
+ Unbreak Source.prepare (bgo#523075)
|
||||
+ Never override customly set 'tp_new' and 'tp_alloc'
|
||||
+ Don't link against libffi if we cannot find libffi on the
|
||||
system (bgo#496006)
|
||||
+ Dist .m4 files (bgo#496011)
|
||||
+ Don't return NULL after warning of enum comparsion
|
||||
(bgo#519631).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 3 07:20:21 CEST 2008 - hpj@suse.de
|
||||
|
||||
- Upgraded to version 2.14.1:
|
||||
|
||||
* Avoid wakeups when using Python trunk.
|
||||
* Add an uninstalled.pc.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 20 13:14:09 CEST 2007 - sbrabec@suse.cz
|
||||
|
||||
- Updated to version 2.14.0:
|
||||
* Fix a Python 2.6 deprecation warning
|
||||
* Wrap g_timeout_add_seconds, when compiling with glib 2.14
|
||||
* Always fully initialize the PyGObject
|
||||
* Fix compilation in Solaris, again
|
||||
* Fix check for default value in boolean type
|
||||
* Fix new style properties with subclasses
|
||||
* Docs generation fixes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 9 14:16:06 CET 2007 - sbrabec@suse.cz
|
||||
|
||||
- Splitted python-gobject2-doc from python-gobject2-devel.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 9 00:05:30 CET 2007 - cthiel@suse.de
|
||||
|
||||
- update to version 2.12.3
|
||||
* distutils build fixes
|
||||
* documentation updates
|
||||
* gobject.handler_block_by_func and friends now accept methods
|
||||
* avoid truncating of gparamspec
|
||||
* set __module__ on gobject derived types
|
||||
* Ensure exceptions are raised on errors in gobject.OptionGroup
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 27 19:34:34 CET 2006 - sbrabec@suse.cz
|
||||
|
||||
- Preamble typo fix.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 21 13:45:11 CEST 2006 - cthiel@suse.de
|
||||
|
||||
- update to version 2.12.2
|
||||
* Make PyGObject 64-bit safe for Python 2.5
|
||||
* All headers are now LGPL and not GPL
|
||||
* Remove a couple of GCC warnings
|
||||
* Revive distutils support
|
||||
* Emission hook reference count bugfix
|
||||
* MSVC/ANSI C compilation fix
|
||||
* Bump Ctrl-C timeout handler from 100ms to 1000
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 1 15:25:51 CEST 2006 - cthiel@suse.de
|
||||
|
||||
- update to version 2.12.1
|
||||
* Corrected version check
|
||||
- changes from 2.11.4 to 2.12.0
|
||||
* Install the html files even when using --disable-docs
|
||||
- changes from 2.11.3 to 2.11.4
|
||||
* Include pre-generated html docs in the tarball
|
||||
* Fix bug in do_set_property called from constructor
|
||||
* Fix type registration involving interfaces with signals and/or properties
|
||||
- changes from 2.11.2 to 2.11.3
|
||||
* Documentation updates
|
||||
* Documentation build fixes
|
||||
* PyGObject can now be compiled using a C++ compiler
|
||||
* Type registration bug fix
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 10 18:34:07 CEST 2006 - cthiel@suse.de
|
||||
|
||||
- initial package (version 2.11.2)
|
||||
|
139
python-gobject.spec
Normal file
139
python-gobject.spec
Normal file
@ -0,0 +1,139 @@
|
||||
#
|
||||
# spec file for package python-gobject (Version 2.26.0)
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
|
||||
Name: python-gobject
|
||||
%define _name pygobject
|
||||
Summary: Python bindings for GObject
|
||||
Version: 2.26.0
|
||||
Release: 1
|
||||
# NOTE: on upgrade to a new upstream version (after 2.26.0), change the various Obsoletes from <= to <
|
||||
License: LGPLv2.1+
|
||||
Group: Development/Libraries/Python
|
||||
Url: http://ftp.gnome.org/pub/GNOME/sources/pygobject/
|
||||
Source: %{_name}-%{version}.tar.bz2
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: glib2-devel
|
||||
BuildRequires: gobject-introspection-devel
|
||||
BuildRequires: python-cairo-devel
|
||||
# our libffi package doesn't have a pkg-config file
|
||||
# BuildRequires: libffi-devel
|
||||
BuildRequires: python-devel
|
||||
Provides: python-gobject2 = %{version}
|
||||
# Note: we keep <= (and a rpmlint warning...) until we get a version higher than 2.26.0 (when this provides/obsoletes was introduced)
|
||||
Obsoletes: python-gobject2 <= %{version}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%{py_requires}
|
||||
|
||||
%description
|
||||
Pygobjects is an extension module for python that gives you access to
|
||||
GLib's GObjects.
|
||||
|
||||
%package cairo
|
||||
License: LGPLv2.1+
|
||||
Summary: Python bindings for GObject -- Cairo bindings
|
||||
Group: Development/Libraries/Python
|
||||
Requires: %{name} = %{version}
|
||||
Provides: python-gobject2-cairo = %{version}
|
||||
# Note: we keep <= (and a rpmlint warning...) until we get a version higher than 2.26.0 (when this provides/obsoletes was introduced)
|
||||
Obsoletes: python-gobject2-cairo <= %{version}
|
||||
%define cairo_real_package %(rpm -q --qf '%{NAME}' --whatprovides cairo)
|
||||
Supplements: packageand(%{name}:%{cairo_real_package})
|
||||
|
||||
%description cairo
|
||||
Pygobjects is an extension module for python that gives you access to
|
||||
GLib's GObjects.
|
||||
|
||||
This package contains the Python Cairo bindings for GObject.
|
||||
|
||||
%package devel
|
||||
License: LGPLv2.1+
|
||||
Summary: Python bindings for GObject
|
||||
Group: Development/Libraries/Python
|
||||
Requires: %{name} = %{version} glib2-devel
|
||||
Provides: python-gobject2-devel = %{version}
|
||||
# Note: we keep <= (and a rpmlint warning...) until we get a version higher than 2.26.0 (when this provides/obsoletes was introduced)
|
||||
Obsoletes: python-gobject2-devel <= %{version}
|
||||
Provides: python-gobject2-doc = %{version}
|
||||
Obsoletes: python-gobject2-doc < %{version}
|
||||
|
||||
%description devel
|
||||
This package contains files required to build wrappers for gobject
|
||||
addon libraries such as pygtk.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{_name}-%{version}
|
||||
|
||||
%build
|
||||
%configure
|
||||
make %{?jobs:-j%jobs}
|
||||
|
||||
%install
|
||||
%makeinstall
|
||||
find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f
|
||||
rm examples/Makefile*
|
||||
%fdupes $RPM_BUILD_ROOT
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS NEWS README ChangeLog examples
|
||||
%dir %{py_sitedir}/gtk-2.0
|
||||
%{py_sitedir}/gtk-2.0/gi/
|
||||
%{py_sitedir}/gtk-2.0/gio/
|
||||
%{py_sitedir}/gtk-2.0/glib/
|
||||
%{py_sitedir}/gtk-2.0/gobject/
|
||||
%{py_sitedir}/gtk-2.0/dsextras.py*
|
||||
%{py_sitedir}/pygtk.*
|
||||
%{_libdir}/*.so.*
|
||||
# Live in cairo subpackage
|
||||
%exclude %{py_sitedir}/gtk-2.0/gi/_gi_cairo.so
|
||||
|
||||
%files cairo
|
||||
%defattr(-,root,root)
|
||||
%{py_sitedir}/gtk-2.0/gi/_gi_cairo.so
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/pygtk-2.0/
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/pygobject-2.0.pc
|
||||
## codegen
|
||||
%{_bindir}/pygobject-codegen-2.0
|
||||
# we explicitly list the directories here to be sure we don't include something
|
||||
# that should live in the main package
|
||||
%dir %{_datadir}/%{_name}
|
||||
%dir %{_datadir}/%{_name}/2.0
|
||||
%{_datadir}/%{_name}/2.0/codegen/
|
||||
%{_datadir}/%{_name}/2.0/defs/
|
||||
%{_datadir}/%{_name}/xsl/
|
||||
## doc: we need the files there since building API docs for other python
|
||||
## bindings require some files from here
|
||||
# Own these repositories to not depend on gtk-doc while building:
|
||||
%dir %{_datadir}/gtk-doc
|
||||
%dir %{_datadir}/gtk-doc/html
|
||||
%{_datadir}/gtk-doc/html/pygobject/
|
||||
|
||||
%changelog
|
Loading…
x
Reference in New Issue
Block a user