sip-vl.spec 8.5 KB

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