mirror of
https://abf.rosa.ru/djam/megafuse.git
synced 2025-02-23 08:42:47 +00:00
69 lines
1.6 KiB
RPMSpec
69 lines
1.6 KiB
RPMSpec
|
%define oname MegaFuse
|
||
|
%define gitrev c2c35981f7f6be9e10b5ad571e4141996a5f5db8
|
||
|
%define datarev 20160605
|
||
|
|
||
|
Name: megafuse
|
||
|
Summary: Mount mega.nz
|
||
|
Version: 0.01
|
||
|
Release: 2.%{datarev}
|
||
|
License: GPLv2
|
||
|
URL: https://github.com/matteoserva/MegaFuse
|
||
|
Group: Networking/File transfer
|
||
|
Source0: %{oname}-%{gitrev}.zip
|
||
|
Patch0: megafuse.src.patch
|
||
|
Patch1: megaposix.src.patch
|
||
|
Patch2: megabdb.patch
|
||
|
BuildRequires: gcc
|
||
|
BuildRequires: pkgconfig(fuse)
|
||
|
BuildRequires: pkgconfig(openssl)
|
||
|
BuildRequires: pkgconfig(cryptopp)
|
||
|
BuildRequires: pkgconfig(libcurl)
|
||
|
BuildRequires: db52-devel
|
||
|
BuildRequires: freeimage-devel
|
||
|
BuildRequires: readline-devel
|
||
|
BuildRequires: systemd
|
||
|
|
||
|
Requires(post): systemd
|
||
|
Requires(preun): systemd
|
||
|
Requires(postun): systemd
|
||
|
|
||
|
%description
|
||
|
This is a linux client for the MEGA cloud storage provider.
|
||
|
It is based on FUSE and it allows to mount the remote cloud
|
||
|
drive on the local filesystem.
|
||
|
Once mounted, all linux program will see the cloud drive as
|
||
|
a normal folder.
|
||
|
|
||
|
%prep
|
||
|
%setup -qn %{oname}-%{gitrev}
|
||
|
%patch -p0
|
||
|
%patch1 -p0
|
||
|
%patch2 -p0
|
||
|
|
||
|
sed -i -e "s/%{oname}/%{name}/g" %{name}.service %{name}@.service
|
||
|
|
||
|
%build
|
||
|
%make
|
||
|
|
||
|
%install
|
||
|
install -d %{buildroot}%{_bindir}
|
||
|
install -d %{buildroot}%{_unitdir}
|
||
|
install -d %{buildroot}/%{_sysconfdir}
|
||
|
install -Dm0755 %{oname} %{buildroot}%{_bindir}/%{name}
|
||
|
install -Dm0644 %{name}.service %{buildroot}%{_unitdir}/%{name}.service
|
||
|
install -Dm0644 %{name}@.service %{buildroot}%{_unitdir}/%{name}@.service
|
||
|
|
||
|
%post
|
||
|
%systemd_post %{name}@.service
|
||
|
|
||
|
%preun
|
||
|
%systemd_preun %{name}@.servie
|
||
|
|
||
|
%postun
|
||
|
%systemd_postun_with_restart %{name}@.service
|
||
|
|
||
|
%files
|
||
|
%doc README.md LICENSE.txt FAQ.txt
|
||
|
%{_bindir}/%{name}
|
||
|
%{_unitdir}/%{name}*.service
|