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