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