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

  ViewVC Help
Powered by ViewVC 1.1.30