1
0
forked from pool/libqt5-qtbase

Accepting request 202161 from KDE:Qt51

- Add convenient macros for packages building against Qt5: %_libqt5_qmake, %qmake5, %make_jobs and %qmake5_install

Please forward to 13.1, it would make life much easier for packagers that build Qt5 & 13.1 target (so they don't need to depend on :Update, or devel project)

OBS-URL: https://build.opensuse.org/request/show/202161
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libqt5-qtbase?expand=0&rev=3
This commit is contained in:
Tomáš Chvátal 2013-10-06 12:27:16 +00:00 committed by Git OBS Bridge
parent 74e0517d5b
commit 019445abdd
3 changed files with 30 additions and 12 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Oct 4 14:23:42 UTC 2013 - hrvoje.senjan@gmail.com
- Add convenient macros for packages building against Qt5:
%_libqt5_qmake, %qmake5, %make_jobs and %qmake5_install
-------------------------------------------------------------------
Thu Sep 12 19:58:38 UTC 2013 - hrvoje.senjan@gmail.com

View File

@ -15,6 +15,7 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libqt5-qtbase
BuildRequires: alsa-devel
BuildRequires: at-spi2-core-devel
@ -39,19 +40,19 @@ BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(gbm)
BuildRequires: pkgconfig(glesv2)
%endif
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(xkbcommon) >= 0.2.0
BuildRequires: xcb-util-image-devel
BuildRequires: xcb-util-keysyms-devel
BuildRequires: xcb-util-renderutil-devel
BuildRequires: xcb-util-wm-devel
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(xkbcommon) >= 0.2.0
Version: 5.1.1
Release: 0
License: GPL-3.0 or SUSE-LGPL-2.1-with-digia-exception-1.1
Summary: C++ Program Library, Core Components
Url: http://qt.digia.com
License: GPL-3.0 or SUSE-LGPL-2.1-with-digia-exception-1.1
Group: System/Libraries
Url: http://qt.digia.com
%define base_name libqt5
%define real_version 5.1.1
%define tar_version qtbase-opensource-src-%{real_version}
@ -132,18 +133,18 @@ Requires: pkgconfig(gl)
Requires: pkgconfig(gbm)
Requires: pkgconfig(glesv2)
%endif
Requires: pkgconfig(glib-2.0)
Requires: pkgconfig(xkbcommon) >= 0.2.0
Requires: xcb-util-image-devel
Requires: xcb-util-keysyms-devel
Requires: xcb-util-renderutil-devel
Requires: xcb-util-wm-devel
Requires: gstreamer-0_10-plugins-base-devel
Requires: libicu-devel
Requires: libpulse-devel
Requires: libudev-devel
Requires: xcb-util-image-devel
Requires: xcb-util-keysyms-devel
Requires: xcb-util-renderutil-devel
Requires: xcb-util-wm-devel
Requires: xorg-x11-devel
Requires: zlib-devel
Requires: pkgconfig(glib-2.0)
Requires: pkgconfig(xkbcommon) >= 0.2.0
%description devel
You need this package, if you want to compile programs with Qt. It

View File

@ -12,5 +12,16 @@
%_libqt5_sysconfdir %{_sysconfdir}/xdg
%_libqt5_translationdir %{_libqt5_datadir}/qt5/translations
%_libqt5_qmake %{_libqt5_bindir}/qmake
%qmake5 \
export PATH=%{_libqt5_bindir}:$PATH ; \
export CXXFLAGS="$CXXFLAGS %{optflags} -DOPENSSL_LOAD_CONF" ; \
export CFLAGS="$CFLAGS %{optflags} -DOPENSSL_LOAD_CONF" ; \
%_libqt5_qmake
%make_jobs \
%{__make} %{?_smp_mflags} VERBOSE=1
%qmake5_install \
make INSTALL_ROOT=%{buildroot} install