sip-vl.spec 8.0 KB

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