diff --git a/README.md b/README.md index 54b0312..85a9c77 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # git-lfs +Git extension for versioning large files. + diff --git a/git-lfs.spec b/git-lfs.spec new file mode 100644 index 0000000..4720f8e --- /dev/null +++ b/git-lfs.spec @@ -0,0 +1,51 @@ +Name: git-lfs +Version: 3.1.4 +Release: 1mamba +Summary: Git extension for versioning large files +Group: Development/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://git-lfs.github.com/ +Source: https://github.com/git-lfs/git-lfs.git/v%{version}/git-lfs-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRequires: go +BuildRequires: ruby-ronn-ng + +%description +Git extension for versioning large files. + +%debug_package + +%prep +%setup -q + +%build +export GOFLAGS="-buildmode=pie -trimpath -mod=vendor -modcacherw -ldflags=-linkmode=external" +go generate ./commands +go build . +make man + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +install -D -m755 git-lfs %{buildroot}%{_bindir}/git-lfs +install -D -m644 -t %{buildroot}%{_mandir}/man1 man/*.1 +install -D -m644 -t %{buildroot}%{_mandir}/man5 man/*.5 + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/git-lfs +%{_mandir}/man1/git-lfs*.1* +%{_mandir}/man5/git-lfs-config.5* +%doc LICENSE.md + +%changelog +* Sat Apr 23 2022 Silvan Calarco 3.1.4-1mamba +- package created using the webbuild interface