git-lfs/rpm/SPECS/git-lfs.spec

64 lines
1.8 KiB
RPMSpec
Raw Normal View History

2015-09-10 15:46:33 +00:00
Name: git-lfs
2015-09-30 18:36:25 +00:00
Version: 1.0.0
Release: 1%{?dist}
Summary: Git extension for versioning large files
Group: Applications/Archiving
License: MIT
URL: https://git-lfs.github.com/
Source0: https://github.com/github/git-lfs/archive/%{version}/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: golang, tar, which, bison, rubygem-ronn, git
BuildRequires: perl-Digest-SHA
%define debug_package %{nil}
#I think this is because go links with --build-id=none for linux
%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.
%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}
%build
2015-07-24 02:57:39 +00:00
%if %{_arch} == i386
GOARCH=386 GOPATH=`pwd` ./script/bootstrap
%else
GOARCH=amd64 GOPATH=`pwd` ./script/bootstrap
%endif
2015-05-29 21:19:07 +00:00
GOPATH=`pwd` ./script/man
%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
GOPATH=`pwd` ./script/test
GOPATH=`pwd` ./script/integration
2015-05-29 23:49:56 +00:00
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
2015-08-16 18:02:35 +00:00
%doc LICENSE.md README.md
/usr/bin/git-lfs
/usr/share/man/man1/*.1.gz
%changelog
* Sun Aug 2 2015 Andrew Neff <andyneff@users.noreply.github.com> - 0.5.4-1
- Added tests back in
* Sat Jul 18 2015 Andrew Neff <andyneff@users.noreply.github.com> - 0.5.2-1
- Changed Source0 filename
* Mon May 18 2015 Andrew Neff <andyneff@users.noreply.github.com> - 0.5.1-1
- Initial Spec