[packages/liblxqt-mount] - up to 0.8.0 - migrating from qt4 to qt5

rotom rotom at pld-linux.org
Sat Oct 25 21:41:12 CEST 2014


commit 314ed88939ba69ff0c294c76ade54c125d5c7c4c
Author: rotom <rotom at pld-linux.org>
Date:   Sun Oct 26 20:40:11 2014 +0100

    - up to 0.8.0
    - migrating from qt4 to qt5

 liblxqt-mount.spec | 39 ++++++++++++++++++++-------------------
 1 file changed, 20 insertions(+), 19 deletions(-)
---
diff --git a/liblxqt-mount.spec b/liblxqt-mount.spec
index 2208465..5146ad7 100644
--- a/liblxqt-mount.spec
+++ b/liblxqt-mount.spec
@@ -1,22 +1,22 @@
 #
 # Conditional build:
 #
-%define		qtver		4.8.5
+%define		qtver		5.3.1
 
 Summary:	lxqt-mount - libraries
 Summary(pl.UTF-8):	lxqt-mount - biblioteki
 Name:		liblxqt-mount
-Version:	0.7.0
-Release:	0.1
+Version:	0.8.0
+Release:	0.2
 License:	GPLv2 and LGPL-2.1+
 Group:		X11/Libraries
-Source0:	http://lxqt.org/downloads/lxqt/0.7.0/%{name}-%{version}.tar.xz
-# Source0-md5:	195cdafc601bd2f798e87ef3d893a5ac
+Source0:	http://lxqt.org/downloads/lxqt/%{version}/%{name}-%{version}.tar.xz
+# Source0-md5:	0d12418bb26fb4f630895231e5ecaffb
 URL:		http://www.lxqt.org/
-BuildRequires:	QtCore-devel >= %{qtver}
-BuildRequires:	QtDBus-devel >= %{qtver}
-BuildRequires:	QtGui-devel >= %{qtver}
-BuildRequires:	liblxqt-devel >= 0.7.0
+BuildRequires:	Qt5Core-devel >= %{qtver}
+BuildRequires:	Qt5DBus-devel >= %{qtver}
+BuildRequires:	Qt5Gui-devel >= %{qtver}
+BuildRequires:	liblxqt-devel >= 0.8.0
 BuildRequires:	cmake >= 2.8.3
 BuildRequires:	xz-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -29,9 +29,9 @@ Summary:	liblxqt-mount - header files and development documentation
 Summary(pl.UTF-8):	liblxqt-mount - pliki nagłówkowe i dokumentacja do lxqt-mount
 Group:		X11/Development/Libraries
 Requires:	%{name} = %{version}-%{release}
-Requires:	QtCore-devel >= %{qtver}
-Requires:	QtDBus-devel >= %{qtver}
-Requires:	QtGui-devel >= %{qtver}
+Requires:	Qt5Core-devel >= %{qtver}
+Requires:	Qt5DBus-devel >= %{qtver}
+Requires:	Qt5Gui-devel >= %{qtver}
 
 %description devel
 This package contains header files and development documentation for
@@ -42,12 +42,13 @@ Pakiet ten zawiera pliki nagłówkowe i dokumentację potrzebną przy
 pisaniu własnych programów wykorzystujących lxqt-mount.
 
 %prep
-%setup -q -c %{name}-%{version}
+%setup -q
 
 %build
 install -d build
 cd build
 %cmake \
+    -DUSE_QT5=ON \
 	../
 
 %{__make}
@@ -66,12 +67,12 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%ghost %{_libdir}/liblxqtmount.so.0
-%attr(755,root,root) %{_libdir}/liblxqtmount.so.*.*.*
+%ghost %{_libdir}/liblxqtmount-qt5.so.0
+%attr(755,root,root) %{_libdir}/liblxqtmount-qt5.so.*.*.*
 
 %files devel
 %defattr(644,root,root,755)
-%{_includedir}/lxqtmount
-%{_libdir}/liblxqtmount.so
-%{_pkgconfigdir}/lxqtmount.pc
-%{_datadir}/cmake/lxqtmount
+%{_includedir}/lxqtmount-qt5
+%{_libdir}/liblxqtmount-qt5.so
+%{_pkgconfigdir}/lxqtmount-qt5.pc
+%{_datadir}/cmake/lxqtmount-qt5
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/liblxqt-mount.git/commitdiff/314ed88939ba69ff0c294c76ade54c125d5c7c4c



More information about the pld-cvs-commit mailing list