|
|
cfc5088 |
%bcond_without check
|
|
|
cfc5088 |
|
|
|
cfc5088 |
# https://github.com/git-lfs/git-lfs
|
|
|
cfc5088 |
%global goipath github.com/git-lfs/git-lfs
|
|
|
f705285 |
Version: 2.13.3
|
|
|
6612d3e |
|
|
|
6612d3e |
%gometa
|
|
|
31425e0 |
|
|
|
cfc5088 |
%global common_description %{expand:
|
|
|
cfc5088 |
Git extension for versioning large files.}
|
|
|
cfc5088 |
|
|
|
cfc5088 |
%global golicenses LICENSE.md
|
|
|
cfc5088 |
%global godocs docs CHANGELOG.md CODE-OF-CONDUCT.md\\\
|
|
|
cfc5088 |
CONTRIBUTING.md README.md
|
|
|
cfc5088 |
|
|
|
31425e0 |
Name: git-lfs
|
|
|
f705285 |
Release: 1%{?dist}
|
|
|
31425e0 |
Summary: Git extension for versioning large files
|
|
|
31425e0 |
|
|
|
31425e0 |
License: MIT
|
|
|
31425e0 |
URL: https://git-lfs.github.io/
|
|
|
abe1a4f |
Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-v%{version}.tar.gz
|
|
|
6588063 |
Source1: README.Fedora
|
|
|
6612d3e |
|
|
|
2582c6e |
BuildRequires: golang(github.com/dpotapov/go-spnego)
|
|
|
3bef4de |
BuildRequires: golang(github.com/git-lfs/gitobj/v2) >= 2
|
|
|
3bef4de |
BuildRequires: golang(github.com/git-lfs/gitobj/v2/errors) >= 2
|
|
|
452c2a3 |
BuildRequires: golang(github.com/git-lfs/go-netrc/netrc) >= 0-0.1.20180827gite0e9ca4
|
|
|
a7b729a |
BuildRequires: golang(github.com/git-lfs/go-ntlm/ntlm)
|
|
|
735691f |
BuildRequires: golang(github.com/git-lfs/wildmatch) >= 1.0.4
|
|
|
1d521ec |
BuildRequires: golang(github.com/mattn/go-isatty) >= 0.0.4
|
|
|
31425e0 |
BuildRequires: golang(github.com/olekukonko/ts)
|
|
|
452c2a3 |
BuildRequires: golang(github.com/pkg/errors)
|
|
|
31425e0 |
BuildRequires: golang(github.com/rubyist/tracerx)
|
|
|
1d521ec |
BuildRequires: golang(github.com/spf13/cobra) >= 0.0.3
|
|
|
be8ae68 |
BuildRequires: golang(github.com/ssgelm/cookiejarparser) >= 1.0.1
|
|
|
735691f |
BuildRequires: golang(golang.org/x/net/http2)
|
|
|
1d521ec |
BuildRequires: golang(golang.org/x/sync/semaphore)
|
|
|
cfc5088 |
|
|
|
cfc5088 |
# Generate man pages
|
|
|
31425e0 |
BuildRequires: /usr/bin/ronn
|
|
|
cfc5088 |
|
|
|
cfc5088 |
%if %{with check}
|
|
|
cfc5088 |
# Tests
|
|
|
34b30b4 |
BuildRequires: golang(github.com/stretchr/testify/assert) >= 1.5.1
|
|
|
34b30b4 |
BuildRequires: golang(github.com/stretchr/testify/require) >= 1.5.1
|
|
|
6612d3e |
BuildRequires: golang(github.com/xeipuuv/gojsonschema)
|
|
|
4b82caf |
BuildRequires: perl-Digest-SHA
|
|
|
452c2a3 |
BuildRequires: perl-Test-Harness
|
|
|
414546a |
# Tests require full git suite, but not generally needed.
|
|
|
6612d3e |
BuildRequires: git >= 1.8.5
|
|
|
cfc5088 |
%endif
|
|
|
31425e0 |
|
|
|
6612d3e |
Requires: git-core >= 1.8.5
|
|
|
31425e0 |
|
|
|
31425e0 |
%description
|
|
|
31425e0 |
Git Large File Storage (LFS) replaces large files such as audio samples,
|
|
|
31425e0 |
videos, datasets, and graphics with text pointers inside Git, while
|
|
|
31425e0 |
storing the file contents on a remote server.
|
|
|
31425e0 |
|
|
|
31425e0 |
|
|
|
cfc5088 |
%gopkg
|
|
|
31425e0 |
|
|
|
31425e0 |
|
|
|
31425e0 |
%prep
|
|
|
cfc5088 |
%goprep
|
|
|
6588063 |
cp -p %SOURCE1 .
|
|
|
31425e0 |
|
|
|
4b5133c |
# Modify Makefile so that it expects binaries where we build them.
|
|
|
cfc5088 |
sed -i -e 's!\.\./bin/!/%{gobuilddir}/bin/!g' t/Makefile
|
|
|
4b5133c |
|
|
|
31425e0 |
|
|
|
31425e0 |
%build
|
|
|
1df9caa |
# Build manpages first (some embedding in the executable is done.)
|
|
|
1df9caa |
pushd docs
|
|
|
a7f8b3a |
ronn --roff man/*.ronn
|
|
|
cfc5088 |
%gobuild -o %{gobuilddir}/bin/mangen man/mangen.go
|
|
|
cfc5088 |
%{gobuilddir}/bin/mangen
|
|
|
1df9caa |
popd
|
|
|
31425e0 |
|
|
|
ff1a7b1 |
LDFLAGS="-X 'github.com/git-lfs/git-lfs/config.Vendor=Fedora %{fedora}' " \
|
|
|
cfc5088 |
%gobuild -o %{gobuilddir}/bin/git-lfs %{goipath}
|
|
|
31425e0 |
|
|
|
4b82caf |
# Build test executables
|
|
|
cfc5088 |
for cmd in t/cmd/*.go; do
|
|
|
cfc5088 |
%gobuild -o "%{gobuilddir}/bin/$(basename $cmd .go)" "$cmd"
|
|
|
4b82caf |
done
|
|
|
cfc5088 |
%gobuild -o "%{gobuilddir}/bin/git-lfs-test-server-api" t/git-lfs-test-server-api/*.go
|
|
|
4b82caf |
|
|
|
65a97aa |
# Move man pages out of docs so they don't get installed twice.
|
|
|
65a97aa |
mv docs/man .
|
|
|
65a97aa |
|
|
|
31425e0 |
|
|
|
31425e0 |
%install
|
|
|
cfc5088 |
%gopkginstall
|
|
|
cfc5088 |
install -Dpm0755 %{gobuilddir}/bin/git-lfs %{buildroot}%{_bindir}/%{name}
|
|
|
31425e0 |
install -d -p %{buildroot}%{_mandir}/man1/
|
|
|
65a97aa |
install -Dpm0644 man/*.1 %{buildroot}%{_mandir}/man1/
|
|
|
31425e0 |
install -d -p %{buildroot}%{_mandir}/man5/
|
|
|
65a97aa |
install -Dpm0644 man/*.5 %{buildroot}%{_mandir}/man5/
|
|
|
31425e0 |
|
|
|
31425e0 |
|
|
|
31425e0 |
%post
|
|
|
6588063 |
if [ "x$(git config --type=bool --get 'fedora.git-lfs.no-modify-config')" != "xtrue" ]; then
|
|
|
b212096 |
%{_bindir}/%{name} install --system --skip-repo
|
|
|
6588063 |
fi
|
|
|
31425e0 |
|
|
|
31425e0 |
%preun
|
|
|
6588063 |
if [ $1 -eq 0 ] && \
|
|
|
6588063 |
[ "x$(git config --type=bool --get 'fedora.git-lfs.no-modify-config')" != "xtrue" ]; then
|
|
|
b212096 |
%{_bindir}/%{name} uninstall --system --skip-repo
|
|
|
31425e0 |
fi
|
|
|
31425e0 |
exit 0
|
|
|
31425e0 |
|
|
|
31425e0 |
|
|
|
cfc5088 |
%if %{with check}
|
|
|
31425e0 |
%check
|
|
|
cfc5088 |
%gocheck
|
|
|
cfc5088 |
PATH=%{buildroot}%{_bindir}:%{gobuilddir}/bin:$PATH \
|
|
|
4b5133c |
make -C t PROVE_EXTRA_ARGS="-j$(getconf _NPROCESSORS_ONLN)"
|
|
|
cfc5088 |
%endif
|
|
|
31425e0 |
|
|
|
31425e0 |
|
|
|
31425e0 |
%files
|
|
|
6588063 |
%doc README.md README.Fedora CHANGELOG.md docs
|
|
|
31425e0 |
%license LICENSE.md
|
|
|
31425e0 |
%{_bindir}/%{name}
|
|
|
31425e0 |
%{_mandir}/man1/%{name}*.1*
|
|
|
31425e0 |
%{_mandir}/man5/%{name}*.5*
|
|
|
31425e0 |
|
|
|
cfc5088 |
%gopkgfiles
|
|
|
31425e0 |
|
|
|
31425e0 |
|
|
|
31425e0 |
%changelog
|
|
|
f705285 |
* Fri Apr 02 2021 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.13.3-1
|
|
|
f705285 |
- Update to latest version (#1943775)
|
|
|
f705285 |
|
|
|
6a1acb4 |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.13.2-2
|
|
|
6a1acb4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
6a1acb4 |
|
|
|
6bee10a |
* Sat Jan 16 2021 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.13.2-1
|
|
|
6bee10a |
- Update to latest version (#1915996)
|
|
|
6bee10a |
|
|
|
f9b2ccc |
* Mon Nov 09 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.12.1-1
|
|
|
f9b2ccc |
- Update to latest version (#1894780)
|
|
|
f9b2ccc |
|
|
|
3bef4de |
* Thu Sep 03 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.12.0-1
|
|
|
3bef4de |
- Update to latest version (#1874604)
|
|
|
65a97aa |
- Remove duplicate docs/man directory (#1852765)
|
|
|
6588063 |
- Add an option to disable modifying the git filter config (#1768060)
|
|
|
3bef4de |
|
|
|
b372474 |
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.0-3
|
|
|
b372474 |
- Second attempt - Rebuilt for
|
|
|
b372474 |
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
b372474 |
|
|
|
8033f83 |
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.0-2
|
|
|
8033f83 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
8033f83 |
|
|
|
34b30b4 |
* Sun May 10 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.11.0-1
|
|
|
34b30b4 |
- Update to latest version
|
|
|
34b30b4 |
|
|
|
2582c6e |
* Thu Feb 20 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.10.0-1
|
|
|
2582c6e |
- Update to latest version
|
|
|
2582c6e |
|
|
|
7b17dba |
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.2-2
|
|
|
7b17dba |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
7b17dba |
|
|
|
be8ae68 |
* Tue Jan 07 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.9.2-1
|
|
|
be8ae68 |
- Update to latest version
|
|
|
be8ae68 |
|
|
|
5a6bf00 |
* Wed Jan 01 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.9.0-1
|
|
|
5a6bf00 |
- Update to latest version
|
|
|
5a6bf00 |
|
|
|
9deed68 |
* Fri Aug 30 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.8.0-4
|
|
|
ff1a7b1 |
- Customize vendor information in version
|
|
|
ff1a7b1 |
|
|
|
9deed68 |
* Fri Aug 30 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.8.0-3
|
|
|
a7b729a |
- Update to latest version
|
|
|
a7b729a |
|
|
|
ff6ae77 |
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.2-3
|
|
|
ff6ae77 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
ff6ae77 |
|
|
|
cfc5088 |
* Wed Jul 10 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.7.2-2
|
|
|
cfc5088 |
- Update to latest Go macros
|
|
|
cfc5088 |
|
|
|
18fc9f2 |
* Wed Apr 24 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.7.2-1
|
|
|
18fc9f2 |
- Update to latest version
|
|
|
18fc9f2 |
|
|
|
ee5f082 |
* Wed Feb 27 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.7.1-1
|
|
|
ee5f082 |
- Update to latest version
|
|
|
ee5f082 |
|
|
|
f5888c1 |
* Thu Feb 21 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.7.0-1
|
|
|
f5888c1 |
- Update to latest version
|
|
|
f5888c1 |
|
|
|
2cf0081 |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-2
|
|
|
2cf0081 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
2cf0081 |
|
|
|
b212096 |
* Tue Jan 15 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.6.1-1
|
|
|
b212096 |
- Update to latest version
|
|
|
b212096 |
|
|
|
a84dde2 |
* Mon Jan 14 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.2-4
|
|
|
a84dde2 |
- Rebuilt for dependencies
|
|
|
a84dde2 |
|
|
|
de43ce9 |
* Tue Oct 23 2018 Nicolas Mailhot <nim@fedoraproject.org>
|
|
|
de43ce9 |
- 2.5.2-3
|
|
|
de43ce9 |
- redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as it’s just an alias
|
|
|
de43ce9 |
- https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/RWD5YATAYAFWKIDZBB7EB6N5DAO4ZKFM/
|
|
|
de43ce9 |
|
|
|
d23bd52 |
* Fri Oct 12 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.2-2
|
|
|
d23bd52 |
- rebuilt
|
|
|
d23bd52 |
|
|
|
b3fab73 |
* Wed Oct 10 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.2-1
|
|
|
b3fab73 |
- Update to latest version
|
|
|
b3fab73 |
|
|
|
5ac88e6 |
* Tue Sep 04 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.1-1
|
|
|
5ac88e6 |
- Update to latest version
|
|
|
5ac88e6 |
|
|
|
452c2a3 |
* Mon Sep 03 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.0-1
|
|
|
452c2a3 |
- Update to 2.5.0
|
|
|
452c2a3 |
|
|
|
4ba7ead |
* Wed Aug 29 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.4.2-1
|
|
|
4ba7ead |
- Update to 2.4.2
|
|
|
4ba7ead |
|
|
|
1a14bfd |
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 2.4.1-3
|
|
|
1a14bfd |
- Rebuild with fixed binutils
|
|
|
1a14bfd |
|
|
|
c7a777b |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-2
|
|
|
c7a777b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
c7a777b |
|
|
|
27f1665 |
* Wed May 23 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.4.1-1
|
|
|
27f1665 |
- Update to latest release
|
|
|
27f1665 |
|
|
|
7c8166e |
* Mon May 21 2018 Carl George <carl@george.computer> - 2.4.0-3
|
|
|
7c8166e |
- Fix %%preun to correctly remove the lfs filter on uninstall (rhbz#1580357)
|
|
|
7c8166e |
|
|
|
716ff62 |
* Mon Mar 12 2018 Carl George <carl@george.computer> - 2.4.0-2
|
|
|
716ff62 |
- Add %%go_arches fallback to work around Koji issues
|
|
|
716ff62 |
|
|
|
2a8dd46 |
* Sun Mar 04 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.4.0-1
|
|
|
2a8dd46 |
- Update to latest release.
|
|
|
2a8dd46 |
|
|
|
a847aa0 |
* Thu Feb 08 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.3.4-6
|
|
|
a847aa0 |
- Add patches to build with Go 1.10.
|
|
|
a847aa0 |
|
|
|
06f1a7b |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.4-5
|
|
|
06f1a7b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
06f1a7b |
|
|
|
a82c764 |
* Mon Dec 04 2017 Carl George <carl@george.computer> - 2.3.4-4
|
|
|
a82c764 |
- Use vendored libraries on RHEL
|
|
|
a82c764 |
- Skip test on RHEL
|
|
|
a82c764 |
- Don't build man pages on RHEL due to missing ronn
|
|
|
a7f8b3a |
- Don't build html versions of man pages
|
|
|
a82c764 |
|
|
|
a847aa0 |
* Fri Dec 01 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.3.4-3
|
|
|
414546a |
- Require git-core instead of git.
|
|
|
414546a |
|
|
|
a847aa0 |
* Fri Nov 03 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.3.4-2
|
|
|
ed55ea9 |
- Patch tests to work on slow systems like arm and aarch builders.
|
|
|
1df9caa |
- Fix "git lfs help" command.
|
|
|
ed55ea9 |
|
|
|
a847aa0 |
* Fri Nov 03 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.3.4-1
|
|
|
dddb060 |
- Update to latest release.
|
|
|
4b82caf |
- Run all tests during build.
|
|
|
dddb060 |
|
|
|
a847aa0 |
* Fri Sep 01 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.2.1-3
|
|
|
31425e0 |
- Remove redundant doc tag on manpages.
|
|
|
31425e0 |
- Use path macros in %%post/%%postun.
|
|
|
31425e0 |
|
|
|
a847aa0 |
* Thu Aug 31 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.2.1-2
|
|
|
31425e0 |
- Disable unnecessary subpackages.
|
|
|
31425e0 |
|
|
|
a847aa0 |
* Sun Jul 30 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.2.1-1
|
|
|
31425e0 |
- Update to latest version.
|
|
|
31425e0 |
|
|
|
31425e0 |
* Wed Apr 19 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.2-2
|
|
|
31425e0 |
- Patch up to build with Go 1.7
|
|
|
31425e0 |
|
|
|
31425e0 |
* Wed Apr 19 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.2-1
|
|
|
31425e0 |
- Update to latest release
|
|
|
31425e0 |
- Add some requested macros
|
|
|
31425e0 |
|
|
|
31425e0 |
* Tue Mar 14 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.1-1
|
|
|
31425e0 |
- Update to latest release
|
|
|
31425e0 |
- Don't disable git-lfs globally during upgrade
|
|
|
31425e0 |
|
|
|
31425e0 |
* Mon Mar 06 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.0-1
|
|
|
31425e0 |
- Update to latest release
|
|
|
31425e0 |
|
|
|
31425e0 |
* Sun Feb 12 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.5.5-1
|
|
|
31425e0 |
- Update to latest release
|
|
|
31425e0 |
- Add -devel and -unit-test-devel subpackages
|
|
|
31425e0 |
- Add post/preun scriptlets for global enablement
|
|
|
31425e0 |
|
|
|
31425e0 |
* Sun May 15 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.2.0-1
|
|
|
31425e0 |
- Initial package
|