qt-assistant-adp/qt-assistant-adp.spec

111 lines
3.2 KiB
RPMSpec
Raw Normal View History

2020-02-29 11:12:05 +08:00
Name: qt-assistant-adp
Version: 4.6.3
Release: 21
2020-02-29 11:12:05 +08:00
Summary: Compatibility version of Qt Assistant
License: LGPLv2 with exceptions or GPLv3 with exceptions
Url: https://download.qt.io/archive/qt/4.6/
Source0: https://download.qt.io/archive/qt/4.6/qt-assistant-qassistantclient-library-compat-src-%{version}.tar.gz
Source1: QAssistantClient
Source2: QtAssistant
Patch0001: 01_build_system.diff
BuildRequires: make
BuildRequires: gcc-c++
2020-02-29 11:12:05 +08:00
BuildRequires: qt4-devel >= 4.7.0
%{?_qt4_version:Requires: qt4 >= %{_qt4_version}}
%description
The old version of Qt Assistant, based on Assistant Document Profile (.adp)
files, and the associated QtAssistantClient library, for compatibility with
applications providing help in that format.
New applications should use the new version of Qt Assistant introduced in Qt
4.4, based on the Qt Help Framework also introduced in Qt 4.4, instead.
%package devel
Summary: Development filesoftheqt-assistant-adppackage
Requires: %{name} = %{version}-%{release} qt4-devel
%description devel
This package contains the files necessary to build applications using the
deprecated QAssistantClient class (in the deprecated QtAssistantClient library),
which is used together with the legacy Assistant Document Profile (.adp) version
of Qt Assistant.
This class is obsolete. It is provided to keep old source code working. We
strongly advise against using it in new code. New code should use the Qt Help
Framework introduced in Qt 4.4 and/or the version of Qt Assistant based on it
(also introduced in Qt 4.4) instead.
2020-02-29 11:12:05 +08:00
%prep
%autosetup -n qt-assistant-qassistantclient-library-compat-version-%{version} -p1
install -d include
install -p %{SOURCE1} %{SOURCE2} include/
%build
%{qmake_qt4} QT_PRODUCT=OpenSource
%make_build
cd lib
%{qmake_qt4} CONFIG=create_prl
%make_build
cd -
cd translations
lrelease-qt4 assistant_adp_*.ts
cd -
%install
%make_install INSTALL_ROOT=%{buildroot}
%make_install INSTALL_ROOT=%{buildroot} -C lib
install -d %{buildroot}%{_qt4_translationdir}
install -p -m644 translations/assistant_adp_*.qm %{buildroot}%{_qt4_translationdir}/
install -D -p -m644 features/assistant.prf \
%{buildroot}%{_qt4_datadir}/mkspecs/features/assistant.prf
install -p -m644 include/Q* %{buildroot}%{_qt4_headerdir}/QtAssistant/
sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" %{buildroot}%{_qt4_libdir}/*.prl
install -d %{buildroot}%{_bindir}
cd %{buildroot}%{_qt4_bindir}
mv assistant_adp ../../../bin/
ln -s ../../../bin/assistant_adp .
cd -
cd %{buildroot}%{_qt4_libdir}
echo "INPUT(-lQtAssistantClient)" >libQtAssistantClient_debug.so
cd -
%find_lang assistant_adp --with-qt --without-mo
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files -f assistant_adp.lang
%doc LGPL_EXCEPTION.txt LICENSE.LGPL LICENSE.GPL3
%{_bindir}/assistant_adp
%{_qt4_bindir}/{assistant_adp,libQtAssistantClient.so.4*}
%files devel
%{_qt4_headerdir}/QtAssistant/
%{_qt4_libdir}/*
%{_libdir}/pkgconfig/QtAssistantClient.pc
%{_qt4_datadir}/mkspecs/features/assistant.prf
%changelog
* Mon Aug 21 2023 peijiankang <peijiankang@kylinos.cn> - 4.6.3-21
- add BuildRequires gcc
2020-02-29 11:12:05 +08:00
* Wed Feb 19 2020 daiqianwen <daiqianwen@huawei.com> - 4.6.3-20
- Package init