[packages/libdbusmenu-qt] - updated to 0.9.3 snapshot (taken from Debian) - bcond qt5

witekfl witekfl at pld-linux.org
Sat Feb 20 20:30:44 CET 2016

commit 32289c4fe9b32d67aa6efc17107929ac87a1e563
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Sat Feb 20 20:29:33 2016 +0100

    - updated to 0.9.3 snapshot (taken from Debian)
    - bcond qt5

 libdbusmenu-qt.spec | 119 +++++++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 105 insertions(+), 14 deletions(-)
diff --git a/libdbusmenu-qt.spec b/libdbusmenu-qt.spec
index c10a767..87d3879 100644
--- a/libdbusmenu-qt.spec
+++ b/libdbusmenu-qt.spec
@@ -1,17 +1,27 @@
+# Conditional build:
+%bcond_without	qt5		# do not build Qt5 version
 Summary:	Qt implementation of the DBusMenu spec
 Summary(pl.UTF-8):	Implementacja Qt specyfikacji DBusMenu
 Name:		libdbusmenu-qt
-Version:	0.9.2
-Release:	2
+Version:	0.9.3
+Release:	0.20150604.1
 License:	LGPL v2+
 Group:		Libraries
-Source0:	https://launchpad.net/libdbusmenu-qt/trunk/%{version}/+download/%{name}-%{version}.tar.bz2
-# Source0-md5:	9a49484927669cd2ec91b3bf9ba8b79e
+Source0:	%{name}_%{version}+15.10.20150604.orig.tar.gz
+# Source0-md5:	d6fe90fe530a926b9db505da11e2c354
 URL:		https://launchpad.net/libdbusmenu-qt/
 BuildRequires:	QtCore-devel >= 4
 BuildRequires:	QtDBus-devel >= 4
 # for <QtGui/QKeySequence>
 BuildRequires:	QtGui-devel >= 4
+%if %{with qt5}
+BuildRequires:	Qt5Core-devel
+BuildRequires:	Qt5DBus-devel
+BuildRequires:	Qt5Gui-devel
 BuildRequires:	cmake >= 2.8.0
 BuildRequires:	doxygen
 BuildRequires:	libstdc++-devel
@@ -19,6 +29,10 @@ BuildRequires:	pkgconfig
 BuildRequires:	qjson-devel >= 0.7.1
 BuildRequires:	qt4-build >= 4
 BuildRequires:	qt4-qmake >= 4
+%if %{with qt5}
+BuildRequires:	qt5-build
+BuildRequires:	qt5-qmake
 BuildRequires:	rpmbuild(macros) >= 1.605
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -53,40 +67,117 @@ API documentation for dbusmenu-qt library.
 %description apidocs -l pl.UTF-8
 Dokumentacja API biblioteki dbusmenu-qt.
+%package -n libdbusmenu-qt5
+Summary:	Qt5 implementation of the DBusMenu spec
+Summary(pl.UTF-8):	Implementacja Qt5 specyfikacji DBusMenu
+Version:	0.9.3
+Release:	0.20150604.1
+License:	LGPL v2+
+Group:		Libraries
+%description -n libdbusmenu-qt5
+This library provides a Qt5 implementation of the DBusMenu spec.
+%description -n libdbusmenu-qt5 -l pl.UTF-8
+Ta biblioteka dostarcza implementację Qt5 specyfikacji DBusMenu.
+%package -n libdbusmenu-qt5-devel
+Summary:	Header files for dbusmenu-qt library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki dbusmenu-qt
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	Qt5Core-devel >= 5
+Requires:	Qt5DBus-devel >= 5
+%description -n libdbusmenu-qt5-devel
+Header files for dbusmenu-qt5 library.
+%description -n libdbusmenu-qt5-devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki dbusmenu-qt5.
+%package -n libdbusmenu-qt5-apidocs
+Summary:	dbusmenu-qt5 API documentation
+Summary(pl.UTF-8):	Dokumentacja API biblioteki dbusmenu-qt5
+Group:		Documentation
+%description -n libdbusmenu-qt5-apidocs
+API documentation for dbusmenu-qt5 library.
+%description -n libdbusmenu-qt5-apidocs -l pl.UTF-8
+Dokumentacja API biblioteki dbusmenu-qt5.
-%setup -q
+%setup -q -n %{name}-%{version}+15.10.20150604
-install -d build
-cd build
-%cmake ..
+install -d build4
+cd build4
+%cmake -DUSE_QT4=ON \
+	..
+%if %{with qt5}
+cd -
+install -d build5
+cd build5
+%cmake -DUSE_QT5=ON \
+	..
-%{__make} -C build install \
+%{__make} -C build4 install \
+%{__make} -C build5 install \
-%post	-p /sbin/ldconfig
-%postun	-p /sbin/ldconfig
+%post -p /sbin/ldconfig
+%postun	 -p /sbin/ldconfig
+%if %{with qt5}
+%post	-n libdbusmenu-qt5 -p /sbin/ldconfig
+%postun	-n libdbusmenu-qt5 -p /sbin/ldconfig
-%attr(755,root,root) %{_libdir}/libdbusmenu-qt.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libdbusmenu-qt.so.2
+%attr(755,root,root) %{_libdir}/libdbusmenu-qt.so.2.*.*
 %files devel
-%attr(755,root,root) %{_libdir}/libdbusmenu-qt.so
 %files apidocs
+%if %{with qt5}
+%files -n libdbusmenu-qt5
+%attr(755,root,root) %ghost %{_libdir}/libdbusmenu-qt5.so.2
+%attr(755,root,root) %{_libdir}/libdbusmenu-qt5.so.2.*.*
+%files -n libdbusmenu-qt5-devel
+%files -n libdbusmenu-qt5-apidocs

---- gitweb:


More information about the pld-cvs-commit mailing list