commit e999176d3a463ab4feab8d7cd540220d63b05e3e
Author: Elan Ruusamäe <[email protected]>
Date:   Wed Apr 13 00:12:55 2016 +0300

    dolphin bcond, requires kf5 >= 5.16 not available in pld

 owncloudclient.spec | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/owncloudclient.spec b/owncloudclient.spec
index a63d46e..2a5193d 100644
--- a/owncloudclient.spec
+++ b/owncloudclient.spec
@@ -1,20 +1,20 @@
-# TODO
-# - kf5 >= 5.16
 #
 # Conditional build:
 %bcond_without nautilus        # build Nautilus extension
+%bcond_with    dolphin         # build dolphin extension
 %bcond_without doc             # build docs
 %bcond_without gui             # build only libraries
 
 %if %{without gui}
 %undefine      with_nautilus
+%undefine      with_dolphin
 %undefine      with_doc
 %endif
 
 Summary:       The ownCloud client
 Name:          owncloudclient
 Version:       2.1.1
-Release:       0.15
+Release:       0.16
 License:       GPL v2+
 Group:         X11/Applications
 Source0:       
https://download.owncloud.com/desktop/stable/%{name}-%{version}.tar.xz
@@ -29,8 +29,6 @@ BuildRequires:        QtSql-devel
 BuildRequires: QtWebKit-devel
 BuildRequires: QtXmlPatterns-devel
 BuildRequires: cmake >= 2.8.11
-BuildRequires: kf5-kconfig-devel
-BuildRequires: kf5-ki18n-devel
 BuildRequires: libstdc++-devel
 BuildRequires: openssl-devel >= 1.0.0
 BuildRequires: pkgconfig
@@ -40,6 +38,13 @@ BuildRequires:       rpmbuild(macros) >= 1.596
 BuildRequires: sqlite3-devel >= 3.8.0
 BuildRequires: tar >= 1:1.22
 BuildRequires: xz
+%if %{with dolphin}
+BuildRequires: kf5-attica-devel >= 5.16
+BuildRequires: kf5-extra-cmake-modules >= 5.16
+BuildRequires: kf5-kconfig-devel >= 5.16
+BuildRequires: kf5-ki18n-devel >= 5.16
+BuildRequires: kf5-kio-devel >= 5.16
+%endif
 %if %{with doc}
 BuildRequires: doxygen
 BuildRequires: sphinx-pdg-2
@@ -140,6 +145,9 @@ cd build
        -DSPHINX_FOUND=NO \
        -DDOXYGEN_FOUND=NO \
 %endif
+%if %{without dolphin}
+       -DKF5_FOUND=NO \
+%endif
        %{!?with_gui:-DBUILD_LIBRARIES_ONLY=ON} \
        ..
 %{__make}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/owncloudclient.git/commitdiff/e999176d3a463ab4feab8d7cd540220d63b05e3e

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to