File git-lfs.spec of Package git-lfs
Name: git-lfs
Version: 2.4.2
Release: 10.1
Summary: Git extension for versioning large files
Group: Applications/Archiving
License: MIT
URL: https://git-lfs.github.com/
Source0: https://github.com/git-lfs/git-lfs/releases/download/v%{version}/%{name}-linux-amd64-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: git >= 1.8.2
Requires: git >= 1.8.2
%description
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.
%prep
%setup
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
install -D git-lfs ${RPM_BUILD_ROOT}/usr/bin/git-lfs
%post
git lfs install --system
%preun
git lfs uninstall
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README.md
/usr/bin/git-lfs