File git-lfs.spec of Package git-lfs

# spec file for package git-lfs
# Copyright (c) 2020 SUSE LLC
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           git-lfs
Version:        2.10.0
Release:        0
Summary:        Git extension for versioning large files
License:        MIT
Group:          Development/Tools/Version Control
Source0:        %{name}-v%{version}.tar.gz
Source1:        README.packaging
Patch0:         Makefile_path.patch
%if 0%{?suse_version} >= 1550 || (0%{?suse_version} >= 1500 && 0%{?is_opensuse})
BuildRequires:  %{rubygem ronn}
BuildRequires:  curl
BuildRequires:  fdupes
BuildRequires:  git >= 1.8.2
BuildRequires:  go1.14
BuildRequires:  golang-packaging
BuildRequires:  which
Requires:       git >= 1.8.2
Requires(post): git >= 1.8.2
Requires(preun): git >= 1.8.2

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.

%autosetup -p1

%if 0%{?suse_version} >= 1550 || (0%{?suse_version} >= 1500 && 0%{?is_opensuse})
%make_build man


%fdupes -s %{buildroot}


git lfs install --system

git lfs uninstall

export GIT_LFS_TEST_DIR=$(mktemp -d)
# test/git-lfs-server-api/main.go does not compile because
# cannot be found in vendor, for some reason. It's not needed for installs, so
# skip it.


rm -rf ${GIT_LFS_TEST_DIR}

%files -f file.lst

openSUSE Build Service is sponsored by