11%global debug_package %{nil }
22Summary: Git extension for versioning large files
33Name: git-lfs
4- Version: 3.1.4
5- Release: 17 %{?dist }
4+ Version: 3.4.1
5+ Release: 1 %{?dist }
66Group: System Environment/Programming
77Vendor: Microsoft Corporation
88Distribution: Mariner
@@ -28,41 +28,37 @@ Source0: https://github.com/git-lfs/git-lfs/archive/v%{version}.tar.gz#/%{
2828# See: https://reproducible-builds.org/docs/archives/
2929# - For the value of "--mtime" use the date "2021-04-26 00:00Z" to simplify future updates.
3030Source1: %{name }-%{version }-vendor.tar.gz
31- Patch0: CVE-2023-44487.patch
32- Patch1: CVE-2021-44716.patch
3331
3432BuildRequires: golang
3533BuildRequires: which
36- BuildRequires: rubygem-ronn
3734BuildRequires: tar
3835BuildRequires: git
36+ BuildRequires: rubygem-asciidoctor
3937Requires: git
4038%define our_gopath %{_topdir }/.gopath
4139
4240%description
4341Git LFS is a command line extension and specification for managing large files with Git
4442
4543%prep
46- %autosetup -N
47- # Apply vendor before patching
48- tar --no-same-owner -xf %{SOURCE1 }
49- %autopatch -p1
44+ %autosetup
5045
5146%build
47+ tar --no-same-owner -xf %{SOURCE1 }
5248export GOPATH=%{our_gopath }
5349export GOFLAGS=" -buildmode=pie -trimpath -mod=vendor -modcacherw -ldflags=-linkmode=external"
5450go generate ./commands
5551go build .
5652export PATH=$PATH :%{gem_dir }/bin
57- make man %{? _smp_mflags }
53+ make man GIT_LFS_SHA=unused VERSION=unused PREFIX=unused
5854
5955%install
6056rm -rf %{buildroot }
6157install -D git-lfs %{buildroot }%{_bindir }/git-lfs
6258mkdir -p %{buildroot }%{_mandir }/man1
6359mkdir -p %{buildroot }%{_mandir }/man5
64- install -D man/* .1 %{buildroot }%{_mandir }/man1
65- install -D man/* .5 %{buildroot }%{_mandir }/man5
60+ install -D man/man1/ * .1 %{buildroot }%{_mandir }/man1
61+ install -D man/man5/ * .5 %{buildroot }%{_mandir }/man5
6662
6763%check
6864go test -mod=vendor ./...
@@ -81,6 +77,10 @@ git lfs uninstall
8177%{_mandir }/man5/*
8278
8379%changelog
80+ * Thu Apr 18 2024 Andrew Phelps <anphel@microsoft.com> - 3.4.1-1
81+ - Bump version to 3.4.1 based on AZL3 spec
82+ - Add BR on asciidoctor & drop un-needed BR
83+
8484* Mon Feb 05 2024 Nicolas Guibourge <nicolasg@microsoft.com> - 3.1.4-17
8585- Patch CVE-2021-44716
8686
0 commit comments