sip-vl.spec 7.9 KB

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