qtscriptgenerator-vl.spec 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. %define qt4_ver 4.7.2
  2. # Qt4 version auto-detection
  3. %define _qt4_version %(pkg-config --modversion --silence-errors Qt 2>/dev/null || echo %{qt4_ver})
  4. %define _qt4_prefix %(pkg-config --variable prefix --silence-errors Qt 2>/dev/null || echo %{_libdir}/qt-%{qt4_ver})
  5. %define _qt4_bindir %(pkg-config --variable bindir --silence-errors Qt 2>/dev/null || echo %{_qt4_prefix}/bin)
  6. %define _qt4_headerdir %(pkg-config --variable headerdir --silence-errors Qt 2>/dev/null || echo %{_qt4_prefix}/include)
  7. %define _qt4_plugindir %(pkg-config --variable plugindir --silence-errors Qt 2>/dev/null || echo %{_qt4_prefix}/plugins)
  8. %define _qt4_qmake %{_qt4_bindir}/qmake
  9. Name: qtscriptgenerator
  10. Summary: A tool to generate Qt bindings for Qt Script
  11. Version: 0.1.0
  12. Release: 14%{?_dist_release}
  13. Group: System Environment/Libraries
  14. License: GPLv2
  15. URL: http://code.google.com/p/qtscriptgenerator/
  16. Source0: http://qtscriptgenerator.googlecode.com/files/qtscriptgenerator-src-%{version}.tar.gz
  17. Patch1: qtscriptgenerator-0.1.0-gcc44.patch
  18. Patch2: qtscriptgenerator-src-0.1.0-no_phonon.patch
  19. ## upstreamable patches
  20. Patch50: qtscriptgenerator-src-0.1.0-qmake_target.path.patch
  21. Patch51: qtscriptgenerator-kde_phonon443.patch
  22. ## debian patches
  23. Patch60: memory_alignment_fix.diff
  24. ## upstream patches
  25. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  26. # explictly BR libxslt, for xsltproc
  27. BuildRequires: libxslt
  28. BuildRequires: phonon-devel >= 4.4.2-2%{?_dist_release}
  29. BuildRequires: qt4-devel >= 4.5.0-7
  30. #BuildRequires: qt4-webkit-devel
  31. # not strictly required, but the expectation would be for the
  32. # bindings to be present
  33. Requires: qtscriptbindings = %{version}-%{release}
  34. %description
  35. Qt Script Generator is a tool to generate Qt bindings for Qt Script.
  36. %package -n qtscriptbindings
  37. Summary: Qt bindings for Qt Script
  38. Group: System Environment/Libraries
  39. Requires: qt4 = %{_qt4_version}
  40. Provides: qtscript-qt = %{version}-%{release}
  41. %description -n qtscriptbindings
  42. Bindings providing access to substantial portions of the Qt API
  43. from within Qt Script.
  44. %prep
  45. %setup -q -n %{name}-src-%{version}
  46. %patch1 -p0 -b .gcc44
  47. %patch2 -p1 -b .no_phonon
  48. %patch50 -p1 -b .qmake_target.path
  49. %patch51 -p1 -b .kde_phonon
  50. %patch60 -p1 -b .memory_alignment
  51. %build
  52. # workaround buildsys bogosity, see also:
  53. # http://code.google.com/p/qtscriptgenerator/issues/detail?id=38
  54. export INCLUDE=%{_qt4_headerdir}
  55. pushd generator
  56. %{_qt4_qmake}
  57. make %{?_smp_mflags}
  58. ./generator
  59. popd
  60. pushd qtbindings
  61. %{_qt4_qmake}
  62. make %{?_smp_mflags}
  63. popd
  64. pushd tools/qsexec/src
  65. %{_qt4_qmake}
  66. make %{?_smp_mflags}
  67. popd
  68. %install
  69. rm -rf %{buildroot}
  70. mkdir -p %{buildroot}%{_qt4_plugindir}/script/
  71. # install doesn't do symlinks
  72. cp -a plugins/script/libqtscript* \
  73. %{buildroot}%{_qt4_plugindir}/script/
  74. cp -a tools/qsexec/README.TXT README.qsexec
  75. install -D -p -m755 tools/qsexec/qsexec %{buildroot}%{_bindir}/qsexec
  76. install -D -p -m755 generator/generator %{buildroot}%{_qt4_bindir}/generator
  77. %clean
  78. rm -rf %{buildroot}
  79. %files
  80. %defattr(-,root,root,-)
  81. %{_qt4_bindir}/generator
  82. %files -n qtscriptbindings
  83. %defattr(-,root,root,-)
  84. %doc README LICENSE.GPL
  85. %doc README.qsexec
  86. %doc doc/
  87. %doc examples/
  88. %{_bindir}/qsexec
  89. %{_qt4_plugindir}/script/libqtscript*
  90. %changelog
  91. * Sun Mar 13 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.1.0-14
  92. - rebuilt with qt-4.7.2
  93. - added Patch1
  94. * Sun Oct 17 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.1.0-13
  95. - initial build for Vine Linux
  96. * Sat May 08 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.1.0-12
  97. - BR: qt4-webkit-devel
  98. * Mon Mar 01 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.1.0-11
  99. - borrow memory_alignment_fix.diff from debian (should help arm/sparc)
  100. * Wed Nov 18 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.1.0-10
  101. - rebuild (qt-4.6.0-rc1, fc13+)
  102. * Mon Oct 19 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.1.0-9
  103. - fix build (for qt-4.6.0/phonon-isms)
  104. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-8
  105. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  106. * Tue Jun 09 2009 Rex Dieter <rdieter@fedoraproject.org> 0.1.0-7
  107. - upstream sun_issue27 patch
  108. * Fri Apr 10 2009 Rex Dieter <rdieter@fedoraproject.org> 0.1.0-6
  109. - qtscriptbindings: Provides: qtscript-qt ...
  110. * Tue Mar 24 2009 Rex Dieter <rdieter@fedoraproject.org> 0.1.0-5
  111. - qtscriptgenerator/qtscriptbindings pkgs
  112. - qtscriptbindings: include docs, examples
  113. * Mon Mar 23 2009 Rex Dieter <rdieter@fedoraproject.org> 0.1.0-4
  114. - include qsexec
  115. * Mon Mar 23 2009 Rex Dieter <rdieter@fedoraproject.org> 0.1.0-3
  116. - BR: phonon-devel
  117. * Fri Mar 20 2009 Rex Dieter <rdieter@fedoraproject.org> 0.1.0-2
  118. - qt-4.5.0-7 fixed wrt phonon, drop no_phonon patch
  119. * Fri Mar 06 2009 Rex Dieter <rdieter@fedoraproject.org> 0.1.0-1
  120. - first try