]> git.pld-linux.org Git - packages/rclone.git/blame - rclone.spec
up to 1.56.0
[packages/rclone.git] / rclone.spec
CommitLineData
d58f8ecc
JP
1Summary: rsync for cloud storage
2Name: rclone
3fda2773 3Version: 1.56.0
d58f8ecc
JP
4Release: 1
5License: MIT
6Group: Networking/Utilities
7#Source0Download: https://github.com/rclone/rclone/releases
8Source0: https://github.com/rclone/rclone/releases/download/v%{version}/%{name}-v%{version}.tar.gz
3fda2773 9# Source0-md5: fe5595f45c707860079b9f28b56ec7bd
d58f8ecc
JP
10# cd rclone-%{version}
11# go mod vendor
12# cd ..
64ad0af3 13# tar cJf rclone-vendor-%{version}.tar.xz rclone-v%{version}/vendor
d58f8ecc 14Source1: %{name}-vendor-%{version}.tar.xz
3fda2773 15# Source1-md5: 54112d1593db387113d5db8943710240
d58f8ecc 16URL: https://rclone.org/
15b5403e 17BuildRequires: golang >= 1.14
1c00b327 18BuildRequires: rpm-build >= 4.6
39227d4a 19BuildRequires: rpmbuild(macros) >= 2.005
64ad0af3
JP
20BuildRequires: tar >= 1:1.22
21BuildRequires: xz
d58f8ecc
JP
22ExclusiveArch: %{ix86} %{x8664} %{arm} aarch64 mips64 mips64le ppc64 ppc64le s390x
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
39227d4a
JP
25%define _debugsource_packages 0
26
d58f8ecc
JP
27%description
28Rclone is a command line program to sync files and directories to and
29from different cloud storage providers.
30
1c00b327
JP
31%package -n bash-completion-rclone
32Summary: bash-completion for rclone
33Group: Applications/Shells
34Requires: %{name} = %{version}-%{release}
35Requires: bash-completion >= 2.0
36BuildArch: noarch
37
38%description -n bash-completion-rclone
39This package provides bash-completion for rclone.
40
41%package -n fish-completion-rclone
42Summary: Fish completion for rclone command
43Group: Applications/Shells
44Requires: %{name} = %{version}-%{release}
45Requires: fish
46BuildArch: noarch
47
48%description -n fish-completion-rclone
49Fish completion for rclone command.
50
51%package -n zsh-completion-rclone
52Summary: Zsh completion for rclone command
53Group: Applications/Shells
54Requires: %{name} = %{version}-%{release}
55Requires: zsh
56BuildArch: noarch
57
58%description -n zsh-completion-rclone
59Zsh completion for rclone command.
60
d58f8ecc
JP
61%prep
62%setup -q -b1 -n %{name}-v%{version}
63
64%{__mkdir_p} .go-cache
65
66%build
39227d4a 67GOCACHE="$(pwd)/.go-cache" go build -v -mod=vendor --ldflags "-X github.com/rclone/rclone/fs.Version=%{version}" -o bin/rclone
d58f8ecc
JP
68
69%install
70rm -rf $RPM_BUILD_ROOT
71
1c00b327 72install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{bash_compdir},%{fish_compdir},%{zsh_compdir}}
d58f8ecc
JP
73
74cp -p bin/rclone $RPM_BUILD_ROOT%{_bindir}
75cp -p rclone.1 $RPM_BUILD_ROOT%{_mandir}/man1
76
1c00b327
JP
77$RPM_BUILD_ROOT%{_bindir}/rclone genautocomplete bash $RPM_BUILD_ROOT%{bash_compdir}/rclone
78$RPM_BUILD_ROOT%{_bindir}/rclone genautocomplete fish $RPM_BUILD_ROOT%{fish_compdir}/rclone.fish
79$RPM_BUILD_ROOT%{_bindir}/rclone genautocomplete zsh $RPM_BUILD_ROOT%{zsh_compdir}/_rclone
80
d58f8ecc
JP
81%clean
82rm -rf $RPM_BUILD_ROOT
83
84%files
85%defattr(644,root,root,755)
86%doc CONTRIBUTING.md MAINTAINERS.md MANUAL.md README.md
87%attr(755,root,root) %{_bindir}/rclone
88%{_mandir}/man1/rclone.1*
1c00b327
JP
89
90%files -n bash-completion-rclone
91%defattr(644,root,root,755)
92%{bash_compdir}/rclone
93
94%files -n fish-completion-%{name}
95%defattr(644,root,root,755)
96%{fish_compdir}/rclone.fish
97
98%files -n zsh-completion-%{name}
99%defattr(644,root,root,755)
100%{zsh_compdir}/_rclone
This page took 0.054328 seconds and 4 git commands to generate.