Sophie

Sophie

distrib > Mageia > 6 > x86_64 > by-pkgid > 7b7c9c012d4ed31aaaefff7ebe360d70 > files > 5

qttools5-5.9.4-1.mga6.src.rpm

%define snapshot 0
%define pre rc

# set to 1 to enable bootstrap
%define bootstrap 0

%if ! 0%{?bootstrap}
%define build_docs 1
%else
%define build_docs 0
%endif
%ifarch %{arm}
%define build_docs 0
%endif

%define qtmajor 5
%define qtminor 9
%define qtsubminor 4

%define rel 1

%define major_private 1
%define qtversion %{qtmajor}.%{qtminor}.%{qtsubminor}

%define libqthelp %mklibname qt5help %qtmajor
%define libqthelp_d %mklibname qt5help -d

%define libqtdesigner %mklibname qt5designer %qtmajor
%define libqtdesigner_d %mklibname qt5designer -d

%define libqtclucene %mklibname qt5clucene %qtmajor
%define libqtclucene_d %mklibname qt5clucene -d

%if %snapshot
%define qttarballdir qttools-opensource-src-%{qtversion}-%pre
%else
%define qttarballdir qttools-opensource-src-%{qtversion}
%endif

Name: qttools5
Version: %{qtversion}
Release: %mkrel %{rel}
Summary: Qt GUI toolkit
Group: Development/KDE and Qt
License: LGPLv2 with exceptions or GPLv3 with exceptions and GFDL
URL:     http://www.qt.io
Source0: http://download.qt.io/official_releases/qt/%{qtmajor}.%{qtminor}/%{version}/submodules/%{qttarballdir}.tar.xz
Source1: mageia-assistant-qt5.desktop
Source2: mageia-designer-qt5.desktop
Source3: mageia-linguist-qt5.desktop
BuildRequires: qtbase5-devel
%if ! 0%{?bootstrap}
BuildRequires: pkgconfig(Qt5Qml)
%endif

BuildRequires: sed

Requires:      qttranslations5
Requires:      qttools5-assistant

#Branch Patchs

#Trunk Patchs

#Patch from Mageia


%description
Qt GUI tools.

%files
%{_qt5_bindir}/lconvert
%{_bindir}/lconvert
%{_qt5_bindir}/linguist
%{_bindir}/linguist
%{_qt5_bindir}/lrelease
%{_bindir}/lrelease
%{_qt5_bindir}/lupdate
%{_bindir}/lupdate
%{_qt5_bindir}/pixeltool
%{_bindir}/pixeltool
%{_qt5_bindir}/qtpaths
%{_bindir}/qtpaths
%{_qt5_bindir}/qtdiag
%{_bindir}/qtdiag
%{_qt5_bindir}/qtplugininfo
%{_bindir}/qtplugininfo
%{_qt5_bindir}/qdoc
%{_bindir}/qdoc
%{_qt5_datadir}/phrasebooks
%{_qt5_bindir}/qtattributionsscanner
%{_datadir}/applications/*linguist*.desktop
#FIXME: in the good package ?
%{_qt5_examplesdir}/linguist

#------------------------------------------------------------------------------

%package assistant
Summary: Qt%{qtmajor} Assistant Doc Utility
Group:   Documentation
Requires: qtbase5-database-plugin-sqlite
Requires: qttranslations5

%description assistant
Qt Assistant provides a documentation Browser.

%files assistant
%{_qt5_bindir}/assistant*
%{_bindir}/assistant*
%{_qt5_bindir}/qcollectiongen*
%{_bindir}/qcollectiongen*
%{_qt5_bindir}/qhelpconv*
%{_bindir}/qhelpconv*
%{_qt5_bindir}/qhelpgen*
%{_bindir}/qhelpgen*
%{_datadir}/applications/*assistant*.desktop
#FIXME: in the good package ?
%{_qt5_examplesdir}/assistant

#------------------------------------------------------------------------------

%package designer
Summary: %{name} Visual Design Tool
Group: Development/KDE and Qt
Requires:   qttranslations5

%description designer
The Qt Designer is a visual design tool that makes designing and
implementing user interfaces a lot easier.

%files designer
%{_qt5_bindir}/design*
%{_bindir}/design*
%{_qt5_plugindir}/designer
%{_datadir}/applications/*designer*.desktop

#------------------------------------------------------------------------------

%package qtdbus
Summary:  Qt%{qtmajor} Dbus Binary
Group: Development/KDE and Qt

%description qtdbus
Qt%{qtmajor} Dbus Binary.

The QtDBus module is a Unix-only library that you can use to perform
Inter-Process Communication using the D-Bus protocol.

%files qtdbus
%{_qt5_bindir}/qdbus
%{_bindir}/qdbus
%{_qt5_bindir}/qdbusviewer
%{_bindir}/qdbusviewer

#------------------------------------------------------------------------------

%if %{build_docs}
%package doc
Summary: QtTools%{qtmajor} APIs and tools docs
Group:   Documentation
BuildArch: noarch
BuildRequires: qttools5
# This one is required to build QCH-format documentation
# for APIs and tools in this package set
BuildRequires: %{name}-assistant
Recommends: %{name}-assistant

%description doc
Documentation for APIs and tools in QtTools%{qtmajor} package for use with
Qt Assistant.

%files doc
%{_qt5_docdir}/qtassistant.qch
%{_qt5_docdir}/qtassistant/
%{_qt5_docdir}/qtdesigner.qch
%{_qt5_docdir}/qtdesigner/
%{_qt5_docdir}/qdoc.qch
%{_qt5_docdir}/qdoc/
%{_qt5_docdir}/qthelp.qch
%{_qt5_docdir}/qthelp/
%{_qt5_docdir}/qtlinguist.qch
%{_qt5_docdir}/qtlinguist/
%{_qt5_docdir}/qtuitools.qch
%{_qt5_docdir}/qtuitools/
%endif

#------------------------------------------------------------------------------

%package -n %{libqthelp}
Summary: Qt%{qtmajor} Component Library
Group: System/Libraries
Provides: qthelplib = %{version}
# Fix naming glitch in cauldron (mga6)
Obsoletes: %{_lib}qthelp5 < 5.6.0-2

%description -n %{libqthelp}
Qt%{qtmajor} Component Library.

The QtHelp module provides classes for integrating online documentation
in applications.

%files -n %{libqthelp}
%{_qt5_libdir}/libQt5Help.so.%{qtmajor}*

#------------------------------------------------------------------------------

%package -n %{libqthelp_d}
Summary: Devel files needed to build apps based on QtJsonDbCompat
Group:    Development/KDE and Qt
Requires: %{libqthelp} = %version
Requires: qtbase5-common-devel = %version
Requires: qttools5
Provides: libqthelp5-devel = %version
Provides: libqt5help-devel = %version
Provides: qthelp5-devel = %version
Provides: qt5help-devel = %version

Provides: libqthelp5-private-devel = %version
Provides: libqt5help-private-devel = %version
Provides: qthelp5-private-devel = %version
Provides: qt5help-private-devel = %version

%description -n %{libqthelp_d}
Devel files needed to build apps based on QtJsonDbCompat.

%files -n %{libqthelp_d}
%{_qt5_libdir}/libQt5Help.prl
%{_qt5_libdir}/libQt5Help.so
%{_qt5_libdir}/pkgconfig/Qt5Help.pc
%{_qt5_includedir}/QtHelp
%{_qt5_datadir}/mkspecs/modules/qt_lib_help.pri
%{_qt5_examplesdir}/help/
%{_qt5_libdir}/cmake/Qt5Help/Qt5HelpConfig.cmake
%{_qt5_libdir}/cmake/Qt5Help/Qt5HelpConfigVersion.cmake
%{_qt5_libdir}/cmake/Qt5Help/Qt5HelpConfigExtras.cmake
#FIXME: Find a better place
%{_qt5_libdir}/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake
%{_qt5_libdir}/cmake/Qt5LinguistTools/Qt5LinguistToolsMacros.cmake
%{_qt5_libdir}/cmake/Qt5LinguistTools/Qt5LinguistToolsConfigVersion.cmake
%{_qt5_datadir}/mkspecs/modules/qt_lib_help_private.pri

#------------------------------------------------------------------------------
%if 0
%package -n %{libqtclucene}
Summary: Qt%{qtmajor} Component Library
Group: System/Libraries
Provides: qtclucenelib = %{version}
# Fix naming glitch in cauldron (mga6)
Obsoletes: %{_lib}qtclucene5 < 5.6.0-2

%description -n %{libqtclucene}
Qt%{qtmajor} Component Library.

%files -n %{libqtclucene}
%{_qt5_libdir}/libQt5CLucene.so.%{qtmajor}*

#------------------------------------------------------------------------------

%package -n %{libqtclucene_d}
Summary: Devel files needed to build apps based on QtCLucene
Group:    Development/KDE and Qt
Requires: %{libqtclucene} = %version
Provides: libqtclucene5-devel = %version
Provides: libqt5clucene-devel = %version
Provides: qtclucene5-devel = %version
Provides: qt5clucene-devel = %version

Provides: libqtclucene5-private-devel = %version
Provides: libqt5clucene-private-devel = %version
Provides: qtclucene5-private-devel = %version
Provides: qt5clucene-private-devel = %version

%description -n %{libqtclucene_d}
Devel files needed to build apps based on QtCLucene.

%files -n %{libqtclucene_d}
%{_qt5_libdir}/libQt5CLucene.prl
%{_qt5_libdir}/libQt5CLucene.so
%{_qt5_includedir}/QtCLucene
%{_qt5_datadir}/mkspecs/modules/qt_lib_clucene_private.pri
%endif

#------------------------------------------------------------------------------

%package -n %{libqtdesigner}
Summary: Qt%{qtmajor} Component Library
Group: System/Libraries
Provides: qtdesignerlib = %{version}
# Fix naming glitch in cauldron (mga6)
Obsoletes: %{_lib}qtdesigner5 < 5.6.0-2

%description -n %{libqtdesigner}
Qt%{qtmajor} Component Library.

The QtDesigner module provides classes that allow you to create your own
custom widget plugins for Qt Designer, and classes that enable you to
access Qt Designer's components.

%files -n %{libqtdesigner}
%{_qt5_libdir}/libQt5Designer.so.%{qtmajor}*
%{_qt5_libdir}/libQt5DesignerComponents.so.%{qtmajor}*

#------------------------------------------------------------------------------

%package -n %{libqtdesigner_d}
Summary: Devel files needed to build apps based on QtDesigner
Group:    Development/KDE and Qt
Requires: %{libqtdesigner} = %version
Requires: qttools5-designer = %version
Provides: libqtdesigner5-devel = %version
Provides: libqt5designer-devel = %version
Provides:  qtdesigner5-devel = %version
Provides:  qt5designer-devel = %version

Provides: libqtdesigner5-private-devel = %version
Provides: libqt5designer-private-devel = %version
Provides:  qtdesigner5-private-devel = %version
Provides:  qt5designer-private-devel = %version

%description -n %{libqtdesigner_d}
Devel files needed to build apps based on QtDesigner.

%files -n %{libqtdesigner_d}
%{_qt5_libdir}/libQt5Designer.so
%{_qt5_libdir}/libQt5DesignerComponents.so
%{_qt5_libdir}/libQt5Designer.prl
%{_qt5_libdir}/libQt5DesignerComponents.prl
%{_qt5_libdir}/libQt5UiTools.prl
%{_qt5_libdir}/libQt5UiTools.a
%{_qt5_libdir}/pkgconfig/Qt5Designer.pc
%{_qt5_libdir}/pkgconfig/Qt5UiTools.pc
%{_qt5_includedir}/QtDesignerComponents
%{_qt5_includedir}/QtDesigner
%{_qt5_includedir}/QtUiPlugin
%{_qt5_includedir}/QtUiTools
%{_qt5_datadir}/mkspecs/modules/qt_lib_designer.pri
%{_qt5_datadir}/mkspecs/modules/qt_lib_uitools.pri
%{_qt5_datadir}/mkspecs/modules/qt_lib_uiplugin.pri
%{_qt5_examplesdir}/designer
%{_qt5_examplesdir}/uitools
%{_qt5_libdir}/cmake/Qt5Designer
%{_qt5_libdir}/cmake/Qt5UiTools
%{_qt5_libdir}/cmake/Qt5UiPlugin
%{_qt5_datadir}/mkspecs/modules/qt_lib_designer_private.pri
%{_qt5_datadir}/mkspecs/modules/qt_lib_designercomponents_private.pri
%{_qt5_datadir}/mkspecs/modules/qt_lib_uitools_private.pri

#------------------------------------------------------------------------------

%prep
%setup -q -n qttools-opensource-src-%{qtversion}
%autopatch -p1

%build
%qmake_qt5

%make_build

%if %{build_docs}
%__make docs
%endif

%install
%make_install INSTALL_ROOT=%{buildroot}

%if %{build_docs}
%make_install install_docs INSTALL_ROOT=%{buildroot}
%endif

mkdir -p %{buildroot}/%{_datadir}/applications
install -m 644 %SOURCE1 %{buildroot}/%{_datadir}/applications
install -m 644 %SOURCE2 %{buildroot}/%{_datadir}/applications
install -m 644 %SOURCE3 %{buildroot}/%{_datadir}/applications
sed -i -e 's#/usr/lib/qt5/bin#%{_qt5_bindir}#' %{buildroot}/%{_datadir}/applications/*.desktop

# Fix all buildroot paths
find %{buildroot}/%{_qt5_libdir} -type f -name '*prl' -exec perl -pi -e "s, -L%{_builddir}/\S+,,g" {} \;
find %{buildroot}/%{_qt5_libdir} -type f -name '*prl' -exec sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" {} \;
find %{buildroot}/%{_qt5_libdir} -type f -name '*la' -print -exec perl -pi -e "s, -L%{_builddir}/?\S+,,g" {} \;

# Don't reference builddir neither /usr(/X11R6)?/ in .pc files.
perl -pi -e '\
s@-L/usr/X11R6/%{_lib} @@g;\
s@-I/usr/X11R6/include @@g;\
s@-L/%{_builddir}\S+@@g'\
    `find . -name \*.pc`

mkdir -p %buildroot%{_bindir}

pushd %buildroot%{_bindir}
	for i in assistant designer lconvert linguist lrelease lupdate pixeltool qcollectiongenerator qdbus qdbusviewer qdoc qhelpconverter qhelpgenerator qtdiag qtpaths qtplugininfo ; do 
				ln -s %{_qt5_bindir}/$i . ;
	done
popd

# .la and .a files, die, die, die.
find %{buildroot} -name '*.la' -delete
#find %%{buildroot} -name '*.a' -delete


%changelog
* Wed Feb 28 2018 neoclust <neoclust> 5.9.4-1.mga6
  (not released yet)
+ Revision: 1205717
- New version 5.9.4
- Disable bootstrap
- New version 5.9.3
- New version 5.6.3

* Sun Mar 12 2017 neoclust <neoclust> 5.6.2-4.mga6
+ Revision: 1092255
- Qtlinguist need qtassistant (mga#20416)

* Sat Dec 31 2016 neoclust <neoclust> 5.6.2-3.mga6
+ Revision: 1078779
- Put binaries in bindir ( symlinks )

* Thu Nov 03 2016 neoclust <neoclust> 5.6.2-2.mga6
+ Revision: 1065056
- Rebuild against qtbase 5.6.2

* Thu Nov 03 2016 neoclust <neoclust> 5.6.2-1.mga6
+ Revision: 1064831
- New version 5.6.2

* Fri Sep 02 2016 daviddavid <daviddavid> 5.6.1-4.mga6
+ Revision: 1049774
- recommends qttools5-assistant instead

* Wed Aug 31 2016 daviddavid <daviddavid> 5.6.1-3.mga6
+ Revision: 1049623
- build missing docs part (mga#9812)
- add qttools5-doc subpackage

* Sun Jul 03 2016 neoclust <neoclust> 5.6.1-2.mga6
+ Revision: 1038383
- Update to version 5.6.1-1
- New version

* Wed May 11 2016 akien <akien> 5.6.0-2.mga6
+ Revision: 1013637
- Fix libname s/libqthelp5/libqt5help5/ etc.

* Thu Mar 17 2016 neoclust <neoclust> 5.6.0-1.mga6
+ Revision: 992504
+ rebuild (emptylog)

* Wed Mar 09 2016 neoclust <neoclust> 5.6.0-0.rc.2.mga6
+ Revision: 987913
- Rebuild Qt5 Stack to fix plasma crashes

* Sun Feb 28 2016 neoclust <neoclust> 5.6.0-0.rc.1.mga6
+ Revision: 980619
+ rebuild (emptylog)

* Tue Feb 16 2016 umeabot <umeabot> 5.6.0-0.beta.5.mga6
+ Revision: 962557
- Mageia 6 Mass Rebuild
+ neoclust <neoclust>
- Rebuild against new cmake to have cmake() provides

* Sun Dec 27 2015 neoclust <neoclust> 5.6.0-0.beta.3.mga6
+ Revision: 915770
- Rebuild against new cmake to have cmake() provides

* Mon Dec 21 2015 neoclust <neoclust> 5.6.0-0.beta.2.mga6
+ Revision: 912763
- Remove private devel packages

* Sat Dec 19 2015 neoclust <neoclust> 5.6.0-0.beta.1.mga6
+ Revision: 912086
- New version 5.6.0 Beta

* Tue Nov 10 2015 neoclust <neoclust> 5.5.1-2.mga6
+ Revision: 900345
- Rebuild against fixed qtbase5

* Fri Oct 23 2015 neoclust <neoclust> 5.5.1-1.mga6
+ Revision: 894504
- New version
+ alexl <alexl>
- delete Encoding, add GenericName for desktop files

* Sun Jul 12 2015 filipesaraiva <filipesaraiva> 5.5.0-1.mga6
+ Revision: 853388
- Update to Qt 5.5.0 version;
- Fix URL to new address qt.io;
- Delete old sources;

* Wed Jun 24 2015 neoclust <neoclust> 5.5.0-0.rc.1.mga6
+ Revision: 841765
- New version 5.5 rc

* Thu Dec 18 2014 neoclust <neoclust> 5.4.0-2.mga5
+ Revision: 804025
- Fix Requires on qttools-designer

* Sat Dec 13 2014 neoclust <neoclust> 5.4.0-1.mga5
+ Revision: 802883
- New version 5.4.0

* Sun Dec 07 2014 neoclust <neoclust> 5.3.2-1.mga5
+ Revision: 802090
- New version 5.3.2

* Wed Oct 15 2014 umeabot <umeabot> 5.3.1-5.mga5
+ Revision: 751152
- Second Mageia 5 Mass Rebuild

* Sun Oct 12 2014 umeabot <umeabot> 5.3.1-4.mga5
+ Revision: 738099
- Mageia 5 Mass Rebuild

* Thu Jul 24 2014 neoclust <neoclust> 5.3.1-3.mga5
+ Revision: 656183
- Add BR to add qml support for lupdate ( mga #13781 )
- Add BR to add qml support for lupdate ( mga #13781 )

* Sun Jul 06 2014 neoclust <neoclust> 5.3.1-2.mga5
+ Revision: 644217
- Fix require for  qttools5 in qt5help-devel

* Thu Jun 26 2014 fwang <fwang> 5.3.1-1.mga5
+ Revision: 639875
- update file list
- 5.3.1

* Tue May 20 2014 fwang <fwang> 5.3.0-1.mga5
+ Revision: 624063
- 5.3.0 final

* Fri May 09 2014 fwang <fwang> 5.3.0-0.rc.1.mga5
+ Revision: 621458
- 5.3.0 rc

* Sun Apr 06 2014 fwang <fwang> 5.3.0-0.beta.1.mga5
+ Revision: 612345
- update file list
- 5.3.0beta

* Mon Mar 03 2014 neoclust <neoclust> 5.3.0-0.alpha.1.mga5
+ Revision: 598949
- New version 5.3.0 Alpha1

* Thu Feb 06 2014 fwang <fwang> 5.2.1-1.mga5
+ Revision: 584204
- 5.2.1
- 5.2.1

* Mon Dec 23 2013 neoclust <neoclust> 5.2.0-3.mga4
+ Revision: 560259
- Add qt5webkitwidgets-devel as Buildrequire mga #11998

* Sat Dec 14 2013 fwang <fwang> 5.2.0-2.mga4
+ Revision: 556704
- 5.2.0 final

* Sun Dec 01 2013 fwang <fwang> 5.2.0-1.rc1.1.mga4
+ Revision: 554418
- update file list
- update file list
- update file list
- 5.2.0 rc1

* Sat Oct 26 2013 fwang <fwang> 5.2.0-1.beta1.1.mga4
+ Revision: 547070
- 5.2.0 beta1

* Mon Oct 21 2013 umeabot <umeabot> 5.2.0-1.alpha.2.mga4
+ Revision: 538877
- Mageia 4 Mass Rebuild

* Thu Oct 03 2013 fwang <fwang> 5.2.0-1.alpha.1.mga4
+ Revision: 490719
- update file list
- 5.2.0 alpha1

* Sat Aug 10 2013 wally <wally> 5.2.0-0.0.20130523.4.mga4
+ Revision: 465116
- fix typo in cmake path patch

* Sat Aug 10 2013 wally <wally> 5.2.0-0.0.20130523.3.mga4
+ Revision: 465096
- add patch to fix cmake paths

* Mon May 27 2013 neoclust <neoclust> 5.2.0-0.0.20130523.2.mga4
+ Revision: 428825
- Rebuild against new qt5 libs location

* Sun May 26 2013 neoclust <neoclust> 5.2.0-0.0.20130523.1.mga4
+ Revision: 428071
- New QT 5.2 Snapshot
- New QT 5.2 Snapshot

* Wed Apr 17 2013 neoclust <neoclust> 5.0.2-1.mga3
+ Revision: 410386
- New version 5.0.2

* Sat Feb 02 2013 fwang <fwang> 5.0.1-2.mga3
+ Revision: 394054
- fix exec path of desktop file

* Sat Feb 02 2013 neoclust <neoclust> 5.0.1-1.mga3
+ Revision: 393995
- New version 5.0.1 Final

* Thu Jan 31 2013 neoclust <neoclust> 5.0.1-0.rc1.3.mga3
+ Revision: 393622
- Fix files lists
- Move private header in their own package

* Sat Jan 26 2013 neoclust <neoclust> 5.0.1-0.rc1.2.mga3
+ Revision: 392575
- Add back .a files, needed by a qt5 package

* Sat Jan 26 2013 neoclust <neoclust> 5.0.1-0.rc1.1.mga3
+ Revision: 392376
- New version 5.0.1 rc1
+ fwang <fwang>
- use xz

* Wed Jan 23 2013 neoclust <neoclust> 5.0.0-1.mga3
+ Revision: 391506
- Qt 5.0.0 FINAL
- New version rc1
+ umeabot <umeabot>
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sat Nov 17 2012 neoclust <neoclust> 5.0.0-0.beta.17.mga3
+ Revision: 319084
- Fix wrong requires

* Fri Nov 16 2012 neoclust <neoclust> 5.0.0-0.beta.16.mga3
+ Revision: 318480
- imported package qttools5