2015-05-19 03:29:07 +00:00
|
|
|
Name: git-lfs
|
2015-07-09 17:22:48 +00:00
|
|
|
Version: 0.5.2
|
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/
|
|
|
|
Source0: https://github.com/github/git-lfs/archive/v%{version}.tar.gz
|
2015-05-19 03:29:07 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2015-06-19 22:11:42 +00:00
|
|
|
BuildRequires: golang, tar, which, bison, rubygem-ronn, git
|
2015-07-13 04:37:58 +00:00
|
|
|
BuildRequires: perl-Digest-SHA
|
2015-06-19 22:11:42 +00:00
|
|
|
Requires: git
|
2015-05-19 03:29:07 +00:00
|
|
|
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
#Umm... excuse me what?
|
|
|
|
%define debug_package %{nil}
|
|
|
|
#I think this is because go links with --build-id=none for linux
|
2015-05-29 21:19:07 +00:00
|
|
|
#Uhhh... HOW DO I FIX THAT? The answer is: go -ldflags '-linkmode=external'
|
2015-05-19 03:29:07 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
2015-05-29 21:19:07 +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
|
|
|
|
Enterprise.
|
2015-05-19 03:29:07 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
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
|
2015-05-29 21:19:07 +00:00
|
|
|
GOPATH=`pwd` ./script/bootstrap
|
|
|
|
GOPATH=`pwd` ./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
|
|
|
|
install -D man/*.1 ${RPM_BUILD_ROOT}/usr/share/man/man1
|
|
|
|
|
2015-05-29 23:49:56 +00:00
|
|
|
%check
|
2015-06-18 04:19:04 +00:00
|
|
|
if ! git config --global user.name; then
|
|
|
|
RPM_GIT_USER_NAME=1
|
|
|
|
git config --global user.name "User Name"
|
|
|
|
fi
|
|
|
|
if ! git config --global user.email; then
|
|
|
|
RPM_GIT_USER_EMAIL=1
|
|
|
|
git config --global user.email "user@email.com"
|
|
|
|
fi
|
2015-06-19 07:22:10 +00:00
|
|
|
#GOPATH=`pwd` ./script/test
|
|
|
|
#GOPATH=`pwd` ./script/integration
|
2015-06-18 04:19:04 +00:00
|
|
|
if [ "${RPM_GIT_USER_NAME}" == "1" ]; then
|
|
|
|
git config --global --unset user.name
|
|
|
|
fi
|
|
|
|
if [ "${RPM_GIT_USER_EMAIL}" == "1" ]; then
|
|
|
|
git config --global --unset user.email
|
|
|
|
fi
|
2015-05-29 23:49:56 +00:00
|
|
|
|
2015-05-19 03:29:07 +00:00
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE README.md
|
|
|
|
/usr/bin/git-lfs
|
|
|
|
/usr/share/man/man1/*.1.gz
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Mon May 18 2015 Andrew Neff <andyneff@users.noreply.github.com> - 0.5.1-1
|
|
|
|
- Initial Spec
|