2015-09-10 15:46:33 +00:00
|
|
|
Name: git-lfs
|
2016-11-17 22:11:14 +00:00
|
|
|
Version: 1.5.0
|
2015-06-19 22:11:42 +00:00
|
|
|
Release: 1%{?dist}
|
2015-05-19 03:29:07 +00:00
|
|
|
Summary: Git extension for versioning large files
|
|
|
|
|
|
|
|
Group: Applications/Archiving
|
|
|
|
License: MIT
|
2015-06-19 22:11:42 +00:00
|
|
|
URL: https://git-lfs.github.com/
|
2016-11-15 17:07:11 +00:00
|
|
|
Source0: https://github.com/git-lfs/git-lfs/archive/v%{version}/%{name}-%{version}.tar.gz
|
2015-05-19 03:29:07 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2015-07-13 04:37:58 +00:00
|
|
|
BuildRequires: perl-Digest-SHA
|
2015-12-06 17:35:30 +00:00
|
|
|
BuildRequires: golang, tar, rubygem-ronn, which, git >= 1.8.2
|
|
|
|
|
|
|
|
Requires: git >= 1.8.2
|
2015-05-19 03:29:07 +00:00
|
|
|
|
2015-08-22 20:12:01 +00:00
|
|
|
%define debug_package %{nil}
|
|
|
|
#I think this is because go links with --build-id=none for linux
|
2015-05-19 03:29:07 +00:00
|
|
|
|
|
|
|
%description
|
2015-09-10 15:46:33 +00:00
|
|
|
Git Large File Storage (LFS) replaces large files such as audio samples,
|
|
|
|
videos, datasets, and graphics with text pointers inside Git, while
|
|
|
|
storing the file contents on a remote server like GitHub.com or GitHub
|
2015-05-29 21:19:07 +00:00
|
|
|
Enterprise.
|
2015-05-19 03:29:07 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
2016-07-27 13:45:15 +00:00
|
|
|
export GOPATH=`pwd`
|
2015-05-29 21:19:07 +00:00
|
|
|
mkdir -p src/github.com/github
|
|
|
|
ln -s $(pwd) src/github.com/github/%{name}
|
2015-05-19 03:29:07 +00:00
|
|
|
|
|
|
|
%build
|
2016-02-04 03:52:22 +00:00
|
|
|
%if 0%{?rhel} == 5
|
|
|
|
export CGO_ENABLED=0
|
|
|
|
%endif
|
2016-07-27 13:45:15 +00:00
|
|
|
|
|
|
|
pushd src/github.com/github/%{name}
|
|
|
|
%if %{_arch} == i386
|
|
|
|
GOARCH=386 ./script/bootstrap
|
|
|
|
%else
|
|
|
|
GOARCH=amd64 ./script/bootstrap
|
|
|
|
%endif
|
|
|
|
popd
|
|
|
|
./script/man
|
2015-05-19 03:29:07 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
install -D bin/git-lfs ${RPM_BUILD_ROOT}/usr/bin/git-lfs
|
|
|
|
mkdir -p -m 755 ${RPM_BUILD_ROOT}/usr/share/man/man1
|
2016-04-15 05:59:28 +00:00
|
|
|
mkdir -p -m 755 ${RPM_BUILD_ROOT}/usr/share/man/man5
|
2015-05-19 03:29:07 +00:00
|
|
|
install -D man/*.1 ${RPM_BUILD_ROOT}/usr/share/man/man1
|
2016-04-15 05:59:28 +00:00
|
|
|
install -D man/*.5 ${RPM_BUILD_ROOT}/usr/share/man/man5
|
2015-05-19 03:29:07 +00:00
|
|
|
|
2016-04-25 10:10:53 +00:00
|
|
|
%post
|
2016-04-26 06:26:02 +00:00
|
|
|
git lfs install --system
|
2016-04-25 10:10:53 +00:00
|
|
|
|
|
|
|
%preun
|
|
|
|
git lfs uninstall
|
|
|
|
|
2015-05-29 23:49:56 +00:00
|
|
|
%check
|
2015-10-27 01:06:35 +00:00
|
|
|
export GOPATH=`pwd`
|
2015-10-31 06:48:25 +00:00
|
|
|
export GIT_LFS_TEST_DIR=$(mktemp -d)
|
2015-10-27 01:06:35 +00:00
|
|
|
|
2016-07-27 13:48:23 +00:00
|
|
|
# test/git-lfs-server-api/main.go does not compile because github.com/spf13/cobra
|
|
|
|
# cannot be found in vendor, for some reason. It's not needed for installs, so
|
|
|
|
# skip it.
|
|
|
|
export SKIPAPITESTCOMPILE=1
|
|
|
|
|
2016-07-27 13:45:15 +00:00
|
|
|
pushd src/github.com/github/%{name}
|
|
|
|
./script/test
|
|
|
|
./script/integration
|
|
|
|
popd
|
2015-05-29 23:49:56 +00:00
|
|
|
|
2015-10-31 06:48:25 +00:00
|
|
|
rmdir ${GIT_LFS_TEST_DIR}
|
|
|
|
|
2015-05-19 03:29:07 +00:00
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2015-08-16 18:02:35 +00:00
|
|
|
%doc LICENSE.md README.md
|
2015-05-19 03:29:07 +00:00
|
|
|
/usr/bin/git-lfs
|
|
|
|
/usr/share/man/man1/*.1.gz
|
2016-04-15 05:59:28 +00:00
|
|
|
/usr/share/man/man5/*.5.gz
|
2015-05-19 03:29:07 +00:00
|
|
|
|
|
|
|
%changelog
|
2015-12-06 17:35:30 +00:00
|
|
|
* Sun Dec 6 2015 Andrew Neff <andyneff@users.noreply.github.com> - 1.1.0-1
|
|
|
|
- Added Requires and version for git back in
|
|
|
|
|
2015-10-31 06:48:25 +00:00
|
|
|
* Sat Oct 31 2015 Andrew Neff <andyneff@users.noreply.github.com> - 1.0.3-1
|
|
|
|
- Added GIT_LFS_TEST_DIR to prevent future test race condition
|
|
|
|
|
2015-07-31 05:47:47 +00:00
|
|
|
* Sun Aug 2 2015 Andrew Neff <andyneff@users.noreply.github.com> - 0.5.4-1
|
|
|
|
- Added tests back in
|
|
|
|
|
2015-07-19 07:35:13 +00:00
|
|
|
* Sat Jul 18 2015 Andrew Neff <andyneff@users.noreply.github.com> - 0.5.2-1
|
|
|
|
- Changed Source0 filename
|
|
|
|
|
2015-05-19 03:29:07 +00:00
|
|
|
* Mon May 18 2015 Andrew Neff <andyneff@users.noreply.github.com> - 0.5.1-1
|
|
|
|
- Initial Spec
|