[3369] | 1 | Name: qt-assistant-adp |
---|
| 2 | Summary: Compatibility version of Qt Assistant |
---|
| 3 | Version: 4.6.3 |
---|
[3377] | 4 | Release: 4%{?_dist_release} |
---|
[3369] | 5 | |
---|
| 6 | Group: System Environment/Libraries |
---|
| 7 | # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details |
---|
| 8 | License: LGPLv2 with exceptions or GPLv3 with exceptions |
---|
| 9 | URL: http://qt.nokia.com/doc/4.6/qassistantclient.html |
---|
| 10 | |
---|
| 11 | Source: ftp://ftp.qt.nokia.com/qt/source/qt-assistant-qassistantclient-library-compat-src-%{version}.tar.gz |
---|
| 12 | # missing header files from Debian (Fathi Boudra) |
---|
| 13 | Source1: QAssistantClient |
---|
| 14 | Source2: QtAssistant |
---|
| 15 | # build fixes from Debian (Fathi Boudra) |
---|
| 16 | Patch1: 01_build_system.diff |
---|
| 17 | |
---|
| 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 19 | |
---|
[3377] | 20 | BuildRequires: qt4-devel >= 4.7.2-2%{?_dist_release} |
---|
[3369] | 21 | Requires: qt4 = %{_qt4_version} |
---|
| 22 | |
---|
| 23 | %description |
---|
| 24 | The old version of Qt Assistant, based on Assistant Document Profile (.adp) |
---|
| 25 | files, and the associated QtAssistantClient library, for compatibility with |
---|
| 26 | applications providing help in that format. |
---|
| 27 | |
---|
| 28 | New applications should use the new version of Qt Assistant introduced in Qt |
---|
| 29 | 4.4, based on the Qt Help Framework also introduced in Qt 4.4, instead. |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | %package devel |
---|
| 33 | Summary: Development files for the compatibility QAssistantClient |
---|
| 34 | Group: Development/Libraries |
---|
| 35 | Requires: %{name} = %{version}-%{release} |
---|
| 36 | Requires: qt4-devel = %{_qt4_version} |
---|
| 37 | |
---|
| 38 | %description devel |
---|
| 39 | This package contains the files necessary to build applications using the |
---|
| 40 | deprecated QAssistantClient class (in the deprecated QtAssistantClient library), |
---|
| 41 | which is used together with the legacy Assistant Document Profile (.adp) version |
---|
| 42 | of Qt Assistant. |
---|
| 43 | |
---|
| 44 | This class is obsolete. It is provided to keep old source code working. We |
---|
| 45 | strongly advise against using it in new code. New code should use the Qt Help |
---|
| 46 | Framework introduced in Qt 4.4 and/or the version of Qt Assistant based on it |
---|
| 47 | (also introduced in Qt 4.4) instead. |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | %prep |
---|
| 51 | %setup -q -n qt-assistant-qassistantclient-library-compat-version-%{version} |
---|
| 52 | %patch1 -p1 -b .build_system |
---|
| 53 | mkdir include |
---|
| 54 | cp -p %{SOURCE1} %{SOURCE2} include/ |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | %build |
---|
| 58 | # build assistant_adp |
---|
| 59 | qmake QT_PRODUCT=OpenSource |
---|
| 60 | make %{?_smp_mflags} |
---|
| 61 | |
---|
| 62 | # build libQtAssistantClient |
---|
| 63 | cd lib |
---|
| 64 | qmake CONFIG=create_prl |
---|
| 65 | make %{?_smp_mflags} |
---|
| 66 | |
---|
| 67 | # build assistant_adp translations |
---|
| 68 | cd ../translations |
---|
| 69 | lrelease assistant_adp_*.ts |
---|
| 70 | cd .. |
---|
| 71 | |
---|
| 72 | |
---|
| 73 | %install |
---|
| 74 | rm -rf %{buildroot} |
---|
| 75 | |
---|
| 76 | # install assistant_adp |
---|
| 77 | make install INSTALL_ROOT=%{buildroot} |
---|
| 78 | |
---|
| 79 | # install libQtAssistantClient |
---|
| 80 | make install INSTALL_ROOT=%{buildroot} -C lib |
---|
| 81 | |
---|
| 82 | # install assistant_adp translations |
---|
| 83 | mkdir -p %{buildroot}%{_qt4_translationdir} |
---|
| 84 | install -p -m644 translations/assistant_adp_*.qm \ |
---|
| 85 | %{buildroot}%{_qt4_translationdir}/ |
---|
| 86 | |
---|
| 87 | # install assistant.prf mkspec |
---|
| 88 | install -D -p -m644 features/assistant.prf \ |
---|
| 89 | %{buildroot}%{_qt4_datadir}/mkspecs/features/assistant.prf |
---|
| 90 | |
---|
| 91 | # install missing headers (thanks to Fathi Boudra from Debian) |
---|
| 92 | install -p -m644 include/Q* %{buildroot}%{_qt4_headerdir}/QtAssistant/ |
---|
| 93 | |
---|
| 94 | # nuke dangling reference(s) to the buildroot |
---|
| 95 | sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" %{buildroot}%{_qt4_libdir}/*.prl |
---|
| 96 | |
---|
| 97 | # let rpm handle binaries conflicts |
---|
| 98 | mkdir %{buildroot}%{_bindir} |
---|
| 99 | pushd %{buildroot}%{_qt4_bindir} |
---|
| 100 | mv assistant_adp ../../../bin/ |
---|
| 101 | ln -s ../../../bin/assistant_adp . |
---|
| 102 | popd |
---|
| 103 | |
---|
| 104 | # _debug target (see bug #196513) |
---|
| 105 | pushd %{buildroot}%{_qt4_libdir} |
---|
| 106 | echo "INPUT(-lQtAssistantClient)" >libQtAssistantClient_debug.so |
---|
| 107 | popd |
---|
| 108 | |
---|
| 109 | # Note that we intentionally DO NOT install a .desktop file for assistant_adp |
---|
| 110 | # because it makes no sense to invoke it without a specific .adp file to open. |
---|
| 111 | # By default, it views the Qt documentation, for which we already have a menu |
---|
| 112 | # entry using the current version of the Qt Assistant, and there is no UI for |
---|
| 113 | # viewing anything different. The .adp file needs to be passed on the command |
---|
| 114 | # line, which is usually done by the application. |
---|
| 115 | |
---|
| 116 | %find_lang assistant_adp --with-qt --without-mo |
---|
| 117 | |
---|
| 118 | mkdir -p $RPM_BUILD_ROOT%{_libdir} |
---|
| 119 | mv $RPM_BUILD_ROOT%{_qt4_libdir}/pkgconfig $RPM_BUILD_ROOT%{_libdir} |
---|
| 120 | |
---|
| 121 | %clean |
---|
| 122 | rm -rf %{buildroot} |
---|
| 123 | |
---|
| 124 | |
---|
| 125 | %post -p /sbin/ldconfig |
---|
| 126 | |
---|
| 127 | %postun -p /sbin/ldconfig |
---|
| 128 | |
---|
| 129 | %files -f assistant_adp.lang |
---|
| 130 | %defattr(-,root,root,-) |
---|
| 131 | %doc LGPL_EXCEPTION.txt LICENSE.LGPL LICENSE.GPL3 |
---|
| 132 | %{_bindir}/assistant_adp |
---|
| 133 | %{_qt4_bindir}/assistant_adp |
---|
| 134 | %{_qt4_libdir}/libQtAssistantClient.so.4* |
---|
| 135 | |
---|
| 136 | %files devel |
---|
| 137 | %defattr(-,root,root,-) |
---|
| 138 | %{_qt4_headerdir}/QtAssistant/ |
---|
| 139 | %{_qt4_libdir}/libQtAssistantClient.so |
---|
| 140 | %{_qt4_libdir}/libQtAssistantClient_debug.so |
---|
| 141 | %{_qt4_libdir}/libQtAssistantClient.prl |
---|
| 142 | %{_libdir}/pkgconfig/QtAssistantClient.pc |
---|
| 143 | %{_qt4_datadir}/mkspecs/features/assistant.prf |
---|
| 144 | |
---|
| 145 | |
---|
| 146 | %changelog |
---|
[3377] | 147 | * Sat Apr 09 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.6.3-4 |
---|
| 148 | - fixed BR |
---|
| 149 | |
---|
[3369] | 150 | * Sat Apr 09 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.6.3-3 |
---|
| 151 | - Initial build for Vine Linux |
---|
| 152 | |
---|
| 153 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.6.3-2 |
---|
| 154 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 155 | |
---|
| 156 | * Mon Jul 05 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 4.6.3-1 |
---|
| 157 | - new upstream tarball with only the compat assistant_adp and QAssistantClient |
---|
| 158 | - build fixes from Debian (Fathi Boudra) |
---|
| 159 | - use find_lang to package the qm files (#609749) |
---|
| 160 | |
---|
| 161 | * Tue Mar 16 2010 Rex Dieter <rdieter@fedoraproject.org> - 4.6.2-2 |
---|
| 162 | - use versioned BR/Requires to avoid Conflicts |
---|
| 163 | |
---|
| 164 | * Sat Mar 13 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 4.6.2-1 |
---|
| 165 | - first Fedora package |
---|