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: 5cd8eab8f4b4bcd58cbe1619cdd5cdd2
14 URL: https://git-lfs.github.com/
15 BuildRequires: git-core
18 %{?with_doc:BuildRequires: ronn}
19 ExclusiveArch: %{ix86} %{x8664} %{arm}
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _enable_debug_packages 0
25 Git Large File Storage (LFS) replaces large files such as audio
26 samples, videos, datasets, and graphics with text pointers inside Git,
27 while storing the file contents on a remote server like GitHub.com or
32 mkdir -p src/github.com/github
33 ln -s $(pwd) src/github.com/github/%{name}
39 GOARCH=386 ./script/bootstrap
42 GOARCH=amd64 ./script/bootstrap
50 # ensure there are no GIT env vars for testing
51 #unset GIT_DIR GIT_WORK_TREE
52 env | grep GIT_ && exit 3
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
62 install -p bin/git-lfs $RPM_BUILD_ROOT%{_bindir}/git-lfs
64 cp -p man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
68 rm -rf $RPM_BUILD_ROOT
71 %defattr(644,root,root,755)
72 %doc LICENSE.md README.md
73 %attr(755,root,root) %{_bindir}/git-lfs
74 %{?with_doc:%{_mandir}/man1/*.1*}