[packages/kf5-karchive] - kde5 -> kf5 - more variables for cmake

witekfl witekfl at pld-linux.org
Wed Jul 9 15:45:27 CEST 2014


commit 6140a1b7f250583d7fd539f2cda9671582ab7d1b
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Wed Jul 9 15:44:24 2014 +0200

    - kde5 -> kf5
    - more variables for cmake

 kde5-karchive.spec => kf5-karchive.spec | 22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)
---
diff --git a/kde5-karchive.spec b/kf5-karchive.spec
similarity index 76%
rename from kde5-karchive.spec
rename to kf5-karchive.spec
index 9f6a54d..ff0f5b8 100644
--- a/kde5-karchive.spec
+++ b/kf5-karchive.spec
@@ -7,7 +7,7 @@
 %define		orgname		karchive
 
 Summary:	Reading, creating, and manipulating file archives
-Name:		kde5-%{orgname}
+Name:		kf5-%{orgname}
 Version:	5.0.0
 Release:	0.1
 License:	GPL v2+/LGPL v2.1+
@@ -19,12 +19,14 @@ BuildRequires:	Qt5Core-devel >= 5.2.0
 BuildRequires:	Qt5Test-devel
 BuildRequires:	bzip2-devel
 BuildRequires:	cmake >= 2.8.12
-BuildRequires:	kde5-extra-cmake-modules >= 1.0.0
+BuildRequires:	kf5-extra-cmake-modules >= 1.0.0
 BuildRequires:	rpmbuild(macros) >= 1.164
 BuildRequires:	xz-devel
 BuildRequires:	zlib-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		qt5dir		%{_libdir}/qt5
+
 %description
 KArchive provides classes for easy reading, creation and manipulation
 of "archive" formats like ZIP and TAR.
@@ -51,8 +53,18 @@ Pliki nagłówkowe dla programistów używających %{orgname}.
 install -d build
 cd build
 %cmake \
-	-DECM_MKSPECS_INSTALL_DIR=%{_libdir}/qt5/mkspecs/modules \
-	../
+	-DBIN_INSTALL_DIR=%{_bindir} \
+	-DKCFG_INSTALL_DIR=%{_datadir}/config.kcfg \
+	-DPLUGIN_INSTALL_DIR=%{qt5dir}/plugins \
+	-DQT_PLUGIN_INSTALL_DIR=%{qt5dir}/plugins \
+	-DQML_INSTALL_DIR=%{qt5dir}/qml \
+	-DIMPORTS_INSTALL_DIR=%{qt5dirs}/imports \
+	-DSYSCONF_INSTALL_DIR=%{_sysconfdir} \
+	-DLIBEXEC_INSTALL_DIR=%{_libexecdir} \
+	-DKF5_LIBEXEC_INSTALL_DIR=%{_libexecdir} \
+	-DKF5_INCLUDE_INSTALL_DIR=%{_includedir} \
+	-DECM_MKSPECS_INSTALL_DIR=%{qt5dir}/mkspecs/modules \
+	..
 %{__make}
 
 %install
@@ -79,4 +91,4 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/KF5/karchive_version.h
 %attr(755,root,root) %{_libdir}/libKF5Archive.so
 %{_libdir}/cmake/KF5Archive
-%{_libdir}/qt5/mkspecs/modules/qt_KArchive.pri
+%{qt5dir}/mkspecs/modules/qt_KArchive.pri
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kf5-karchive.git/commitdiff/6140a1b7f250583d7fd539f2cda9671582ab7d1b



More information about the pld-cvs-commit mailing list