sip-vl.spec 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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.16.4
  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. * Sat Nov 8 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 4.16.4-1
  74. - new upstream release
  75. * Mon May 05 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.15.5-1
  76. - new upstream release
  77. * Sun Dec 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.15.3-1
  78. - new upstream release
  79. * Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.7-1
  80. - new upstream release
  81. * Wed Jun 05 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.6-1
  82. - new upstream release
  83. * Sun Jul 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.13.3-1
  84. - new upstream release
  85. * Sat Feb 18 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.13.1-2
  86. - rebuild with python-2.7.2
  87. * Sat Jan 7 2012 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.13.1-1
  88. - new upstream release
  89. * Sun Jul 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.12.3-1
  90. - new upstream release
  91. * Sun Jan 30 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.12.1-1
  92. - new upstream release
  93. * Mon Oct 4 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.10.5-2
  94. - add gcc option "-fPIC" also on ppc
  95. * Sat Jul 24 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.10.5-1
  96. - new upstream release
  97. * Sun May 09 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.10.2-1
  98. - new upstream release
  99. * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 4.10-1
  100. - new upstream release
  101. * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 4.9.3-2
  102. - rebuilt with python-2.6.4
  103. * Wed Nov 25 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.9.3-1
  104. - new upstream release
  105. * Thu Oct 22 2009 Shu KONNO <owa@bg.wakwak.com> 4.9-1
  106. - new upstream release
  107. - added japanese summary
  108. - changed source url
  109. * Sat Aug 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.8.2-1
  110. - new upstream release
  111. - remove qt-devel dependency
  112. * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> 4.7.1-1vl1
  113. - rebuilt with python-2.5.2
  114. - applied new versioning policy and spec in utf-8
  115. * Fri Nov 30 2007 Shu KONNO <owa@bg.wakwak.com> 4.7.1-0vl1
  116. - new upstream release
  117. - added gcc option "-fPIC" (if x86_64)
  118. * Wed Sep 5 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7-0vl1
  119. - new upstream release
  120. - use qt qmake files
  121. * Sun May 27 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.5-0vl2
  122. - rebuilt with new toolchain
  123. * Sun Jun 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.5-0vl1
  124. - new upstream release
  125. - rebuilt with python 2.4.3
  126. - changed Group to Development/Languages
  127. * Sun Apr 03 2005 Shu KONNO <owa@bg.wakwak.com> 3.11.1-0vl2
  128. - Rebuild for python 2.4.1
  129. * Sat Jan 15 2005 Satoshi MACHINO <machino@vinelinux.org> 3.11.1-0vl1
  130. - built for VineLinux
  131. - new upstream version
  132. * Sat Dec 04 2004 Michael Scherer <misc@mandrake.org> 3.10.2-5mdk
  133. - Rebuild for new python
  134. * Wed Jun 9 2004 Götz Waschk <waschk@linux-mandrake.com> 3.10.2-4mdk
  135. - obsolete libsip10 too
  136. * Mon Jun 7 2004 Götz Waschk <waschk@linux-mandrake.com> 3.10.2-3mdk
  137. - drop library packages
  138. * Mon Jun 07 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 3.10.2-2mdk
  139. - fix build and install problems
  140. - drop .so.*, they no longer exist
  141. - use %%{py_ver} macro
  142. * Sat Jun 05 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 3.10.2-1mdk
  143. - 3.10.2
  144. * Fri Apr 23 2004 Götz Waschk <waschk@linux-mandrake.com> 3.10.1-1mdk
  145. - add sipconfig
  146. - major 11
  147. - add source URL
  148. - new version
  149. * Mon Sep 8 2003 Götz Waschk <waschk@linux-mandrake.com> 3.8-3mdk
  150. - fix buildrequires
  151. * Sun Sep 7 2003 Götz Waschk <waschk@linux-mandrake.com> 3.8-2mdk
  152. - fix buildrequires
  153. - move libsip.so to the lib package, as it's required by generated bindings
  154. - move sip to the devel package
  155. * Wed Aug 20 2003 Austin Acton <aacton@yorku.ca> 3.8-1mdk
  156. - 3.8
  157. * Sat Aug 9 2003 Austin Acton <aacton@yorku.ca> 3.6-8mdk
  158. - the one true fix (eat your heart out per oyvind :-) )
  159. * Fri Aug 08 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 3.6-7mdk
  160. - really rebuild for new python (austin was the sucky one this time;)
  161. * Thu Aug 7 2003 Austin Acton <aacton@yorku.ca> 3.6-6mdk
  162. - python 2.3
  163. * Sat Jul 19 2003 Till Kamppeter <till@mandrakesoft.com> 3.6-5mdk
  164. - Rebuild
  165. * Fri Jun 20 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 3.6-4mdk
  166. - fix path to qt3 (lib64 issues)
  167. - use %%mklibname macro for -devel package
  168. * Tue May 27 2003 Austin Acton <aacton@yorku.ca> 3.6-3mdk
  169. - rebuild for rpm 4.2
  170. * Tue Apr 29 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 3.6-2mdk
  171. - added QPL to license
  172. * Tue Apr 29 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 3.6-1mdk
  173. - 3.6 (lib major 9)
  174. - cleanups
  175. - fix license
  176. - make --short-circuitable
  177. - use %%mklibname macro
  178. * Fri Jan 03 2003 Lenny Cartier <lenny@mandrakesoft.com> 3.5-1mdk
  179. - 3.5
  180. * Sat Aug 17 2002 Christian Belisle <cbelisle@mandrakesoft.com> 3.3.2-2mdk
  181. - fix Provides for libsip9.
  182. * Wed Jul 17 2002 Christian Belisle <cbelisle@mandrakesoft.com> 3.3.2-1mdk
  183. - 3.3.2
  184. - use the new sip's build script
  185. * Sat Jun 29 2002 Olivier Thauvin <thauvin@aerov.jussieu.fr> 3.2.4-1mdk
  186. - 3.2.4
  187. * Tue May 28 2002 Lenny Cartier <lenny@mandrakesoft.com> 3.2.2-2mdk
  188. - rebuild against new libstdc++
  189. * Mon May 13 2002 Lenny Cartier <lenny@mandrakesoft.com> 3.2.2-1mdk
  190. - 3.2.2
  191. * Tue May 07 2002 Lenny Cartier <lenny@mandrakesoft.com> 3.2.1-1mdk
  192. - 3.2.1
  193. * Mon Apr 08 2002 Christian Belisle <cbelisle@mandrakesoft.com> 3.1-1mdk
  194. - version 3.1 (lib major 8).
  195. - update URL.
  196. * Fri Jan 11 2002 Lenny Cartier <lenny@mandrakesoft.com> 3.0-3mdk
  197. - merge with RA <ralf_ahlbrink@web.de> mods :
  198. - added BuildRequires: libpython2.2-devel
  199. * Fri Nov 30 2001 Yves Duret <yduret@mandrakesoft.com> 3.0-1mdk
  200. - version 3.0 (lib major 7)
  201. * Fri Nov 30 2001 Yves Duret <yduret@mandrakesoft.com> 2.5-2mdk
  202. - rebuild against libpng3
  203. - %%makeinstall_std
  204. - std %%build step (macros..)
  205. - added %%dir %%{_includedir}/sip in -devel package
  206. * Mon Sep 03 2001 Lenny Cartier <lenny@mandrakesoft.com> 2.5-1mdk
  207. - 2.5
  208. * Mon May 14 2001 Yves BAILLY <ybailly@mandrakesoft.com> 2.4-3mdk
  209. - fixed some errors in spec file (sorry, my first package)
  210. * Mon May 14 2001 Yves BAILLY <ybailly@mandrakesoft.com> 2.4-2mdk
  211. - fixed the Python dependency (>= 2.0 instead of = 2.0)
  212. * Mon May 14 2001 Yves BAILLY <ybailly@mandrakesoft.com> 2.4-1mdk
  213. - upgrade to version 2.4
  214. * Tue Mar 20 2001 David BAUDENS <baudens@mandrakesoft.com> 2.3-2mdk
  215. - Rebuild against Qt 2.3.0
  216. * Wed Feb 21 2001 Lenny Cartier <lenny@mandrakesoft.com> 2.3-1mdk
  217. - updated to 2.3
  218. * Mon Feb 12 2001 Lenny Cartier <lenny@mandrakesoft.com> 2.2-1mdk
  219. - used srpm from Gerard Vermeulen <gvermeul@labs.polycnrs-gre.fr>
  220. - built on Mandrake-7.2 following Mandrake RPM guidelines