1 | %{!?python3_sitearch: %define python3_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} |
---|
2 | |
---|
3 | Name: pygobject3 |
---|
4 | Summary: Python bindings for GObject Introspection |
---|
5 | Summary(ja): GObject Introspection の Python バインディング |
---|
6 | Version: 3.20.1 |
---|
7 | Release: 1%{?_dist_release} |
---|
8 | |
---|
9 | Group: Development/Languages |
---|
10 | License: LGPL |
---|
11 | URL: http://www.pygtk.org/ |
---|
12 | |
---|
13 | Source: http://ftp.gnome.org/pub/GNOME/sources/pygobject/3.20/pygobject-%{version}.tar.xz |
---|
14 | |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
16 | BuildRequires: glib2-devel >= 2.26.0 |
---|
17 | BuildRequires: python-devel >= 2.6 |
---|
18 | BuildRequires: libffi-devel |
---|
19 | BuildRequires: libtool, automake |
---|
20 | BuildRequires: gobject-introspection-devel >= 0.9.8 |
---|
21 | BuildRequires: pycairo-devel >= 1.8.10 |
---|
22 | |
---|
23 | Obsoletes: %{name}-doc < 3.10.0 |
---|
24 | |
---|
25 | Vendor: Project Vine |
---|
26 | Distribution: Vine Linux |
---|
27 | Packager: Takemikaduchi |
---|
28 | |
---|
29 | %description |
---|
30 | pygobject provides a convenient wrapper for the GObject library |
---|
31 | for use in Python programs. |
---|
32 | |
---|
33 | %package devel |
---|
34 | Summary: Development files for building add-on libraries |
---|
35 | Group: Development/Libraries |
---|
36 | Requires: %{name} = %{version}-%{release} |
---|
37 | Requires: glib2-devel |
---|
38 | Requires: libffi-devel |
---|
39 | Requires: pkgconfig |
---|
40 | |
---|
41 | %description devel |
---|
42 | This package contains files required to build wrappers for |
---|
43 | pygobject-based libraries such as pygtk2. |
---|
44 | |
---|
45 | %package -n python3-pygobject |
---|
46 | Summary: Python3 bindings for GObject Introspection |
---|
47 | Summary(ja): GObject Introspection の Python3 バインディング |
---|
48 | BuildRequires: python3-pycairo-devel >= 1.10.0 |
---|
49 | Requires: python3 >= 3.3 |
---|
50 | Obsoletes: python3-pygobject < 3.16.1 |
---|
51 | |
---|
52 | %description -n python3-pygobject |
---|
53 | python3-pygobject provides a convenient wrapper for the GObject library |
---|
54 | for use in Python3 programs. |
---|
55 | |
---|
56 | %prep |
---|
57 | %setup -q -n pygobject-%{version} |
---|
58 | |
---|
59 | # python3 |
---|
60 | rm -rf ../python3 |
---|
61 | cp -a . ../python3 |
---|
62 | |
---|
63 | %build |
---|
64 | # --disable-docs doesn't work; it builds the docs anyway. |
---|
65 | %configure \ |
---|
66 | --with-python=python2 \ |
---|
67 | --enable-silent-rules \ |
---|
68 | --disable-static \ |
---|
69 | --enable-thread |
---|
70 | export tagname=CC |
---|
71 | make LIBTOOL=/usr/bin/libtool |
---|
72 | |
---|
73 | # python3 |
---|
74 | pushd ../python3 |
---|
75 | %configure \ |
---|
76 | --with-python=python3 \ |
---|
77 | --enable-silent-rules \ |
---|
78 | --disable-static \ |
---|
79 | --enable-thread |
---|
80 | export tagname=CC |
---|
81 | make LIBTOOL=/usr/bin/libtool |
---|
82 | popd |
---|
83 | |
---|
84 | %install |
---|
85 | rm -rf $RPM_BUILD_ROOT |
---|
86 | export tagname=CC |
---|
87 | |
---|
88 | # python3 |
---|
89 | pushd ../python3 |
---|
90 | make LIBTOOL=/usr/bin/libtool DESTDIR=$RPM_BUILD_ROOT install |
---|
91 | |
---|
92 | find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f |
---|
93 | rm -f examples/Makefile* |
---|
94 | popd |
---|
95 | rm -rf ../python3 |
---|
96 | |
---|
97 | # python2 |
---|
98 | make LIBTOOL=/usr/bin/libtool DESTDIR=$RPM_BUILD_ROOT install |
---|
99 | |
---|
100 | find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f |
---|
101 | rm -f examples/Makefile* |
---|
102 | |
---|
103 | # conflict with pygobject |
---|
104 | rm -rf $RPM_BUILD_ROOT%{python_sitearch}/gtk-2.0 |
---|
105 | rm -rf $RPM_BUILD_ROOT%{_datadir}/pygobject |
---|
106 | |
---|
107 | |
---|
108 | %clean |
---|
109 | rm -fr $RPM_BUILD_ROOT |
---|
110 | |
---|
111 | %files |
---|
112 | %defattr(-,root,root,-) |
---|
113 | %doc AUTHORS NEWS README ChangeLog |
---|
114 | %doc examples |
---|
115 | %{_libdir}/python2.7/site-packages/pygtkcompat |
---|
116 | %{python_sitearch}/*.egg-info |
---|
117 | %{python_sitearch}/gi |
---|
118 | |
---|
119 | %files devel |
---|
120 | %defattr(-,root,root,-) |
---|
121 | %{_includedir}/pygobject-3.0/pygobject.h |
---|
122 | %{_libdir}/pkgconfig/pygobject-3.0.pc |
---|
123 | |
---|
124 | %files -n python3-pygobject |
---|
125 | %defattr(-,root,root,-) |
---|
126 | %doc AUTHORS NEWS README ChangeLog |
---|
127 | %{python3_sitearch}/pygtkcompat |
---|
128 | %{python3_sitearch}/*.egg-info |
---|
129 | %{python3_sitearch}/gi |
---|
130 | |
---|
131 | |
---|
132 | %changelog |
---|
133 | * Fri Jul 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.20.1-1 |
---|
134 | - new upstream release |
---|
135 | |
---|
136 | * Thu Nov 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.18.2-2 |
---|
137 | - fix spec file |
---|
138 | |
---|
139 | * Sat Oct 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.18.2-1 |
---|
140 | - new upstream release |
---|
141 | |
---|
142 | * Sun Jun 28 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.16.2-1 |
---|
143 | - new upstream release |
---|
144 | |
---|
145 | * Sun Apr 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.16.1-1 |
---|
146 | - new upstream release |
---|
147 | - create python3-pygobject subpackage |
---|
148 | |
---|
149 | * Mon Mar 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.16.0-1 |
---|
150 | - new upstream release |
---|
151 | |
---|
152 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.14.0-1 |
---|
153 | - new upstream release |
---|
154 | |
---|
155 | * Fri Jun 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.2-1 |
---|
156 | - new upstream release |
---|
157 | |
---|
158 | * Sat Apr 19 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.1-1 |
---|
159 | - new upstream release |
---|
160 | |
---|
161 | * Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.0-1 |
---|
162 | - new upstream release |
---|
163 | |
---|
164 | * Sun Nov 24 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.2-1 |
---|
165 | - new upstream release |
---|
166 | |
---|
167 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.1-1 |
---|
168 | - new upstream release |
---|
169 | - remove doc subpackage |
---|
170 | |
---|
171 | * Mon Jul 15 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.3-1 |
---|
172 | - new upstream release |
---|
173 | |
---|
174 | * Sat May 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.2-1 |
---|
175 | - new upstream release |
---|
176 | |
---|
177 | * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.1-1 |
---|
178 | - new upstream release |
---|
179 | |
---|
180 | * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.1-1 |
---|
181 | - new upstream release |
---|
182 | |
---|
183 | * Wed Nov 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.4.2-1 |
---|
184 | - new upstream release |
---|
185 | |
---|
186 | * Thu Oct 18 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.4.1.1-1 |
---|
187 | - new upstream release |
---|
188 | |
---|
189 | * Thu Sep 27 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.4.0-1 |
---|
190 | - new upstream release |
---|
191 | |
---|
192 | * Sun May 20 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.2-1 |
---|
193 | - new upstream release |
---|
194 | |
---|
195 | * Sat Mar 31 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.0-1 |
---|
196 | - new upstream release |
---|
197 | |
---|
198 | * Wed Feb 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.4-2 |
---|
199 | - rebuild with python-2.7.2 |
---|
200 | |
---|
201 | * Wed Feb 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.4-1 |
---|
202 | - new upstream release |
---|
203 | |
---|
204 | * Thu Nov 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.2-1 |
---|
205 | - new upstream release |
---|
206 | |
---|
207 | * Thu Oct 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.1-1 |
---|
208 | - new upstream release |
---|
209 | |
---|
210 | * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.0-1 |
---|
211 | - new upstream release |
---|
212 | |
---|
213 | * Sat Sep 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.90.3-1 |
---|
214 | - initial build for Vine Linux |
---|
215 | |
---|