diff options
author | Tomasz Olszak <olszak.tomasz@gmail.com> | 2013-09-08 15:59:07 +0200 |
---|---|---|
committer | Tomasz Olszak <olszak.tomasz@gmail.com> | 2015-11-10 10:59:17 +0100 |
commit | a4a62ce3768f2b270fd0e42d82af789b0e763a46 (patch) | |
tree | 326d1a8a3c528f5db6fc5984b50f43ecb3fe0c2b /packaging | |
parent | e0c77e70f6841259e4e545914c300be4f91ee816 (diff) | |
download | qttools-a4a62ce3768f2b270fd0e42d82af789b0e763a46.tar.gz qttools-a4a62ce3768f2b270fd0e42d82af789b0e763a46.tar.bz2 qttools-a4a62ce3768f2b270fd0e42d82af789b0e763a46.zip |
Spec file adapted for Tizen
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/qt5-qttools.spec (renamed from packaging/qttools.spec) | 145 |
1 files changed, 79 insertions, 66 deletions
diff --git a/packaging/qttools.spec b/packaging/qt5-qttools.spec index 2853e24c..638bd72f 100644 --- a/packaging/qttools.spec +++ b/packaging/qt5-qttools.spec @@ -1,11 +1,36 @@ +# The MIT License (MIT) +# +# Copyright (c) 2013 Tomasz Olszak <olszak.tomasz@gmail.com> +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. + +# This file is based on qttools.spec from Mer project +# http://merproject.org + %define keep_static 1 Name: qt5-qttools Summary: Development tools for Qt -Version: 5.0.2 -Release: 1%{?dist} -Group: Qt/Qt -License: LGPLv2.1 with exception or GPLv3 -URL: http://qt.nokia.com +Version: 5.2.0 +Release: 0 +Group: Base/Libraries +License: LGPL-2.1+ or GPL-3.0 +URL: http://qt.digia.com Source: %{name}-%{version}.tar.bz2 BuildRequires: qt5-qtgui-devel BuildRequires: qt5-qtnetwork-devel @@ -31,7 +56,7 @@ This package contains additional tools for building Qt applications. %package linguist Summary: The linguist tools -Group: Qt/Qt +Group: Base/Libraries Requires: %{name} = %{version}-%{release} Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig @@ -41,7 +66,7 @@ This package contains the linguist tool %package pixeltool Summary: The pixeltool tool -Group: Qt/Qt +Group: Base/Libraries Requires: %{name} = %{version}-%{release} Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig @@ -49,19 +74,9 @@ Requires(postun): /sbin/ldconfig %description pixeltool This package contains the pixeltool tool -%package kmap2qmap -Summary: The kmap2qmap tool -Group: Qt/Qt -Requires: %{name} = %{version}-%{release} -Requires(post): /sbin/ldconfig -Requires(postun): /sbin/ldconfig - -%description kmap2qmap -This package contains the kmap2qmap tool - %package qdbus Summary: The qdbus and qdbusviewer tool -Group: Qt/Qt +Group: Base/Libraries Requires: %{name} = %{version}-%{release} Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig @@ -71,7 +86,7 @@ This package contains the qdbus and qdbusviewer tool %package qtuitools Summary: The QtUiTools library -Group: Qt/Qt +Group: Base/Libraries Requires: %{name} = %{version}-%{release} Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig @@ -81,7 +96,7 @@ This package contains the QtUiTools library %package qtuitools-devel Summary: Development files for QtUiTools -Group: Qt/Qt +Group: Base/Libraries Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig @@ -92,7 +107,7 @@ applications that use QtUiTools %package qtclucene Summary: The QtCLucene library -Group: Qt/Qt +Group: Base/Libraries Requires: %{name} = %{version}-%{release} Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig @@ -102,7 +117,7 @@ This package contains the QtCLucene library %package qtclucene-devel Summary: Development files for QtLucense -Group: Qt/Qt +Group: Base/Libraries Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig @@ -112,14 +127,14 @@ applications that use QtCLucene %package qtdesigner Summary: The Qt designer libraries -Group: Qt/Qt +Group: Base/Libraries Requires: %{name} = %{version}-%{release} Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig %package qthelp Summary: The QtHelp library -Group: Qt/Qt +Group: Base/Libraries Requires: %{name} = %{version}-%{release} Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig @@ -129,7 +144,7 @@ This package contains the QtHelp library %package qthelp-devel Summary: Development files for QtHelp -Group: Qt/Qt +Group: Base/Libraries Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig @@ -143,7 +158,7 @@ applications that use QtDesigner %package qtdesigner-devel Summary: Development files for QtDesigner -Group: Qt/Qt +Group: Base/Libraries Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig @@ -166,22 +181,9 @@ make %{?_smp_mflags} rm -rf %{buildroot} %qmake5_install -# Remove unneeded .la files -rm -f %{buildroot}/%{_libdir}/*.la - -# We don't need qt5/Qt/ -rm -rf %{buildroot}/%{_includedir}/qt5/Qt - -# Fix wrong path in pkgconfig files -find %{buildroot}%{_libdir}/pkgconfig -type f -name '*.pc' \ --exec perl -pi -e "s, -L%{_builddir}/?\S+,,g" {} \; -# Fix wrong path in prl files -find %{buildroot}%{_libdir} -type f -name '*.prl' \ --exec sed -i -e "/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/" {} \; - -%fdupes %{buildroot}/%{_libdir} -%fdupes %{buildroot}/%{_includedir} -%fdupes %{buildroot}/%{_datadir} +%fdupes %{buildroot}%{_libdir} +%fdupes %{buildroot}%{_includedir} +%fdupes %{buildroot}%{_datadir} #### Pre/Post section @@ -190,17 +192,25 @@ find %{buildroot}%{_libdir} -type f -name '*.prl' \ %postun /sbin/ldconfig -%post qtuitools -p /sbin/ldconfig -%postun qtuitools -p /sbin/ldconfig +%post qtuitools +/sbin/ldconfig +%postun qtuitools +/sbin/ldconfig -%post qthelp -p /sbin/ldconfig -%postun qthelp -p /sbin/ldconfig +%post qthelp +/sbin/ldconfig +%postun qthelp +/sbin/ldconfig -%post qtclucene -p /sbin/ldconfig -%postun qtclucene -p /sbin/ldconfig +%post qtclucene +/sbin/ldconfig +%postun qtclucene +/sbin/ldconfig -%post qtdesigner -p /sbin/ldconfig -%postun qtdesigner -p /sbin/ldconfig +%post qtdesigner +/sbin/ldconfig +%postun qtdesigner +/sbin/ldconfig @@ -211,19 +221,16 @@ find %{buildroot}%{_libdir} -type f -name '*.prl' \ %defattr(-,root,root,-) %{_qt5_bindir}/lconvert %{_qt5_bindir}/linguist +%{_qt5_bindir}/qtpaths %{_qt5_bindir}/lrelease %{_qt5_bindir}/lupdate -%{_datadir}/qt5/phrasebooks/ +%{_datadir}/qt5/phrasebooks %{_libdir}/cmake/Qt5Linguist* %files pixeltool %defattr(-,root,root,-) %{_qt5_bindir}/pixeltool -%files kmap2qmap -%defattr(-,root,root,-) -%{_qt5_bindir}/kmap2qmap - %files qdbus %defattr(-,root,root,-) %{_qt5_bindir}/qdbus @@ -234,12 +241,14 @@ find %{buildroot}%{_libdir} -type f -name '*.prl' \ %files qtuitools-devel %defattr(-,root,root,-) -%{_includedir}/qt5/QtUiTools/ +%{_includedir}/qt5/QtUiTools %{_libdir}/libQt5UiTools.prl %{_libdir}/libQt5UiTools.a +%{_libdir}/libQt5UiTools.la %{_libdir}/pkgconfig/Qt5UiTools.pc %{_datadir}/qt5/mkspecs/modules/qt_lib_uitools.pri -%{_libdir}/cmake/Qt5UiTools/ +%{_datadir}/qt5/mkspecs/modules/qt_lib_uitools_private.pri +%{_libdir}/cmake/Qt5UiTools %files qthelp %defattr(-,root,root,-) @@ -251,12 +260,14 @@ find %{buildroot}%{_libdir} -type f -name '*.prl' \ %{_qt5_bindir}/qhelpgenerator %{_qt5_bindir}/qcollectiongenerator %{_qt5_bindir}/qhelpconverter -%{_includedir}/qt5/QtHelp/ +%{_includedir}/qt5/QtHelp %{_libdir}/libQt5Help.prl +%{_libdir}/libQt5Help.la %{_libdir}/libQt5Help.so %{_libdir}/pkgconfig/Qt5Help.pc %{_datadir}/qt5/mkspecs/modules/qt_lib_help.pri -%{_libdir}/cmake/Qt5Help/ +%{_datadir}/qt5/mkspecs/modules/qt_lib_help_private.pri +%{_libdir}/cmake/Qt5Help %files qtclucene %defattr(-,root,root,-) @@ -264,12 +275,13 @@ find %{buildroot}%{_libdir} -type f -name '*.prl' \ %files qtclucene-devel %defattr(-,root,root,-) -%{_includedir}/qt5/QtCLucene/ +%{_includedir}/qt5/QtCLucene %{_libdir}/libQt5CLucene.prl +%{_libdir}/libQt5CLucene.la %{_libdir}/libQt5CLucene.so %{_libdir}/pkgconfig/Qt5CLucene.pc -%{_datadir}/qt5/mkspecs/modules/qt_lib_clucene.pri -# +%{_datadir}/qt5/mkspecs/modules/qt_lib_clucene_private.pri + %files qtdesigner %defattr(-,root,root,-) %{_qt5_bindir}/designer @@ -277,13 +289,14 @@ find %{buildroot}%{_libdir} -type f -name '*.prl' \ %files qtdesigner-devel %defattr(-,root,root,-) -%{_includedir}/qt5/QtDesigner/ -%{_includedir}/qt5/QtDesignerComponents/ +%{_includedir}/qt5/QtDesigner +%{_includedir}/qt5/QtDesignerComponents %{_libdir}/libQt5Designer*.so %{_libdir}/libQt5Designer*.prl +%{_libdir}/libQt5Designer*.la +%{_libdir}/libQt5Designer*.prl %{_datadir}/qt5/mkspecs/modules/qt_lib_designer*.pri %{_libdir}/pkgconfig/Qt5Designer*.pc -%{_libdir}/cmake/Qt5Designer/ +%{_libdir}/cmake/Qt5Designer #### No changelog section, separate $pkg.changes contains the history - |