[521] | 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 | |
---|
[5374] | 5 | Name: sip |
---|
| 6 | Summary: Python/C++ Bindings Generator |
---|
| 7 | Summary(ja): Python/C++ インターフェイス生成ツール |
---|
| 8 | Version: 4.13.1 |
---|
| 9 | Release: 1%{?_dist_release} |
---|
[1444] | 10 | |
---|
[5374] | 11 | License: GPLv2 or GPLv3 |
---|
| 12 | Group: Development/Tools |
---|
| 13 | URL: http://www.riverbankcomputing.co.uk/software/sip/intro |
---|
[4450] | 14 | |
---|
[5374] | 15 | Source0: http://www.riverbankcomputing.co.uk/static/Downloads/sip4/%{name}-%{version}.tar.gz |
---|
| 16 | Patch0: disable-rpaths.diff |
---|
[521] | 17 | |
---|
[992] | 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[521] | 19 | BuildRequires: python-devel |
---|
| 20 | BuildRequires: sed |
---|
| 21 | |
---|
[2613] | 22 | Vendor: Project Vine |
---|
[521] | 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 |
---|
[5374] | 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} |
---|
[521] | 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 |
---|
[1991] | 55 | %ifarch x86_64 ppc |
---|
[521] | 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) |
---|
[992] | 84 | %doc LICENSE LICENSE-GPL2 LICENSE-GPL3 NEWS README |
---|
[521] | 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 |
---|
[5374] | 96 | * Sat Jan 7 2012 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.13.1-1 |
---|
| 97 | - new upstream release |
---|
| 98 | |
---|
[4450] | 99 | * Sun Jul 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.12.3-1 |
---|
| 100 | - new upstream release |
---|
| 101 | |
---|
[2613] | 102 | * Sun Jan 30 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.12.1-1 |
---|
| 103 | - new upstream release |
---|
| 104 | |
---|
[1991] | 105 | * Mon Oct 4 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.10.5-2 |
---|
| 106 | - add gcc option "-fPIC" also on ppc |
---|
| 107 | |
---|
[1444] | 108 | * Sat Jul 24 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.10.5-1 |
---|
| 109 | - new upstream release |
---|
| 110 | |
---|
[992] | 111 | * Sun May 09 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.10.2-1 |
---|
| 112 | - new upstream release |
---|
| 113 | |
---|
[521] | 114 | * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 4.10-1 |
---|
| 115 | - new upstream release |
---|
| 116 | |
---|
| 117 | * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 4.9.3-2 |
---|
| 118 | - rebuilt with python-2.6.4 |
---|
| 119 | |
---|
| 120 | * Wed Nov 25 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.9.3-1 |
---|
| 121 | - new upstream release |
---|
| 122 | |
---|
| 123 | * Thu Oct 22 2009 Shu KONNO <owa@bg.wakwak.com> 4.9-1 |
---|
| 124 | - new upstream release |
---|
| 125 | - added japanese summary |
---|
| 126 | - changed source url |
---|
| 127 | |
---|
| 128 | * Sat Aug 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.8.2-1 |
---|
| 129 | - new upstream release |
---|
| 130 | - remove qt-devel dependency |
---|
| 131 | |
---|
| 132 | * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> 4.7.1-1vl1 |
---|
| 133 | - rebuilt with python-2.5.2 |
---|
| 134 | - applied new versioning policy and spec in utf-8 |
---|
| 135 | |
---|
| 136 | * Fri Nov 30 2007 Shu KONNO <owa@bg.wakwak.com> 4.7.1-0vl1 |
---|
| 137 | - new upstream release |
---|
| 138 | - added gcc option "-fPIC" (if x86_64) |
---|
| 139 | |
---|
| 140 | * Wed Sep 5 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7-0vl1 |
---|
| 141 | - new upstream release |
---|
| 142 | - use qt qmake files |
---|
| 143 | |
---|
| 144 | * Sun May 27 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.5-0vl2 |
---|
| 145 | - rebuilt with new toolchain |
---|
| 146 | |
---|
| 147 | * Sun Jun 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.5-0vl1 |
---|
| 148 | - new upstream release |
---|
| 149 | - rebuilt with python 2.4.3 |
---|
| 150 | - changed Group to Development/Languages |
---|
| 151 | |
---|
| 152 | * Sun Apr 03 2005 Shu KONNO <owa@bg.wakwak.com> 3.11.1-0vl2 |
---|
| 153 | - Rebuild for python 2.4.1 |
---|
| 154 | |
---|
| 155 | * Sat Jan 15 2005 Satoshi MACHINO <machino@vinelinux.org> 3.11.1-0vl1 |
---|
| 156 | - built for VineLinux |
---|
| 157 | - new upstream version |
---|
| 158 | |
---|
| 159 | * Sat Dec 04 2004 Michael Scherer <misc@mandrake.org> 3.10.2-5mdk |
---|
| 160 | - Rebuild for new python |
---|
| 161 | |
---|
| 162 | * Wed Jun 9 2004 Götz Waschk <waschk@linux-mandrake.com> 3.10.2-4mdk |
---|
| 163 | - obsolete libsip10 too |
---|
| 164 | |
---|
| 165 | * Mon Jun 7 2004 Götz Waschk <waschk@linux-mandrake.com> 3.10.2-3mdk |
---|
| 166 | - drop library packages |
---|
| 167 | |
---|
| 168 | * Mon Jun 07 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 3.10.2-2mdk |
---|
| 169 | - fix build and install problems |
---|
| 170 | - drop .so.*, they no longer exist |
---|
| 171 | - use %%{py_ver} macro |
---|
| 172 | |
---|
| 173 | * Sat Jun 05 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 3.10.2-1mdk |
---|
| 174 | - 3.10.2 |
---|
| 175 | |
---|
| 176 | * Fri Apr 23 2004 Götz Waschk <waschk@linux-mandrake.com> 3.10.1-1mdk |
---|
| 177 | - add sipconfig |
---|
| 178 | - major 11 |
---|
| 179 | - add source URL |
---|
| 180 | - new version |
---|
| 181 | |
---|
| 182 | * Mon Sep 8 2003 Götz Waschk <waschk@linux-mandrake.com> 3.8-3mdk |
---|
| 183 | - fix buildrequires |
---|
| 184 | |
---|
| 185 | * Sun Sep 7 2003 Götz Waschk <waschk@linux-mandrake.com> 3.8-2mdk |
---|
| 186 | - fix buildrequires |
---|
| 187 | - move libsip.so to the lib package, as it's required by generated bindings |
---|
| 188 | - move sip to the devel package |
---|
| 189 | |
---|
| 190 | * Wed Aug 20 2003 Austin Acton <aacton@yorku.ca> 3.8-1mdk |
---|
| 191 | - 3.8 |
---|
| 192 | |
---|
| 193 | * Sat Aug 9 2003 Austin Acton <aacton@yorku.ca> 3.6-8mdk |
---|
| 194 | - the one true fix (eat your heart out per oyvind :-) ) |
---|
| 195 | |
---|
| 196 | * Fri Aug 08 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 3.6-7mdk |
---|
| 197 | - really rebuild for new python (austin was the sucky one this time;) |
---|
| 198 | |
---|
| 199 | * Thu Aug 7 2003 Austin Acton <aacton@yorku.ca> 3.6-6mdk |
---|
| 200 | - python 2.3 |
---|
| 201 | |
---|
| 202 | * Sat Jul 19 2003 Till Kamppeter <till@mandrakesoft.com> 3.6-5mdk |
---|
| 203 | - Rebuild |
---|
| 204 | |
---|
| 205 | * Fri Jun 20 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 3.6-4mdk |
---|
| 206 | - fix path to qt3 (lib64 issues) |
---|
| 207 | - use %%mklibname macro for -devel package |
---|
| 208 | |
---|
| 209 | * Tue May 27 2003 Austin Acton <aacton@yorku.ca> 3.6-3mdk |
---|
| 210 | - rebuild for rpm 4.2 |
---|
| 211 | |
---|
| 212 | * Tue Apr 29 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 3.6-2mdk |
---|
| 213 | - added QPL to license |
---|
| 214 | |
---|
| 215 | * Tue Apr 29 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 3.6-1mdk |
---|
| 216 | - 3.6 (lib major 9) |
---|
| 217 | - cleanups |
---|
| 218 | - fix license |
---|
| 219 | - make --short-circuitable |
---|
| 220 | - use %%mklibname macro |
---|
| 221 | |
---|
| 222 | * Fri Jan 03 2003 Lenny Cartier <lenny@mandrakesoft.com> 3.5-1mdk |
---|
| 223 | - 3.5 |
---|
| 224 | |
---|
| 225 | * Sat Aug 17 2002 Christian Belisle <cbelisle@mandrakesoft.com> 3.3.2-2mdk |
---|
| 226 | - fix Provides for libsip9. |
---|
| 227 | |
---|
| 228 | * Wed Jul 17 2002 Christian Belisle <cbelisle@mandrakesoft.com> 3.3.2-1mdk |
---|
| 229 | - 3.3.2 |
---|
| 230 | - use the new sip's build script |
---|
| 231 | |
---|
| 232 | * Sat Jun 29 2002 Olivier Thauvin <thauvin@aerov.jussieu.fr> 3.2.4-1mdk |
---|
| 233 | - 3.2.4 |
---|
| 234 | |
---|
| 235 | * Tue May 28 2002 Lenny Cartier <lenny@mandrakesoft.com> 3.2.2-2mdk |
---|
| 236 | - rebuild against new libstdc++ |
---|
| 237 | |
---|
| 238 | * Mon May 13 2002 Lenny Cartier <lenny@mandrakesoft.com> 3.2.2-1mdk |
---|
| 239 | - 3.2.2 |
---|
| 240 | |
---|
| 241 | * Tue May 07 2002 Lenny Cartier <lenny@mandrakesoft.com> 3.2.1-1mdk |
---|
| 242 | - 3.2.1 |
---|
| 243 | |
---|
| 244 | * Mon Apr 08 2002 Christian Belisle <cbelisle@mandrakesoft.com> 3.1-1mdk |
---|
| 245 | - version 3.1 (lib major 8). |
---|
| 246 | - update URL. |
---|
| 247 | |
---|
| 248 | * Fri Jan 11 2002 Lenny Cartier <lenny@mandrakesoft.com> 3.0-3mdk |
---|
| 249 | - merge with RA <ralf_ahlbrink@web.de> mods : |
---|
| 250 | - added BuildRequires: libpython2.2-devel |
---|
| 251 | |
---|
| 252 | * Fri Nov 30 2001 Yves Duret <yduret@mandrakesoft.com> 3.0-1mdk |
---|
| 253 | - version 3.0 (lib major 7) |
---|
| 254 | |
---|
| 255 | * Fri Nov 30 2001 Yves Duret <yduret@mandrakesoft.com> 2.5-2mdk |
---|
| 256 | - rebuild against libpng3 |
---|
| 257 | - %%makeinstall_std |
---|
| 258 | - std %%build step (macros..) |
---|
| 259 | - added %%dir %%{_includedir}/sip in -devel package |
---|
| 260 | |
---|
| 261 | * Mon Sep 03 2001 Lenny Cartier <lenny@mandrakesoft.com> 2.5-1mdk |
---|
| 262 | - 2.5 |
---|
| 263 | |
---|
| 264 | * Mon May 14 2001 Yves BAILLY <ybailly@mandrakesoft.com> 2.4-3mdk |
---|
| 265 | - fixed some errors in spec file (sorry, my first package) |
---|
| 266 | |
---|
| 267 | * Mon May 14 2001 Yves BAILLY <ybailly@mandrakesoft.com> 2.4-2mdk |
---|
| 268 | - fixed the Python dependency (>= 2.0 instead of = 2.0) |
---|
| 269 | |
---|
| 270 | * Mon May 14 2001 Yves BAILLY <ybailly@mandrakesoft.com> 2.4-1mdk |
---|
| 271 | - upgrade to version 2.4 |
---|
| 272 | |
---|
| 273 | * Tue Mar 20 2001 David BAUDENS <baudens@mandrakesoft.com> 2.3-2mdk |
---|
| 274 | - Rebuild against Qt 2.3.0 |
---|
| 275 | |
---|
| 276 | * Wed Feb 21 2001 Lenny Cartier <lenny@mandrakesoft.com> 2.3-1mdk |
---|
| 277 | - updated to 2.3 |
---|
| 278 | |
---|
| 279 | * Mon Feb 12 2001 Lenny Cartier <lenny@mandrakesoft.com> 2.2-1mdk |
---|
| 280 | - used srpm from Gerard Vermeulen <gvermeul@labs.polycnrs-gre.fr> |
---|
| 281 | - built on Mandrake-7.2 following Mandrake RPM guidelines |
---|
| 282 | |
---|
| 283 | |
---|