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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30