avatar
Rosa has added 19955c6a59
initial: add from SRPM
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,2 @@
1
sources:
2
  "qt-assistant-qassistantclient-library-compat-src-4.6.3.tar.gz": 7a5e5155136c406e5b7eb880eed752f56625d10b
view file @ 19955c6a59
... ... --- /dev/null
... ... +++ b/01_build_system.diff
... ... @@ -0,0 +1,48 @@
1
Description: several workarounds for the build system which is completely broken
2
Author: Fathi Boudra <fabo@debian.org>
3
4
--- a/compat.pro
5
+++ b/compat.pro
6
@@ -66,8 +66,6 @@ TRANSLATIONS = translations/assistant_ad
7
     translations/assistant_adp_zh_CN.ts \
8
     translations/assistant_adp_zh_TW.ts
9
 
10
-unix:!contains(QT_CONFIG, zlib):LIBS += -lz
11
-
12
 contains(CONFIG, static): {
13
     win32 {
14
         exists($$[QT_INSTALL_PLUGINS]/imageformats/qjpeg.lib) {
15
@@ -81,3 +79,7 @@ contains(CONFIG, static): {
16
         }        
17
     }
18
 }
19
+
20
+target.path = $$[QT_INSTALL_BINS]
21
+INSTALLS += target
22
+
23
--- a/lib/lib.pro
24
+++ b/lib/lib.pro
25
@@ -16,8 +16,8 @@ HEADERS         = qassistantclient.h \
26
                   qassistantclient_global.h
27
 SOURCES         = qassistantclient.cpp
28
 
29
-DESTDIR                = ../../../../lib
30
-DLLDESTDIR             = ../../../../bin
31
+DESTDIR                = lib
32
+DLLDESTDIR             = bin
33
 
34
 unix {
35
         QMAKE_CFLAGS += $$QMAKE_CFLAGS_SHLIB
36
@@ -62,7 +62,7 @@ win32 {
37
 }
38
 
39
 qt_install_headers {
40
-    assistant_headers.files = $$SYNCQT.HEADER_FILES $$SYNCQT.HEADER_CLASSES
41
+    assistant_headers.files = qassistantclient.h qassistantclient_global.h
42
     assistant_headers.path = $$[QT_INSTALL_HEADERS]/QtAssistant
43
     INSTALLS        += assistant_headers
44
 }
45
--- /dev/null
46
+++ b/lib/QtAssistant/qassistantclient_global.h
47
@@ -0,0 +1 @@
48
+#include "../qassistantclient_global.h"
view file @ 19955c6a59
... ... --- /dev/null
... ... +++ b/QAssistantClient
... ... @@ -0,0 +1 @@
1
#include "qassistantclient.h"
... ... --- /dev/null
... ... +++ b/QtAssistant
... ... @@ -0,0 +1,5 @@
1
#ifndef QT_QTASSISTANT_MODULE_H
2
#define QT_QTASSISTANT_MODULE_H
3
#include <QtNetwork/QtNetwork>
4
#include "qassistantclient.h"
5
#endif
view file @ 19955c6a59
... ... --- /dev/null
... ... +++ b/qt-assistant-adp.spec
... ... @@ -0,0 +1,155 @@
1
Summary: Compatibility version of Qt Assistant
2
Name:    qt-assistant-adp
3
Epoch:   4
4
Version: 4.6.3
5
Release: %mkrel 2
6
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
7
License: LGPLv2 with exceptions or GPLv3 with exceptions
8
Group: System/Libraries
9
Url: http://qt.nokia.com/doc/4.6/qassistantclient.html
10
Source: ftp://ftp.qt.nokia.com/qt/source/qt-assistant-qassistantclient-library-compat-src-%{version}.tar.gz
11
# missing header files from Debian (Fathi Boudra)
12
Source1: QAssistantClient
13
Source2: QtAssistant
14
# build fixes from Debian (Fathi Boudra)
15
Patch1: 01_build_system.diff
16
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
17
BuildRequires: qt4-devel >= 4:4.7.0
18
Conflicts: qt4-assistant < 4:4.6.3
19
20
%description
21
The old version of Qt Assistant, based on Assistant Document Profile (.adp)
22
files, and the associated QtAssistantClient library, for compatibility with
23
applications providing help in that format.
24
25
New applications should use the new version of Qt Assistant introduced in Qt
26
4.4, based on the Qt Help Framework also introduced in Qt 4.4, instead.
27
28
%define libqassistant %mklibname qassistant 4
29
%package -n %{libqassistant}
30
Summary: QT assistant lib
31
Group: System/Libraries
32
Provides: qassistantlib = %epoch:%version
33
Obsoletes: %{_lib}qassistant1 < 2:4.3.4-4
34
35
%description -n %{libqassistant}
36
QT assistant lib.
37
38
%package devel
39
Summary: Development files for the compatibility QAssistantClient
40
Group: Development/KDE and Qt
41
Requires: %{libqassistant} = %{epoch}:%{version}-%{release}
42
Requires: qt4-devel >= 4:4.7.0
43
Conflicts: qt4-devel < 4:4.7.0
44
45
%description devel
46
This package contains the files necessary to build applications using the
47
deprecated QAssistantClient class (in the deprecated QtAssistantClient library),
48
which is used together with the legacy Assistant Document Profile (.adp) version
49
of Qt Assistant.
50
51
This class is obsolete. It is provided to keep old source code working. We
52
strongly advise against using it in new code. New code should use the Qt Help
53
Framework introduced in Qt 4.4 and/or the version of Qt Assistant based on it
54
(also introduced in Qt 4.4) instead.
55
56
%prep
57
%setup -q -n qt-assistant-qassistantclient-library-compat-version-%{version}
58
%patch1 -p1 -b .build_system
59
mkdir include
60
cp -p %{SOURCE1} %{SOURCE2} include/
61
62
%build
63
# build assistant_adp
64
%qmake_qt4 QT_PRODUCT=OpenSource
65
%make
66
67
# build libQtAssistantClient
68
pushd lib
69
%qmake_qt4 CONFIG=create_prl
70
%make
71
popd
72
73
# build assistant_adp translations
74
pushd translations
75
lrelease assistant_adp_*.ts
76
popd
77
78
%install
79
rm -rf %{buildroot}
80
81
# install assistant_adp
82
make install INSTALL_ROOT=%{buildroot}
83
84
# install libQtAssistantClient
85
make install INSTALL_ROOT=%{buildroot} -C lib
86
87
# install assistant_adp translations
88
mkdir -p %{buildroot}%{qt4dir}/translations
89
install -p -m644 translations/assistant_adp_*.qm \
90
                 %{buildroot}%{qt4dir}/translations
91
92
# install assistant.prf mkspec
93
install -D -p -m644 features/assistant.prf \
94
                    %{buildroot}%{qt4dir}/mkspecs/features/assistant.prf
95
96
# install missing headers (thanks to Fathi Boudra from Debian)
97
install -p -m644 include/Q* %{buildroot}%{qt4include}/QtAssistant/
98
99
# nuke dangling reference(s) to the buildroot
100
sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" %{buildroot}%{qt4lib}/*.prl
101
102
# let rpm handle binaries conflicts
103
mkdir %{buildroot}%{_bindir}
104
pushd %{buildroot}%{qt4bin}
105
mv assistant_adp ../../../bin/
106
ln -s ../../../bin/assistant_adp .
107
popd
108
109
# _debug target (see bug #196513)
110
pushd %{buildroot}%{qt4lib}
111
echo "INPUT(-lQtAssistantClient)" >libQtAssistantClient_debug.so
112
popd
113
114
# Note that we intentionally DO NOT install a .desktop file for assistant_adp
115
# because it makes no sense to invoke it without a specific .adp file to open.
116
# By default, it views the Qt documentation, for which we already have a menu
117
# entry using the current version of the Qt Assistant, and there is no UI for
118
# viewing anything different. The .adp file needs to be passed on the command
119
# line, which is usually done by the application.
120
121
%clean
122
rm -rf %{buildroot}
123
124
%files
125
%defattr(-,root,root,-)
126
%doc LGPL_EXCEPTION.txt LICENSE.LGPL LICENSE.GPL3
127
%{_bindir}/assistant_adp
128
%{qt4dir}/translations/*
129
%{qt4bin}/assistant_adp
130
131
%files -n %{libqassistant}
132
%defattr(-,root,root,-)
133
%{qt4lib}/libQtAssistantClient.so.4*
134
135
%files devel
136
%defattr(-,root,root,-)
137
%{qt4include}/QtAssistant/
138
%{qt4lib}/libQtAssistantClient.so
139
%{qt4lib}/libQtAssistantClient_debug.so
140
%{qt4lib}/libQtAssistantClient.prl
141
%{_libdir}/pkgconfig/QtAssistantClient.pc
142
%{qt4dir}/mkspecs/features/assistant.prf
143
144
145
%changelog
146
* Thu May 05 2011 Oden Eriksson <oeriksson@mandriva.com> 4:4.6.3-2mdv2011.0
147
+ Revision: 669384
148
- mass rebuild
149
150
* Sat Jul 31 2010 Funda Wang <fwang@mandriva.org> 4:4.6.3-1mdv2011.0
151
+ Revision: 563937
152
- minor cleanup of spec file
153
- import qt-assistant-adp
154
155

Comments