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