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