Accepting request 203673 from KDE:Qt5

- Split out libqt5-tools package further to libQt5CLucene5, libQt5Designer5, libQt5DesignerComponents5 and libQt5Help5, main package now contains only binaries
- Utilize Qt5 macros

OBS-URL: https://build.opensuse.org/request/show/203673
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libqt5-qttools?expand=0&rev=3
This commit is contained in:
Tomáš Chvátal 2013-10-18 09:33:29 +00:00 committed by Git OBS Bridge
parent 5fafdeef90
commit 5d17b152b0
2 changed files with 82 additions and 20 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Oct 17 17:20:29 UTC 2013 - hrvoje.senjan@gmail.com
- Split out libqt5-tools package further to libQt5CLucene5, libQt5Designer5,
libQt5DesignerComponents5 and libQt5Help5, main package now contains
only binaries
- Utilize Qt5 macros
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Sep 11 19:25:27 UTC 2013 - hrvoje.senjan@gmail.com Wed Sep 11 19:25:27 UTC 2013 - hrvoje.senjan@gmail.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package libqt5-qttools # spec file for package libqt5-qttools
# #
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -19,10 +19,10 @@
Name: libqt5-qttools Name: libqt5-qttools
Version: 5.1.1 Version: 5.1.1
Release: 0 Release: 0
License: SUSE-LGPL-2.1-with-digia-exception-1.1 or GPL-3.0
Summary: Qt 5 QtTools Module Summary: Qt 5 QtTools Module
Url: http://qt.digia.com License: SUSE-LGPL-2.1-with-digia-exception-1.1 or GPL-3.0
Group: Development/Libraries/X11 Group: Development/Libraries/X11
Url: http://qt.digia.com
Source: %{tar_version}.tar.xz Source: %{tar_version}.tar.xz
Source11: designer5.desktop Source11: designer5.desktop
Source12: linguist5.desktop Source12: linguist5.desktop
@ -55,6 +55,10 @@ This package contains base tools, like string, xml, and network handling.
Summary: Qt Development Kit Summary: Qt Development Kit
Group: Development/Libraries/X11 Group: Development/Libraries/X11
Requires: %{name} = %{version} Requires: %{name} = %{version}
Requires: libQt5CLucene5 = %{version}
Requires: libQt5Designer5 = %{version}
Requires: libQt5DesignerComponents5 = %{version}
Requires: libQt5Help5 = %{version}
Requires: libQt5Quick-devel >= %{version} Requires: libQt5Quick-devel >= %{version}
Requires: libQt5WebKitWidgets-devel >= %{version} Requires: libQt5WebKitWidgets-devel >= %{version}
Requires: libxslt-devel Requires: libxslt-devel
@ -74,23 +78,60 @@ not used by application development and that do not have any ABI or
API guarantees. The packages that build against these have to require API guarantees. The packages that build against these have to require
the exact Qt version. the exact Qt version.
%package -n libQt5CLucene5
Summary: Qt 5 Clucene Library
Group: Development/Libraries/X11
%description -n libQt5CLucene5
The Qt 5 Clucene library.
%package -n libQt5Designer5
Summary: Qt 5 Designer Library
Group: Development/Libraries/X11
%description -n libQt5Designer5
The Qt 5 Designer library.
%package -n libQt5DesignerComponents5
Summary: Qt 5 Designer Components Library
Group: Development/Libraries/X11
%description -n libQt5DesignerComponents5
The Qt 5 Designer Components library.
%package -n libQt5Help5
Summary: Qt 5 Help Library
Group: Development/Libraries/X11
%description -n libQt5Help5
The Qt 5 Help library.
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%post -n libQt5CLucene5 -p /sbin/ldconfig
%post -n libQt5Designer5 -p /sbin/ldconfig
%post -n libQt5DesignerComponents5 -p /sbin/ldconfig
%post -n libQt5Help5 -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%postun -n libQt5CLucene5 -p /sbin/ldconfig
%postun -n libQt5Designer5 -p /sbin/ldconfig
%postun -n libQt5DesignerComponents5 -p /sbin/ldconfig
%postun -n libQt5Help5 -p /sbin/ldconfig
%build %build
export PATH=%{_libqt5_bindir}:$PATH %qmake5
%ifarch ppc64 %make_jobs
RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
%endif
export CXXFLAGS="$CXXFLAGS %{optflags} -DOPENSSL_LOAD_CONF"
export CFLAGS="$CFLAGS %{optflags} -DOPENSSL_LOAD_CONF"
export MAKEFLAGS="%{?_smp_mflags}"
qmake
make
%install %install
make INSTALL_ROOT=%{buildroot} install %qmake5_install
find %{buildroot}/%{_libdir} -type f -name '*la' -print -exec perl -pi -e 's, -L%{_builddir}/\S+,,g' {} \; find %{buildroot}/%{_libdir} -type f -name '*la' -print -exec perl -pi -e 's, -L%{_builddir}/\S+,,g' {} \;
find %{buildroot}/%{_libdir} -type f -name '*pc' -print -exec perl -pi -e "s, -L$RPM_BUILD_DIR/?\S+,,g" {} \; -exec sed -i -e "s,^moc_location=.*,moc_location=%{_libqt5_bindir}/moc," -e "s,uic_location=.*,uic_location=%{_libqt5_bindir}/uic," {} \; find %{buildroot}/%{_libdir} -type f -name '*pc' -print -exec perl -pi -e "s, -L$RPM_BUILD_DIR/?\S+,,g" {} \; -exec sed -i -e "s,^moc_location=.*,moc_location=%{_libqt5_bindir}/moc," -e "s,uic_location=.*,uic_location=%{_libqt5_bindir}/uic," {} \;
%fdupes %{buildroot}/%{_libqt5_includedir} %fdupes %{buildroot}/%{_libqt5_includedir}
@ -116,22 +157,35 @@ popd
##mkdir -p %{buildroot}%{_datadir}/doc/packages/libqt5 ##mkdir -p %{buildroot}%{_datadir}/doc/packages/libqt5
##cp -a src/assistant/assistant/assistant.qch %{buildroot}%{_datadir}/doc/packages/libqt5/ ##cp -a src/assistant/assistant/assistant.qch %{buildroot}%{_datadir}/doc/packages/libqt5/
%clean
rm -rf %{buildroot}
%files %files
%defattr(-,root,root,755) %defattr(-,root,root,755)
%{_bindir}/* %{_bindir}/*
%{_libqt5_bindir}/* %{_libqt5_bindir}/*
%{_datadir}/applications/*.desktop %{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.png %{_datadir}/pixmaps/*.png
%{_libqt5_libdir}/libQt5CLucene.so.*
%{_libqt5_libdir}/libQt5Designer.so.*
%{_libqt5_libdir}/libQt5DesignerComponents.so.*
%{_libqt5_libdir}/libQt5Help.so.*
%{_libqt5_libdir}/qt5/plugins/designer %{_libqt5_libdir}/qt5/plugins/designer
#%_docdir/packages/libqt5 #%_docdir/packages/libqt5
%files -n libQt5CLucene5
%defattr(-,root,root,755)
%doc *.txt LICENSE.LGPL LICENSE.FDL
%{_libqt5_libdir}/libQt5CLucene.so.*
%files -n libQt5Designer5
%defattr(-,root,root,755)
%doc *.txt LICENSE.LGPL LICENSE.FDL
%{_libqt5_libdir}/libQt5Designer.so.*
%files -n libQt5DesignerComponents5
%defattr(-,root,root,755)
%doc *.txt LICENSE.LGPL LICENSE.FDL
%{_libqt5_libdir}/libQt5DesignerComponents.so.*
%files -n libQt5Help5
%defattr(-,root,root,755)
%doc *.txt LICENSE.LGPL LICENSE.FDL
%{_libqt5_libdir}/libQt5Help.so.*
%files private-headers-devel %files private-headers-devel
%defattr(-,root,root,755) %defattr(-,root,root,755)
%{_libqt5_includedir}/QtCLucene/%{so_version} %{_libqt5_includedir}/QtCLucene/%{so_version}