don't strip debug symbols but disable debug source packages
[packages/rclone.git] / rclone.spec
CommitLineData
d58f8ecc
JP
1Summary: rsync for cloud storage
2Name: rclone
64ad0af3 3Version: 1.55.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
64ad0af3 9# Source0-md5: 16389b8398ecf5c0b9942dbfc956ff88
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
64ad0af3 15# Source1-md5: 9de5b2c00f12d4f082c0c24f7e3e01d4
d58f8ecc 16URL: https://rclone.org/
15b5403e 17BuildRequires: golang >= 1.14
39227d4a 18BuildRequires: rpmbuild(macros) >= 2.005
64ad0af3
JP
19BuildRequires: tar >= 1:1.22
20BuildRequires: xz
d58f8ecc
JP
21ExclusiveArch: %{ix86} %{x8664} %{arm} aarch64 mips64 mips64le ppc64 ppc64le s390x
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
39227d4a
JP
24%define _debugsource_packages 0
25
d58f8ecc
JP
26%description
27Rclone is a command line program to sync files and directories to and
28from different cloud storage providers.
29
30%prep
31%setup -q -b1 -n %{name}-v%{version}
32
33%{__mkdir_p} .go-cache
34
35%build
39227d4a 36GOCACHE="$(pwd)/.go-cache" go build -v -mod=vendor --ldflags "-X github.com/rclone/rclone/fs.Version=%{version}" -o bin/rclone
d58f8ecc
JP
37
38%install
39rm -rf $RPM_BUILD_ROOT
40
41install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
42
43cp -p bin/rclone $RPM_BUILD_ROOT%{_bindir}
44cp -p rclone.1 $RPM_BUILD_ROOT%{_mandir}/man1
45
46%clean
47rm -rf $RPM_BUILD_ROOT
48
49%files
50%defattr(644,root,root,755)
51%doc CONTRIBUTING.md MAINTAINERS.md MANUAL.md README.md
52%attr(755,root,root) %{_bindir}/rclone
53%{_mandir}/man1/rclone.1*
This page took 0.051075 seconds and 4 git commands to generate.