[packages/megacmd] split megafuse

glen glen at pld-linux.org
Tue Nov 27 14:05:19 CET 2018


commit e44969105fe044ee4086b338e785e0e12f2fba03
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Nov 27 15:04:47 2018 +0200

    split megafuse

 megacmd.spec | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)
---
diff --git a/megacmd.spec b/megacmd.spec
index 902e273..a8ff278 100644
--- a/megacmd.spec
+++ b/megacmd.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without	fuse       # build megafuse
+
 Summary:	Command Line Interactive and Scriptable Application to access MEGA
 Name:		megacmd
 Version:	1.0.0
@@ -18,6 +22,7 @@ BuildRequires:	c-ares-devel
 BuildRequires:	cppcheck
 BuildRequires:	cryptopp-devel
 BuildRequires:	ffmpeg-devel
+%{?with_fuse:BuildRequires:	libfuse-devel}
 BuildRequires:	libmediainfo-devel
 BuildRequires:	libraw-devel
 BuildRequires:	libsodium-devel
@@ -43,6 +48,7 @@ synchronization and backup of local folders into your MEGA account.
 %package libs
 Summary:	Shared libmega library
 Group:		Libraries
+Requires:	%{name}-libs = %{version}-%{release}
 
 %description libs
 Shared libmega library.
@@ -59,6 +65,13 @@ Header files for %{name} library.
 %description devel -l pl.UTF-8
 Pliki nagłówkowe biblioteki %{name}.
 
+%package fuse
+Summary:	megafuse
+Group:		Libraries
+
+%description fuse
+megafuse.
+
 %prep
 %setup -q -n MEGAcmd-%{version} -a1
 mv sdk-*/* sdk
@@ -67,6 +80,7 @@ mv sdk-*/* sdk
 %build
 autoreconf -vif
 %configure \
+	%{with_without fuse} \
 	--disable-silent-rules
 %{__make}
 
@@ -144,9 +158,14 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/mega-webdav
 %attr(755,root,root) %{_bindir}/mega-whoami
 %attr(755,root,root) %{_bindir}/megacli
-%attr(755,root,root) %{_bindir}/megafuse
 %attr(755,root,root) %{_bindir}/megasimplesync
 
+%if %{with fuse}
+%files fuse
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/megafuse
+%endif
+
 %files libs
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libmega.so.*.*.*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/megacmd.git/commitdiff/e44969105fe044ee4086b338e785e0e12f2fba03



More information about the pld-cvs-commit mailing list