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