3 %bcond_with tests # build without tests
4 %bcond_without doc # build manual page
6 Summary: Git extension for versioning large files
11 Group: Applications/Archiving
12 Source0: https://github.com/github/git-lfs/archive/v%{version}/%{name}-%{version}.tar.gz
13 # Source0-md5: 6585ffb66f30180c98f8038e5b7d1349
14 URL: https://git-lfs.github.com/
15 BuildRequires: git-core
18 %{?with_doc:BuildRequires: ronn}
19 Requires: git-core >= 1.8.5
20 ExclusiveArch: %{ix86} %{x8664} %{arm}
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define _enable_debug_packages 0
24 %define import_path github.com/git-lfs/%{name}
34 Git Large File Storage (LFS) replaces large files such as audio
35 samples, videos, datasets, and graphics with text pointers inside Git,
36 while storing the file contents on a remote server like GitHub.com or
43 mv %{name}-%{version}/*.md .
45 install -d src/$(dirname %{import_path})
46 mv %{name}-%{version} src/%{import_path}
51 export GOARCH=%{GOARCH}
54 sh -x ./script/bootstrap
61 # ensure there are no GIT env vars for testing
62 env | grep GIT_ && exit 3
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
73 install -p bin/git-lfs $RPM_BUILD_ROOT%{_bindir}/git-lfs
75 cp -p man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
79 rm -rf $RPM_BUILD_ROOT
82 %defattr(644,root,root,755)
83 %doc LICENSE.md README.md ROADMAP.md CHANGELOG.md
84 %attr(755,root,root) %{_bindir}/git-lfs
85 %{?with_doc:%{_mandir}/man1/*.1*}