/[packages]/cauldron/python-gobject3/current/SPECS/python-gobject3.spec
ViewVC logotype

Contents of /cauldron/python-gobject3/current/SPECS/python-gobject3.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 134907 - (show annotations) (download)
Mon Aug 22 17:22:56 2011 UTC (9 years, 8 months ago) by fwang
File size: 3096 byte(s)
imported package python-gobject3
1 %define oname pygobject
2
3 %define api 2.0
4 %define major 0
5 %define libname %mklibname pyglib-gi %api %major
6
7 Summary: Python bindings for GObject Introspection
8 Name: python-gobject3
9 Version: 2.90.2
10 Release: %mkrel 1
11 Source0: http://ftp.gnome.org/pub/GNOME/sources/pygobject/%{oname}-%{version}.tar.xz
12 Patch0: pygobject-2.90.2-link.patch
13 License: LGPLv2+ and MIT
14 Group: Development/Python
15 Url: http://www.gnome.org
16 BuildRequires: python-devel >= 2.5.2
17 BuildRequires: pkgconfig(glib-2.0) >= 2.24.0
18 BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.10.2
19 BuildRequires: pkgconfig(libffi) >= 3.0
20 BuildRequires: pkgconfig(pycairo) >= 1.2.0
21 BuildRequires: gtk-doc
22 BuildRequires: automake
23
24 %description
25 The %{name} package provides a convenient wrapper for the GObject library
26 for use in Python programs.
27
28 %package -n python-gi
29 Summary: Python bindings for GObject Introspection
30 Group: Development/Python
31 Provides: python-gobject-introspection = %{version}-%{release}
32 Provides: %{name} = %{version}-%{release}
33 Conflicts: python-gobject < 2.28.6-4
34
35 %description -n python-gi
36 The %{name} package provides a convenient wrapper for the GObject library
37 for use in Python programs.
38
39 This package contains the Python GObject Introspection bindings.
40
41 %package -n python-gi-cairo
42 Summary: Python-gi bindings for Cairo
43 Group: Development/Python
44 Requires: python-gi = %{version}-%{version}
45 Requires: python-cairo >= 1.2.0
46 Obsoletes: python-gobject-cairo < 2.28.6-4
47 Provides: python-gobject-cairo = %{version}-%{version}
48
49 %description -n python-gi-cairo
50 The %{name} package provides a convenient wrapper for the GObject library
51 for use in Python programs.
52
53 This package contains the Python-gi Cairo bindings.
54
55 %package -n %libname
56 Group: System/Libraries
57 Summary: Python GObject Introspection bindings shared library
58
59 %description -n %libname
60 This archive contains bindings for the GObject, to be used in Python
61 It is a fairly complete set of bindings, it's already rather useful,
62 and is usable to write moderately complex programs.
63
64 %package devel
65 Group: Development/C
66 Summary: Python-gobject development files
67 Requires: %libname = %version-%release
68
69 %description devel
70 This contains the python-gobject development files, including C
71 header, pkg-config file.
72
73 %prep
74 %setup -q -n %oname-%version
75 %patch0 -p0
76
77 %build
78 %configure2_5x
79 %make
80
81 %install
82 rm -rf %{buildroot}
83 %makeinstall_std
84
85 find %buildroot -name *.la | xargs rm
86
87 # dsextra stuff is for windows installs so remove it
88 rm -fr %{buildroot}%{python_sitearch}/gtk-2.0
89
90 # docs are out of date and are being reworked upstream
91 # so remove them
92 rm -rf %{buildroot}%{_datadir}/gtk-doc
93 rm -rf %{buildroot}%{_datadir}/pygobject
94
95 %files -n python-gi
96 %defattr(-,root,root)
97 %doc README NEWS AUTHORS ChangeLog
98 %py_platsitedir/gi
99 # Live in cairo subpackage
100 %exclude %py_platsitedir/gi/_gi_cairo.so
101
102 %files -n python-gi-cairo
103 %defattr(-,root,root)
104 %py_platsitedir/gi/_gi_cairo.so
105
106 %files -n %libname
107 %defattr(-,root,root)
108 %{_libdir}/libpyglib-gi-%{api}-python.so.%{major}*
109
110 %files devel
111 %defattr(-,root,root)
112 %{_includedir}/*
113 %{_libdir}/*.so
114 %{_libdir}/pkgconfig/*.pc

  ViewVC Help
Powered by ViewVC 1.1.28