[packages/mirall] add nautilus bcond
glen
glen at pld-linux.org
Sat Feb 7 20:20:14 CET 2015
commit 46df0acb9618c5953ec41447e704acf086dbb273
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Feb 7 21:01:18 2015 +0200
add nautilus bcond
mirall.spec | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/mirall.spec b/mirall.spec
index 7993c66..3d9f0a1 100644
--- a/mirall.spec
+++ b/mirall.spec
@@ -1,6 +1,7 @@
#
# Conditional build:
%bcond_without qt4 # build Qt4
+%bcond_without nautilus # build Nautilus extension
# TODO:
# * Fix ocsync packaging for and fix plugin dependencies here
@@ -19,7 +20,9 @@ URL: https://owncloud.org/install/#desktop
BuildRequires: check
BuildRequires: cmake >= 2.8
BuildRequires: doxygen
+BuildRequires: sed >= 4.0
BuildRequires: libstdc++-devel
+%{?with_nautilus:BuildRequires: nautilus-python-devel}
%if %{with qt4}
BuildRequires: QtGui-devel >= %{qtver}
BuildRequires: QtKeychain-devel
@@ -55,6 +58,10 @@ Header files for %{name}
%prep
%setup -q
+%if %{without nautilus}
+%{__sed} -i -e "s/add_subdirectory(nautilus)//" shell_integration/CMakeLists.txt
+%endif
+
%build
install -d build
cd build
@@ -119,6 +126,8 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/owncloudsync/mirall/*
%{_includedir}/owncloudsync/creds/*
+%if %{with nautilus}
%files nautilus
%defattr(644,root,root,755)
%{_datadir}/nautilus-python/extensions/*.py
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mirall.git/commitdiff/0dc59ae581d8c6aebd9064cf757a274d52ded598
More information about the pld-cvs-commit
mailing list