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: ee4bf9682af1c223facc772c50aa7488
14 URL: https://git-lfs.github.com/
15 BuildRequires: git-core
18 %{?with_doc:BuildRequires: ronn}
19 Requires: git-core >= 1.8.2
20 ExclusiveArch: %{ix86} %{x8664} %{arm}
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define _enable_debug_packages 0
33 Git Large File Storage (LFS) replaces large files such as audio
34 samples, videos, datasets, and graphics with text pointers inside Git,
35 while storing the file contents on a remote server like GitHub.com or
40 mkdir -p src/github.com/github
41 ln -s $(pwd) src/github.com/github/%{name}
46 export GOARCH=%{GOARCH}
47 sh -x ./script/bootstrap
54 # ensure there are no GIT env vars for testing
55 #unset GIT_DIR GIT_WORK_TREE
56 env | grep GIT_ && exit 3
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
66 install -p bin/git-lfs $RPM_BUILD_ROOT%{_bindir}/git-lfs
68 cp -p man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
72 rm -rf $RPM_BUILD_ROOT
75 %defattr(644,root,root,755)
76 %doc LICENSE.md README.md ROADMAP.md CHANGELOG.md
77 %attr(755,root,root) %{_bindir}/git-lfs
78 %{?with_doc:%{_mandir}/man1/*.1*}