1
0
forked from pool/libqt5-qtbase

Accepting request 203547 from KDE:Qt5

- Further split libqt5-qtbase package to libQt5Concurrent5, 
  libQt5Core5, libQt5DBus5, libQt5Network5, libQt5Xml5, 
  libQt5PrintSupport5 and libQt5OpenGL5
- Rename sql plugin subpackages for more consistent naming with the
  rest of libraries
- Apply the same solution as with Qt4 with regards to rebuilds:
  don't use current build date, but rather last changes date

OBS-URL: https://build.opensuse.org/request/show/203547
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libqt5-qtbase?expand=0&rev=4
This commit is contained in:
Tomáš Chvátal 2013-10-17 12:21:52 +00:00 committed by Git OBS Bridge
parent 019445abdd
commit 26038cf417
3 changed files with 209 additions and 43 deletions

View File

@ -1,10 +1,41 @@
libqt5-qtbase libQt5Core5
libQt5Test5 obsoletes "libqt5-qtbase-<targettype> <= <version>"
libQtWidgets5 provides "libqt5-qtbase-<targettype> = <version>"
libqt5-sql-sqlite libQt5Concurrent5
libqt5-sql-unixODBC libQt5DBus5
libqt5-sql-postgresql libQt5Network5
libqt5-sql-mysql libQt5OpenGL5
libQt5PrintSupport5
libQt5Xml5
libQt5Gui5 libQt5Gui5
libQt5Sql5 libQt5Sql5
libQt5Test5
libQt5Widgets5 libQt5Widgets5
libQt5Sql5-sqlite
obsoletes "libqt5-sql-sqlite-<targettype> <= <version>"
provides "libqt5-sql-sqlite-<targettype> = <version>"
libQt5Sql5-unixODBC
obsoletes "libqt5-sql-unixODBC-<targettype> <= <version>"
provides "libqt5-sql-unixODBC-<targettype> = <version>"
libQt5Sql5-postgresql
obsoletes "libqt5-sql-postgresql-<targettype> <= <version>"
provides "libqt5-sql-postgresql-<targettype> = <version>"
libQt5Sql5-mysql
obsoletes "libqt5-sql-mysql-<targettype> <= <version>"
provides "libqt5-sql-mysql-<targettype> = <version>"
libqt5-qtbase-devel
requires "libQt5Core5-<targettype> = <version>"
requires "libQt5Concurrent5-<targettype> = <version>"
requires "libQt5DBus5-<targettype> = <version>"
requires "libQt5Network5-<targettype> = <version>"
requires "libQt5OpenGL5-<targettype> = <version>"
requires "libQt5PrintSupport5-<targettype> = <version>"
requires "libQt5Xml5-<targettype> = <version>"
requires "libQt5Gui5-<targettype> = <version>"
requires "libQt5Sql5-<targettype> = <version>"
requires "libQt5Test5-<targettype> = <version>"
requires "libQt5Widgets5-<targettype> = <version>"
requires "libQt5Sql5-sqlite-<targettype> = <version>"
requires "libQt5Sql5-unixODBC-<targettype> = <version>"
requires "libQt5Sql5-postgresql-<targettype> = <version>"
requires "libQt5Sql5-mysql-<targettype> = <version>"

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Wed Oct 16 17:24:48 UTC 2013 - hrvoje.senjan@gmail.com
- Further split libqt5-qtbase package to libQt5Concurrent5,
libQt5Core5, libQt5DBus5, libQt5Network5, libQt5Xml5,
libQt5PrintSupport5 and libQt5OpenGL5
- Rename sql plugin subpackages for more consistent naming with the
rest of libraries
- Apply the same solution as with Qt4 with regards to rebuilds:
don't use current build date, but rather last changes date
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Oct 4 14:23:42 UTC 2013 - hrvoje.senjan@gmail.com Fri Oct 4 14:23:42 UTC 2013 - hrvoje.senjan@gmail.com

View File

@ -46,6 +46,8 @@ BuildRequires: xcb-util-renderutil-devel
BuildRequires: xcb-util-wm-devel BuildRequires: xcb-util-wm-devel
BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-2.0) BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(ice)
BuildRequires: pkgconfig(sm)
BuildRequires: pkgconfig(xkbcommon) >= 0.2.0 BuildRequires: pkgconfig(xkbcommon) >= 0.2.0
Version: 5.1.1 Version: 5.1.1
Release: 0 Release: 0
@ -55,8 +57,11 @@ Group: System/Libraries
Url: http://qt.digia.com Url: http://qt.digia.com
%define base_name libqt5 %define base_name libqt5
%define real_version 5.1.1 %define real_version 5.1.1
%define so_version 5.1.1
%define tar_version qtbase-opensource-src-%{real_version} %define tar_version qtbase-opensource-src-%{real_version}
Source: %{tar_version}.tar.xz Source: %{tar_version}.tar.xz
# to get mtime of file:
Source1: libqt5-qtbase.changes
Source2: macros.qt5 Source2: macros.qt5
Source3: baselibs.conf Source3: baselibs.conf
# PATCH-FIX-UPSTREAM qt-never-strip.diff -- for creating debug packages # PATCH-FIX-UPSTREAM qt-never-strip.diff -- for creating debug packages
@ -108,19 +113,28 @@ rm -r src/3rdparty/{libjpeg,freetype,libpng,zlib}
%package devel %package devel
Summary: Qt Development Kit Summary: Qt Development Kit
Group: Development/Libraries/X11 Group: Development/Libraries/X11
Requires: %{name} = %{version}
Requires: alsa-devel Requires: alsa-devel
Requires: at-spi2-core-devel Requires: at-spi2-core-devel
Requires: c++_compiler Requires: c++_compiler
Requires: cups-devel Requires: cups-devel
Requires: freetype2-devel Requires: freetype2-devel
Requires: libQt5Gui5 = %{version} Requires: libQt5Concurrent5 >= %{version}
Requires: libQt5Test5 = %{version} Requires: libQt5Core5 >= %{version}
Requires: libQt5Widgets5 = %{version} Requires: libQt5DBus5 >= %{version}
Requires: libQt5Gui5 >= %{version}
Requires: libQt5Network5 >= %{version}
Requires: libQt5OpenGL5 >= %{version}
Requires: libQt5PrintSupport5 >= %{version}
Requires: libQt5Sql5-mysql >= %{version}
Requires: libQt5Sql5-postgresql >= %{version}
Requires: libQt5Sql5-sqlite >= %{version}
Requires: libQt5Sql5-unixODBC >= %{version}
Requires: libQt5Test5 >= %{version}
Requires: libQt5Widgets5 >= %{version}
Requires: libQt5Xml5 >= %{version}
Requires: libjpeg-devel Requires: libjpeg-devel
Requires: libmng-devel Requires: libmng-devel
Requires: libpng-devel Requires: libpng-devel
Requires: libqt5-sql-sqlite >= %{version}
Requires: libtiff-devel Requires: libtiff-devel
Requires: make Requires: make
Requires: openssl-devel Requires: openssl-devel
@ -144,6 +158,8 @@ Requires: xcb-util-wm-devel
Requires: xorg-x11-devel Requires: xorg-x11-devel
Requires: zlib-devel Requires: zlib-devel
Requires: pkgconfig(glib-2.0) Requires: pkgconfig(glib-2.0)
Requires: pkgconfig(ice)
Requires: pkgconfig(sm)
Requires: pkgconfig(xkbcommon) >= 0.2.0 Requires: pkgconfig(xkbcommon) >= 0.2.0
%description devel %description devel
@ -152,56 +168,120 @@ contains the "Qt Crossplatform Development Kit". It does contain
include files and development applications like GUI designers, include files and development applications like GUI designers,
translator tools and code generators. translator tools and code generators.
%package -n libQt5Core5
Summary: Qt 5 Core Library
Group: Development/Libraries/X11
Provides: libqt5-qtbase = %{version}
# FIXME change to < after Qt 5.2 update
Obsoletes: libqt5-qtbase <= %{version}
%description -n libQt5Core5
The Qt 5 Core library.
%package -n libQt5DBus5
Summary: Qt 5 DBus Library
Group: Development/Libraries/X11
%description -n libQt5DBus5
The Qt 5 DBus library.
%package -n libQt5Network5
Summary: Qt 5 Network Library
Group: Development/Libraries/X11
%description -n libQt5Network5
The Qt 5 Network library.
%package -n libQt5OpenGL5
Summary: Qt 5 OpenGL Library
Group: Development/Libraries/X11
%description -n libQt5OpenGL5
The Qt 5 OpenGL library.
%package -n libQt5PrintSupport5
Summary: Qt 5 Print Support Library
Group: Development/Libraries/X11
%description -n libQt5PrintSupport5
The Qt 5 Print Support library.
%package -n libQt5Xml5
Summary: Qt 5 Xml Library
Group: Development/Libraries/X11
%description -n libQt5Xml5
The Qt 5 Xml library.
%package -n libQt5Concurrent5
Summary: Qt 5 Concurrent Library
Group: Development/Libraries/X11
%description -n libQt5Concurrent5
The Qt 5 Concurrent library.
%package -n libQt5Test5 %package -n libQt5Test5
Summary: Qt 5 Test Library Summary: Qt 5 Test Library
Group: Development/Libraries/X11 Group: Development/Libraries/X11
%description -n libQt5Test5 %description -n libQt5Test5
Qt 5 library for testing. The Qt 5 library for testing.
%package -n libQt5Widgets5 %package -n libQt5Widgets5
Summary: Qt 5 Test Library Summary: Qt 5 Test Library
Group: Development/Libraries/X11 Group: Development/Libraries/X11
%description -n libQt5Widgets5 %description -n libQt5Widgets5
Qt 5 library to display widgets. The Qt 5 library to display widgets.
%package -n libqt5-sql-sqlite %package -n libQt5Sql5-sqlite
Summary: Qt 5 sqlite plugin Summary: Qt 5 sqlite plugin
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libQt5Sql5 = %{version} Requires: libQt5Sql5 = %{version}
Provides: libqt5-sql-sqlite = %{version}
Provides: libqt5_sql_backend = %{version} Provides: libqt5_sql_backend = %{version}
# FIXME change to < after Qt 5.2 update
Obsoletes: libqt5-sql-sqlite <= %{version}
%description -n libqt5-sql-sqlite %description -n libQt5Sql5-sqlite
Qt 5 sqlite plugin to be able to use database functionality with Qt Qt 5 sqlite plugin to be able to use database functionality with Qt
applications without the need to setup a SQL server. applications without the need to setup a SQL server.
%package -n libqt5-sql-unixODBC %package -n libQt5Sql5-unixODBC
Summary: Qt 5 unixODBC plugin Summary: Qt 5 unixODBC plugin
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libQt5Sql5 = %{version} Requires: libQt5Sql5 = %{version}
Provides: libqt5-sql-unixODBC = %{version}
Provides: libqt5_sql_backend = %{version} Provides: libqt5_sql_backend = %{version}
# FIXME change to < after Qt 5.2 update
Obsoletes: libqt5-sql-unixODBC <= %{version}
%description -n libqt5-sql-unixODBC %description -n libQt5Sql5-unixODBC
Qt unixODBC plugin to support databases via unixODBC within Qt Qt unixODBC plugin to support databases via unixODBC within Qt
applications. applications.
%package -n libqt5-sql-postgresql %package -n libQt5Sql5-postgresql
Summary: Qt 5 PostgreSQL plugin Summary: Qt 5 PostgreSQL plugin
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libQt5Sql5 = %{version} Requires: libQt5Sql5 = %{version}
Provides: libqt5-sql-postgresql = %{version}
Provides: libqt5_sql_backend = %{version} Provides: libqt5_sql_backend = %{version}
# FIXME change to < after Qt 5.2 update
Obsoletes: libqt5-sql-postgresql <= %{version}
%description -n libqt5-sql-postgresql %description -n libQt5Sql5-postgresql
Qt SQL plugin to support PostgreSQL servers in Qt applications. Qt SQL plugin to support PostgreSQL servers in Qt applications.
%package -n libqt5-sql-mysql %package -n libQt5Sql5-mysql
Summary: Qt 5 MySQL support Summary: Qt 5 MySQL support
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libQt5Sql5 = %{version} Requires: libQt5Sql5 = %{version}
Provides: libqt5-sql-mysql = %{version}
Provides: libqt5_sql_backend = %{version} Provides: libqt5_sql_backend = %{version}
# FIXME change to < after Qt 5.2 update
Obsoletes: libqt5-sql-mysql <= %{version}
%description -n libqt5-sql-mysql %description -n libQt5Sql5-mysql
A plugin to support MySQL server in Qt applications. A plugin to support MySQL server in Qt applications.
%package -n libQt5Gui5 %package -n libQt5Gui5
@ -343,13 +423,21 @@ pushd %{buildroot}%{libqt5_docdir}/global/template/images
chmod -R 644 *.png chmod -R 644 *.png
popd popd
%fdupes %{buildroot}/%{libqt5_includedir} %fdupes -s %{buildroot}
%fdupes %{buildroot}/%{libqt5_archdatadir}/mkspecs
%clean %post -n libQt5Core5 -p /sbin/ldconfig
rm -rf %{buildroot}
%post -p /sbin/ldconfig %post -n libQt5Concurrent5 -p /sbin/ldconfig
%post -n libQt5DBus5 -p /sbin/ldconfig
%post -n libQt5Network5 -p /sbin/ldconfig
%post -n libQt5OpenGL5 -p /sbin/ldconfig
%post -n libQt5PrintSupport5 -p /sbin/ldconfig
%post -n libQt5Xml5 -p /sbin/ldconfig
%post -n libQt5Gui5 -p /sbin/ldconfig %post -n libQt5Gui5 -p /sbin/ldconfig
@ -359,7 +447,19 @@ rm -rf %{buildroot}
%post -n libQt5Widgets5 -p /sbin/ldconfig %post -n libQt5Widgets5 -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -n libQt5Core5 -p /sbin/ldconfig
%postun -n libQt5Concurrent5 -p /sbin/ldconfig
%postun -n libQt5DBus5 -p /sbin/ldconfig
%postun -n libQt5Network5 -p /sbin/ldconfig
%postun -n libQt5OpenGL5 -p /sbin/ldconfig
%postun -n libQt5PrintSupport5 -p /sbin/ldconfig
%postun -n libQt5Xml5 -p /sbin/ldconfig
%postun -n libQt5Gui5 -p /sbin/ldconfig %postun -n libQt5Gui5 -p /sbin/ldconfig
@ -369,18 +469,45 @@ rm -rf %{buildroot}
%postun -n libQt5Widgets5 -p /sbin/ldconfig %postun -n libQt5Widgets5 -p /sbin/ldconfig
%files %files -n libQt5Core5
%defattr(-,root,root,755) %defattr(-,root,root,755)
%doc *.txt LICENSE.LGPL LICENSE.FDL %doc *.txt LICENSE.LGPL LICENSE.FDL
%{libqt5_libdir}/libQt5Core.so.*
%files -n libQt5Concurrent5
%defattr(-,root,root,755)
%doc *.txt LICENSE.LGPL LICENSE.FDL
%{libqt5_libdir}/libQt5Concurrent.so.*
%files -n libQt5DBus5
%defattr(-,root,root,755)
%doc *.txt LICENSE.LGPL LICENSE.FDL
%{libqt5_libdir}/libQt5DBus.so.*
%files -n libQt5Network5
%defattr(-,root,root,755)
%doc *.txt LICENSE.LGPL LICENSE.FDL
%{libqt5_libdir}/libQt5Network.so.*
%dir %{libqt5_libdir}/qt5 %dir %{libqt5_libdir}/qt5
%dir %{libqt5_plugindir} %dir %{libqt5_plugindir}
%{libqt5_libdir}/libQt5Core.so.*
%{libqt5_libdir}/libQt5Concurrent.so.*
%{libqt5_libdir}/libQt5DBus.so.*
%{libqt5_libdir}/libQt5Network.so.*
%{libqt5_libdir}/libQt5Xml.so.*
%{libqt5_plugindir}/bearer %{libqt5_plugindir}/bearer
%files -n libQt5OpenGL5
%defattr(-,root,root,755)
%doc *.txt LICENSE.LGPL LICENSE.FDL
%{libqt5_libdir}/libQt5OpenGL.so.*
%files -n libQt5PrintSupport5
%defattr(-,root,root,755)
%doc *.txt LICENSE.LGPL LICENSE.FDL
%{libqt5_libdir}/libQt5PrintSupport.so.*
%{libqt5_plugindir}/printsupport
%files -n libQt5Xml5
%defattr(-,root,root,755)
%doc *.txt LICENSE.LGPL LICENSE.FDL
%{libqt5_libdir}/libQt5Xml.so.*
%files -n libQt5Test5 %files -n libQt5Test5
%defattr(-,root,root,755) %defattr(-,root,root,755)
%doc *.txt LICENSE.LGPL LICENSE.FDL %doc *.txt LICENSE.LGPL LICENSE.FDL
@ -390,10 +517,7 @@ rm -rf %{buildroot}
%defattr(-,root,root,755) %defattr(-,root,root,755)
%doc *.txt LICENSE.LGPL LICENSE.FDL %doc *.txt LICENSE.LGPL LICENSE.FDL
%{libqt5_libdir}/libQt5Widgets.so.* %{libqt5_libdir}/libQt5Widgets.so.*
%{libqt5_libdir}/libQt5PrintSupport.so.*
%{libqt5_libdir}/libQt5OpenGL.so.*
%{libqt5_plugindir}/accessible %{libqt5_plugindir}/accessible
%{libqt5_plugindir}/printsupport
%files -n libQt5Gui5 %files -n libQt5Gui5
%defattr(-,root,root,755) %defattr(-,root,root,755)
@ -411,7 +535,7 @@ rm -rf %{buildroot}
%{_bindir}/* %{_bindir}/*
%libqt5_bindir/* %libqt5_bindir/*
%dir %libqt5_bindir %dir %libqt5_bindir
%exclude %{libqt5_includedir}/*/5.1.1 %exclude %{libqt5_includedir}/*/%{so_version}
%{libqt5_includedir}/ %{libqt5_includedir}/
%{libqt5_libdir}/cmake %{libqt5_libdir}/cmake
%{libqt5_libdir}/libQt5*.la %{libqt5_libdir}/libQt5*.la
@ -426,7 +550,7 @@ rm -rf %{buildroot}
%files private-headers-devel %files private-headers-devel
%defattr(-,root,root,755) %defattr(-,root,root,755)
%doc *.txt LICENSE.LGPL LICENSE.FDL %doc *.txt LICENSE.LGPL LICENSE.FDL
%{libqt5_includedir}/*/5.1.1 %{libqt5_includedir}/*/%{so_version}
%files -n libQt5Sql5 %files -n libQt5Sql5
%defattr(-,root,root,755) %defattr(-,root,root,755)
@ -434,22 +558,22 @@ rm -rf %{buildroot}
%{libqt5_libdir}/libQt5Sql.so.* %{libqt5_libdir}/libQt5Sql.so.*
%dir %{libqt5_plugindir}/sqldrivers %dir %{libqt5_plugindir}/sqldrivers
%files -n libqt5-sql-sqlite %files -n libQt5Sql5-sqlite
%defattr(-,root,root,755) %defattr(-,root,root,755)
%doc *.txt LICENSE.LGPL LICENSE.FDL %doc *.txt LICENSE.LGPL LICENSE.FDL
%{libqt5_plugindir}/sqldrivers/libqsqlite*.so %{libqt5_plugindir}/sqldrivers/libqsqlite*.so
%files -n libqt5-sql-unixODBC %files -n libQt5Sql5-unixODBC
%defattr(-,root,root,755) %defattr(-,root,root,755)
%doc *.txt LICENSE.LGPL LICENSE.FDL %doc *.txt LICENSE.LGPL LICENSE.FDL
%{libqt5_plugindir}/sqldrivers/libqsqlodbc*.so %{libqt5_plugindir}/sqldrivers/libqsqlodbc*.so
%files -n libqt5-sql-postgresql %files -n libQt5Sql5-postgresql
%defattr(-,root,root,755) %defattr(-,root,root,755)
%doc *.txt LICENSE.LGPL LICENSE.FDL %doc *.txt LICENSE.LGPL LICENSE.FDL
%{libqt5_plugindir}/sqldrivers/libqsqlpsql*.so %{libqt5_plugindir}/sqldrivers/libqsqlpsql*.so
%files -n libqt5-sql-mysql %files -n libQt5Sql5-mysql
%defattr(-,root,root,755) %defattr(-,root,root,755)
%doc *.txt LICENSE.LGPL LICENSE.FDL %doc *.txt LICENSE.LGPL LICENSE.FDL
%{libqt5_plugindir}/sqldrivers/libqsqlmysql*.so %{libqt5_plugindir}/sqldrivers/libqsqlmysql*.so