diff --git a/libqt5-qttools.changes b/libqt5-qttools.changes index 309be4d..546e2d5 100644 --- a/libqt5-qttools.changes +++ b/libqt5-qttools.changes @@ -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 diff --git a/libqt5-qttools.spec b/libqt5-qttools.spec index cc7c9ae..8a2441c 100644 --- a/libqt5-qttools.spec +++ b/libqt5-qttools.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -19,10 +19,10 @@ Name: libqt5-qttools Version: 5.1.1 Release: 0 -License: SUSE-LGPL-2.1-with-digia-exception-1.1 or GPL-3.0 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 +Url: http://qt.digia.com Source: %{tar_version}.tar.xz Source11: designer5.desktop Source12: linguist5.desktop @@ -55,6 +55,10 @@ This package contains base tools, like string, xml, and network handling. Summary: Qt Development Kit Group: Development/Libraries/X11 Requires: %{name} = %{version} +Requires: libQt5CLucene5 = %{version} +Requires: libQt5Designer5 = %{version} +Requires: libQt5DesignerComponents5 = %{version} +Requires: libQt5Help5 = %{version} Requires: libQt5Quick-devel >= %{version} Requires: libQt5WebKitWidgets-devel >= %{version} 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 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 -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 -n libQt5CLucene5 -p /sbin/ldconfig + +%postun -n libQt5Designer5 -p /sbin/ldconfig + +%postun -n libQt5DesignerComponents5 -p /sbin/ldconfig + +%postun -n libQt5Help5 -p /sbin/ldconfig + %build -export PATH=%{_libqt5_bindir}:$PATH -%ifarch ppc64 - 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 +%qmake5 +%make_jobs %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 '*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} @@ -116,22 +157,35 @@ popd ##mkdir -p %{buildroot}%{_datadir}/doc/packages/libqt5 ##cp -a src/assistant/assistant/assistant.qch %{buildroot}%{_datadir}/doc/packages/libqt5/ -%clean -rm -rf %{buildroot} - %files %defattr(-,root,root,755) %{_bindir}/* %{_libqt5_bindir}/* %{_datadir}/applications/*.desktop %{_datadir}/pixmaps/*.png -%{_libqt5_libdir}/libQt5CLucene.so.* -%{_libqt5_libdir}/libQt5Designer.so.* -%{_libqt5_libdir}/libQt5DesignerComponents.so.* -%{_libqt5_libdir}/libQt5Help.so.* %{_libqt5_libdir}/qt5/plugins/designer #%_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 %defattr(-,root,root,755) %{_libqt5_includedir}/QtCLucene/%{so_version}