1 | %{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
2 | %{!?python_inc:%global python_inc %(%{__python} -c "from distutils.sysconfig import get_python_inc; print get_python_inc(1)")} |
---|
3 | %define py_ver %(python -c 'import sys;print(sys.version[0:3])') |
---|
4 | |
---|
5 | Name: sip |
---|
6 | Summary: SIP - Python/C++ Bindings Generator |
---|
7 | Summary(ja): Python/C++ インターフェイス生成ツール |
---|
8 | Version: 4.12.3 |
---|
9 | Release: 1%{?_dist_release} |
---|
10 | |
---|
11 | License: GPLv2 or GPLv3 |
---|
12 | Group: Development/Tools |
---|
13 | URL: http://www.riverbankcomputing.co.uk/software/sip/intro |
---|
14 | |
---|
15 | Source0: http://www.riverbankcomputing.co.uk/static/Downloads/sip4/%{name}-%{version}.tar.gz |
---|
16 | Patch0: disable-rpaths.diff |
---|
17 | |
---|
18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
19 | BuildRequires: python-devel |
---|
20 | BuildRequires: sed |
---|
21 | |
---|
22 | Vendor: Project Vine |
---|
23 | Distribution: Vine Linux |
---|
24 | |
---|
25 | %description |
---|
26 | SIP is a tool for generating bindings for C++ classes so that they can be |
---|
27 | accessed as normal Python classes. SIP takes many of its ideas from SWIG but, |
---|
28 | because it is specifically designed for C++ and Python, is able to generate |
---|
29 | tighter bindings. SIP is so called because it is a small SWIG. |
---|
30 | |
---|
31 | SIP was originally designed to generate Python bindings for KDE and so has |
---|
32 | explicit support for the signal slot mechanism used by the Qt/KDE class |
---|
33 | libraries. However, SIP can be used to generate Python bindings for any C++ |
---|
34 | class library. |
---|
35 | |
---|
36 | |
---|
37 | %package devel |
---|
38 | Summary: Files needed to generate Python bindings for any C++ class library |
---|
39 | Summary(ja): Python/C++ インタフェース作成に必要なライブラリやヘッダファイル |
---|
40 | Group: Development/Libraries |
---|
41 | Requires: %{name} = %{version}-%{release} |
---|
42 | Requires: python-devel |
---|
43 | Provides: libsip-devel = %{version}-%{release} |
---|
44 | |
---|
45 | %description devel |
---|
46 | This package contains files needed to generate Python bindings for any C++ |
---|
47 | classes library. |
---|
48 | |
---|
49 | |
---|
50 | %prep |
---|
51 | %setup -q |
---|
52 | %patch0 |
---|
53 | |
---|
54 | %build |
---|
55 | %ifarch x86_64 ppc |
---|
56 | OPT_FLAGS="%{optflags} -fPIC" |
---|
57 | %else |
---|
58 | OPT_FLAGS="%{optflags}" |
---|
59 | %endif |
---|
60 | |
---|
61 | %{__python} configure.py -k -d %{python_sitearch} \ |
---|
62 | -b %{_bindir} CXXFLAGS="$OPT_FLAGS" CFLAGS="$OPT_FLAGS" |
---|
63 | make %{?_smp_mflags} |
---|
64 | |
---|
65 | %{__python} configure.py -d %{python_sitearch} \ |
---|
66 | -b %{_bindir} CXXFLAGS="$OPT_FLAGS" CFLAGS="$OPT_FLAGS" |
---|
67 | make %{?_smp_mflags} |
---|
68 | |
---|
69 | |
---|
70 | %install |
---|
71 | rm -rf $RPM_BUILD_ROOT |
---|
72 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
73 | |
---|
74 | install sipconfig.pyc $RPM_BUILD_ROOT%{python_sitearch} |
---|
75 | install -m644 siplib/libsip.a -D $RPM_BUILD_ROOT%{_libdir}/libsip.a |
---|
76 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/sip |
---|
77 | |
---|
78 | |
---|
79 | %clean |
---|
80 | rm -rf $RPM_BUILD_ROOT |
---|
81 | |
---|
82 | %files |
---|
83 | %defattr(-, root, root, 755) |
---|
84 | %doc LICENSE LICENSE-GPL2 LICENSE-GPL3 NEWS README |
---|
85 | %doc doc/html |
---|
86 | %{_bindir}/sip |
---|
87 | %{python_sitearch}/* |
---|
88 | |
---|
89 | %files devel |
---|
90 | %defattr(-, root, root, 755) |
---|
91 | %{python_inc}/* |
---|
92 | %{_libdir}/libsip.a |
---|
93 | %dir %{_datadir}/sip |
---|
94 | |
---|
95 | %changelog |
---|
96 | * Sun Jul 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.12.3-1 |
---|
97 | - new upstream release |
---|
98 | |
---|
99 | * Sun Jan 30 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.12.1-1 |
---|
100 | - new upstream release |
---|
101 | |
---|
102 | * Mon Oct 4 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.10.5-2 |
---|
103 | - add gcc option "-fPIC" also on ppc |
---|
104 | |
---|
105 | * Sat Jul 24 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.10.5-1 |
---|
106 | - new upstream release |
---|
107 | |
---|
108 | * Sun May 09 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.10.2-1 |
---|
109 | - new upstream release |
---|
110 | |
---|
111 | * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 4.10-1 |
---|
112 | - new upstream release |
---|
113 | |
---|
114 | * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 4.9.3-2 |
---|
115 | - rebuilt with python-2.6.4 |
---|
116 | |
---|
117 | * Wed Nov 25 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.9.3-1 |
---|
118 | - new upstream release |
---|
119 | |
---|
120 | * Thu Oct 22 2009 Shu KONNO <owa@bg.wakwak.com> 4.9-1 |
---|
121 | - new upstream release |
---|
122 | - added japanese summary |
---|
123 | - changed source url |
---|
124 | |
---|
125 | * Sat Aug 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.8.2-1 |
---|
126 | - new upstream release |
---|
127 | - remove qt-devel dependency |
---|
128 | |
---|
129 | * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> 4.7.1-1vl1 |
---|
130 | - rebuilt with python-2.5.2 |
---|
131 | - applied new versioning policy and spec in utf-8 |
---|
132 | |
---|
133 | * Fri Nov 30 2007 Shu KONNO <owa@bg.wakwak.com> 4.7.1-0vl1 |
---|
134 | - new upstream release |
---|
135 | - added gcc option "-fPIC" (if x86_64) |
---|
136 | |
---|
137 | * Wed Sep 5 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7-0vl1 |
---|
138 | - new upstream release |
---|
139 | - use qt qmake files |
---|
140 | |
---|
141 | * Sun May 27 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.5-0vl2 |
---|
142 | - rebuilt with new toolchain |
---|
143 | |
---|
144 | * Sun Jun 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.5-0vl1 |
---|
145 | - new upstream release |
---|
146 | - rebuilt with python 2.4.3 |
---|
147 | - changed Group to Development/Languages |
---|
148 | |
---|
149 | * Sun Apr 03 2005 Shu KONNO <owa@bg.wakwak.com> 3.11.1-0vl2 |
---|
150 | - Rebuild for python 2.4.1 |
---|
151 | |
---|
152 | * Sat Jan 15 2005 Satoshi MACHINO <machino@vinelinux.org> 3.11.1-0vl1 |
---|
153 | - built for VineLinux |
---|
154 | - new upstream version |
---|
155 | |
---|
156 | * Sat Dec 04 2004 Michael Scherer <misc@mandrake.org> 3.10.2-5mdk |
---|
157 | - Rebuild for new python |
---|
158 | |
---|
159 | * Wed Jun 9 2004 Götz Waschk <waschk@linux-mandrake.com> 3.10.2-4mdk |
---|
160 | - obsolete libsip10 too |
---|
161 | |
---|
162 | * Mon Jun 7 2004 Götz Waschk <waschk@linux-mandrake.com> 3.10.2-3mdk |
---|
163 | - drop library packages |
---|
164 | |
---|
165 | * Mon Jun 07 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 3.10.2-2mdk |
---|
166 | - fix build and install problems |
---|
167 | - drop .so.*, they no longer exist |
---|
168 | - use %%{py_ver} macro |
---|
169 | |
---|
170 | * Sat Jun 05 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 3.10.2-1mdk |
---|
171 | - 3.10.2 |
---|
172 | |
---|
173 | * Fri Apr 23 2004 Götz Waschk <waschk@linux-mandrake.com> 3.10.1-1mdk |
---|
174 | - add sipconfig |
---|
175 | - major 11 |
---|
176 | - add source URL |
---|
177 | - new version |
---|
178 | |
---|
179 | * Mon Sep 8 2003 Götz Waschk <waschk@linux-mandrake.com> 3.8-3mdk |
---|
180 | - fix buildrequires |
---|
181 | |
---|
182 | * Sun Sep 7 2003 Götz Waschk <waschk@linux-mandrake.com> 3.8-2mdk |
---|
183 | - fix buildrequires |
---|
184 | - move libsip.so to the lib package, as it's required by generated bindings |
---|
185 | - move sip to the devel package |
---|
186 | |
---|
187 | * Wed Aug 20 2003 Austin Acton <aacton@yorku.ca> 3.8-1mdk |
---|
188 | - 3.8 |
---|
189 | |
---|
190 | * Sat Aug 9 2003 Austin Acton <aacton@yorku.ca> 3.6-8mdk |
---|
191 | - the one true fix (eat your heart out per oyvind :-) ) |
---|
192 | |
---|
193 | * Fri Aug 08 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 3.6-7mdk |
---|
194 | - really rebuild for new python (austin was the sucky one this time;) |
---|
195 | |
---|
196 | * Thu Aug 7 2003 Austin Acton <aacton@yorku.ca> 3.6-6mdk |
---|
197 | - python 2.3 |
---|
198 | |
---|
199 | * Sat Jul 19 2003 Till Kamppeter <till@mandrakesoft.com> 3.6-5mdk |
---|
200 | - Rebuild |
---|
201 | |
---|
202 | * Fri Jun 20 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 3.6-4mdk |
---|
203 | - fix path to qt3 (lib64 issues) |
---|
204 | - use %%mklibname macro for -devel package |
---|
205 | |
---|
206 | * Tue May 27 2003 Austin Acton <aacton@yorku.ca> 3.6-3mdk |
---|
207 | - rebuild for rpm 4.2 |
---|
208 | |
---|
209 | * Tue Apr 29 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 3.6-2mdk |
---|
210 | - added QPL to license |
---|
211 | |
---|
212 | * Tue Apr 29 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 3.6-1mdk |
---|
213 | - 3.6 (lib major 9) |
---|
214 | - cleanups |
---|
215 | - fix license |
---|
216 | - make --short-circuitable |
---|
217 | - use %%mklibname macro |
---|
218 | |
---|
219 | * Fri Jan 03 2003 Lenny Cartier <lenny@mandrakesoft.com> 3.5-1mdk |
---|
220 | - 3.5 |
---|
221 | |
---|
222 | * Sat Aug 17 2002 Christian Belisle <cbelisle@mandrakesoft.com> 3.3.2-2mdk |
---|
223 | - fix Provides for libsip9. |
---|
224 | |
---|
225 | * Wed Jul 17 2002 Christian Belisle <cbelisle@mandrakesoft.com> 3.3.2-1mdk |
---|
226 | - 3.3.2 |
---|
227 | - use the new sip's build script |
---|
228 | |
---|
229 | * Sat Jun 29 2002 Olivier Thauvin <thauvin@aerov.jussieu.fr> 3.2.4-1mdk |
---|
230 | - 3.2.4 |
---|
231 | |
---|
232 | * Tue May 28 2002 Lenny Cartier <lenny@mandrakesoft.com> 3.2.2-2mdk |
---|
233 | - rebuild against new libstdc++ |
---|
234 | |
---|
235 | * Mon May 13 2002 Lenny Cartier <lenny@mandrakesoft.com> 3.2.2-1mdk |
---|
236 | - 3.2.2 |
---|
237 | |
---|
238 | * Tue May 07 2002 Lenny Cartier <lenny@mandrakesoft.com> 3.2.1-1mdk |
---|
239 | - 3.2.1 |
---|
240 | |
---|
241 | * Mon Apr 08 2002 Christian Belisle <cbelisle@mandrakesoft.com> 3.1-1mdk |
---|
242 | - version 3.1 (lib major 8). |
---|
243 | - update URL. |
---|
244 | |
---|
245 | * Fri Jan 11 2002 Lenny Cartier <lenny@mandrakesoft.com> 3.0-3mdk |
---|
246 | - merge with RA <ralf_ahlbrink@web.de> mods : |
---|
247 | - added BuildRequires: libpython2.2-devel |
---|
248 | |
---|
249 | * Fri Nov 30 2001 Yves Duret <yduret@mandrakesoft.com> 3.0-1mdk |
---|
250 | - version 3.0 (lib major 7) |
---|
251 | |
---|
252 | * Fri Nov 30 2001 Yves Duret <yduret@mandrakesoft.com> 2.5-2mdk |
---|
253 | - rebuild against libpng3 |
---|
254 | - %%makeinstall_std |
---|
255 | - std %%build step (macros..) |
---|
256 | - added %%dir %%{_includedir}/sip in -devel package |
---|
257 | |
---|
258 | * Mon Sep 03 2001 Lenny Cartier <lenny@mandrakesoft.com> 2.5-1mdk |
---|
259 | - 2.5 |
---|
260 | |
---|
261 | * Mon May 14 2001 Yves BAILLY <ybailly@mandrakesoft.com> 2.4-3mdk |
---|
262 | - fixed some errors in spec file (sorry, my first package) |
---|
263 | |
---|
264 | * Mon May 14 2001 Yves BAILLY <ybailly@mandrakesoft.com> 2.4-2mdk |
---|
265 | - fixed the Python dependency (>= 2.0 instead of = 2.0) |
---|
266 | |
---|
267 | * Mon May 14 2001 Yves BAILLY <ybailly@mandrakesoft.com> 2.4-1mdk |
---|
268 | - upgrade to version 2.4 |
---|
269 | |
---|
270 | * Tue Mar 20 2001 David BAUDENS <baudens@mandrakesoft.com> 2.3-2mdk |
---|
271 | - Rebuild against Qt 2.3.0 |
---|
272 | |
---|
273 | * Wed Feb 21 2001 Lenny Cartier <lenny@mandrakesoft.com> 2.3-1mdk |
---|
274 | - updated to 2.3 |
---|
275 | |
---|
276 | * Mon Feb 12 2001 Lenny Cartier <lenny@mandrakesoft.com> 2.2-1mdk |
---|
277 | - used srpm from Gerard Vermeulen <gvermeul@labs.polycnrs-gre.fr> |
---|
278 | - built on Mandrake-7.2 following Mandrake RPM guidelines |
---|
279 | |
---|
280 | |
---|