2018-09-03 22:09:13 +00:00
|
|
|
|
%global goipath github.com/git-lfs/git-lfs
|
2019-08-30 09:49:55 +00:00
|
|
|
|
Version: 2.8.0
|
2018-09-03 22:09:13 +00:00
|
|
|
|
|
|
|
|
|
%gometa
|
2017-09-02 18:54:44 +00:00
|
|
|
|
|
|
|
|
|
Name: git-lfs
|
2019-02-22 03:54:51 +00:00
|
|
|
|
Release: 1%{?dist}
|
2017-09-02 18:54:44 +00:00
|
|
|
|
Summary: Git extension for versioning large files
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://git-lfs.github.io/
|
2019-08-28 06:41:19 +00:00
|
|
|
|
Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-v%{version}.tar.gz
|
2019-08-30 09:49:55 +00:00
|
|
|
|
# https://github.com/git-lfs/git-lfs/issues/3798
|
|
|
|
|
Patch0001: https://github.com/git-lfs/git-lfs/pull/3800.patch
|
2018-09-03 22:09:13 +00:00
|
|
|
|
|
2019-08-30 09:49:55 +00:00
|
|
|
|
BuildRequires: golang(github.com/git-lfs/gitobj) >= 1.3.1
|
2018-09-03 09:03:36 +00:00
|
|
|
|
BuildRequires: golang(github.com/git-lfs/go-netrc/netrc) >= 0-0.1.20180827gite0e9ca4
|
2019-08-30 09:49:55 +00:00
|
|
|
|
BuildRequires: golang(github.com/git-lfs/go-ntlm/ntlm)
|
2019-02-22 03:54:51 +00:00
|
|
|
|
BuildRequires: golang(github.com/git-lfs/wildmatch) >= 1.0.2
|
2018-09-03 09:03:36 +00:00
|
|
|
|
BuildRequires: golang(github.com/kr/pty)
|
2019-02-22 03:54:51 +00:00
|
|
|
|
BuildRequires: golang(github.com/mattn/go-isatty) >= 0.0.4
|
2017-09-02 18:54:44 +00:00
|
|
|
|
BuildRequires: golang(github.com/olekukonko/ts)
|
2018-09-03 09:03:36 +00:00
|
|
|
|
BuildRequires: golang(github.com/pkg/errors)
|
2017-09-02 18:54:44 +00:00
|
|
|
|
BuildRequires: golang(github.com/rubyist/tracerx)
|
2019-02-22 03:54:51 +00:00
|
|
|
|
BuildRequires: golang(github.com/spf13/cobra) >= 0.0.3
|
|
|
|
|
BuildRequires: golang(golang.org/x/sync/semaphore)
|
2017-09-02 18:54:44 +00:00
|
|
|
|
# Generate mans
|
|
|
|
|
BuildRequires: /usr/bin/ronn
|
|
|
|
|
# For tests
|
2019-02-22 03:54:51 +00:00
|
|
|
|
BuildRequires: golang(github.com/stretchr/testify/assert) >= 1.2.2
|
|
|
|
|
BuildRequires: golang(github.com/stretchr/testify/require) >= 1.2.2
|
2018-09-03 22:09:13 +00:00
|
|
|
|
BuildRequires: golang(github.com/xeipuuv/gojsonschema)
|
2017-11-03 08:25:40 +00:00
|
|
|
|
BuildRequires: perl-Digest-SHA
|
2018-09-03 09:03:36 +00:00
|
|
|
|
BuildRequires: perl-Test-Harness
|
2017-12-01 06:40:06 +00:00
|
|
|
|
# Tests require full git suite, but not generally needed.
|
2018-09-03 22:09:13 +00:00
|
|
|
|
BuildRequires: git >= 1.8.5
|
2017-09-02 18:54:44 +00:00
|
|
|
|
|
2018-09-03 22:09:13 +00:00
|
|
|
|
Requires: git-core >= 1.8.5
|
2017-09-02 18:54:44 +00:00
|
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
|
2018-09-03 22:09:13 +00:00
|
|
|
|
%package -n %{goname}-devel
|
2017-09-02 18:54:44 +00:00
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
2018-09-03 22:09:13 +00:00
|
|
|
|
%description -n %{goname}-devel
|
2017-09-02 18:54:44 +00:00
|
|
|
|
%{summary}
|
|
|
|
|
|
2018-09-03 22:09:13 +00:00
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use import path with %{goipath} prefix.
|
2017-09-02 18:54:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2019-01-15 06:34:58 +00:00
|
|
|
|
%forgeautosetup -p1
|
2017-09-02 18:54:44 +00:00
|
|
|
|
|
|
|
|
|
rm -rf vendor
|
|
|
|
|
|
2018-09-04 06:09:13 +00:00
|
|
|
|
# Modify Makefile so that it expects binaries where we build them.
|
|
|
|
|
sed -i -e 's!/bin/!/_bin/!g' t/Makefile
|
|
|
|
|
|
2017-09-02 18:54:44 +00:00
|
|
|
|
|
|
|
|
|
%build
|
2018-09-03 22:09:13 +00:00
|
|
|
|
%gobuildroot
|
2017-09-02 18:54:44 +00:00
|
|
|
|
|
2017-11-04 04:26:57 +00:00
|
|
|
|
# Build manpages first (some embedding in the executable is done.)
|
|
|
|
|
pushd docs
|
2017-12-04 21:28:40 +00:00
|
|
|
|
ronn --roff man/*.ronn
|
2018-09-03 22:09:13 +00:00
|
|
|
|
%gobuild -o ../_bin/mangen man/mangen.go
|
|
|
|
|
../_bin/mangen
|
2017-11-04 04:26:57 +00:00
|
|
|
|
popd
|
2017-09-02 18:54:44 +00:00
|
|
|
|
|
2018-09-03 22:09:13 +00:00
|
|
|
|
%gobuild -o _bin/git-lfs %{goipath}
|
2017-09-02 18:54:44 +00:00
|
|
|
|
|
2017-11-03 08:25:40 +00:00
|
|
|
|
# Build test executables
|
2018-09-03 09:03:36 +00:00
|
|
|
|
for go in t/cmd/*.go; do
|
2018-09-03 22:09:13 +00:00
|
|
|
|
%gobuild -o "_bin/$(basename $go .go)" "$go"
|
2017-11-03 08:25:40 +00:00
|
|
|
|
done
|
2018-09-03 22:09:13 +00:00
|
|
|
|
%gobuild -o "_bin/git-lfs-test-server-api" t/git-lfs-test-server-api/*.go
|
2017-11-03 08:25:40 +00:00
|
|
|
|
|
2017-09-02 18:54:44 +00:00
|
|
|
|
|
|
|
|
|
%install
|
2018-09-03 22:09:13 +00:00
|
|
|
|
%goinstall
|
|
|
|
|
install -Dpm0755 _bin/git-lfs %{buildroot}%{_bindir}/%{name}
|
2017-09-02 18:54:44 +00:00
|
|
|
|
install -d -p %{buildroot}%{_mandir}/man1/
|
|
|
|
|
install -Dpm0644 docs/man/*.1 %{buildroot}%{_mandir}/man1/
|
|
|
|
|
install -d -p %{buildroot}%{_mandir}/man5/
|
|
|
|
|
install -Dpm0644 docs/man/*.5 %{buildroot}%{_mandir}/man5/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
2019-01-15 06:34:58 +00:00
|
|
|
|
%{_bindir}/%{name} install --system --skip-repo
|
2017-09-02 18:54:44 +00:00
|
|
|
|
|
|
|
|
|
%preun
|
2018-05-21 15:18:17 +00:00
|
|
|
|
if [ $1 -eq 0 ]; then
|
2019-01-15 06:34:58 +00:00
|
|
|
|
%{_bindir}/%{name} uninstall --system --skip-repo
|
2017-09-02 18:54:44 +00:00
|
|
|
|
fi
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
2018-09-03 22:09:13 +00:00
|
|
|
|
%gochecks
|
2018-09-04 06:09:13 +00:00
|
|
|
|
PATH=%{buildroot}%{_bindir}:$PWD/_bin:$PATH \
|
|
|
|
|
make -C t PROVE_EXTRA_ARGS="-j$(getconf _NPROCESSORS_ONLN)"
|
2017-09-02 18:54:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
2018-09-04 06:09:13 +00:00
|
|
|
|
%doc README.md CHANGELOG.md
|
2017-09-02 18:54:44 +00:00
|
|
|
|
%license LICENSE.md
|
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
%{_mandir}/man1/%{name}*.1*
|
|
|
|
|
%{_mandir}/man5/%{name}*.5*
|
|
|
|
|
|
2018-09-03 22:09:13 +00:00
|
|
|
|
%files -n %{goname}-devel -f devel.file-list
|
2017-09-02 18:54:44 +00:00
|
|
|
|
%license LICENSE.md
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2019-08-30 09:49:55 +00:00
|
|
|
|
* Fri Aug 30 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.8.0-1
|
|
|
|
|
- Update to latest version
|
|
|
|
|
|
2019-04-24 09:09:34 +00:00
|
|
|
|
* Wed Apr 24 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.7.2-1
|
|
|
|
|
- Update to latest version
|
|
|
|
|
|
2019-02-27 05:31:18 +00:00
|
|
|
|
* Wed Feb 27 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.7.1-1
|
|
|
|
|
- Update to latest version
|
|
|
|
|
|
2019-02-22 04:26:10 +00:00
|
|
|
|
* Thu Feb 21 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.7.0-1
|
|
|
|
|
- Update to latest version
|
|
|
|
|
|
2019-01-31 22:27:53 +00:00
|
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
2019-01-15 06:34:58 +00:00
|
|
|
|
* Tue Jan 15 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.6.1-1
|
|
|
|
|
- Update to latest version
|
|
|
|
|
|
2019-01-14 23:54:19 +00:00
|
|
|
|
* Mon Jan 14 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.2-4
|
|
|
|
|
- Rebuilt for dependencies
|
|
|
|
|
|
2018-10-23 20:34:32 +00:00
|
|
|
|
* Tue Oct 23 2018 Nicolas Mailhot <nim@fedoraproject.org>
|
|
|
|
|
- 2.5.2-3
|
|
|
|
|
- redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as it’s just an alias
|
|
|
|
|
- https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/RWD5YATAYAFWKIDZBB7EB6N5DAO4ZKFM/
|
|
|
|
|
|
2018-10-12 02:02:54 +00:00
|
|
|
|
* Fri Oct 12 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.2-2
|
|
|
|
|
- rebuilt
|
|
|
|
|
|
2018-10-11 00:00:27 +00:00
|
|
|
|
* Wed Oct 10 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.2-1
|
|
|
|
|
- Update to latest version
|
|
|
|
|
|
2018-09-04 06:52:19 +00:00
|
|
|
|
* Tue Sep 04 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.1-1
|
|
|
|
|
- Update to latest version
|
|
|
|
|
|
2018-09-03 09:03:36 +00:00
|
|
|
|
* Mon Sep 03 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.0-1
|
|
|
|
|
- Update to 2.5.0
|
|
|
|
|
|
2018-08-29 06:55:31 +00:00
|
|
|
|
* Wed Aug 29 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.4.2-1
|
|
|
|
|
- Update to 2.4.2
|
|
|
|
|
|
2018-07-31 12:40:23 +00:00
|
|
|
|
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 2.4.1-3
|
|
|
|
|
- Rebuild with fixed binutils
|
|
|
|
|
|
2018-07-13 02:25:35 +00:00
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
2018-05-23 05:34:04 +00:00
|
|
|
|
* Wed May 23 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.4.1-1
|
|
|
|
|
- Update to latest release
|
|
|
|
|
|
2018-05-21 15:18:17 +00:00
|
|
|
|
* Mon May 21 2018 Carl George <carl@george.computer> - 2.4.0-3
|
|
|
|
|
- Fix %%preun to correctly remove the lfs filter on uninstall (rhbz#1580357)
|
|
|
|
|
|
2018-03-12 21:11:29 +00:00
|
|
|
|
* Mon Mar 12 2018 Carl George <carl@george.computer> - 2.4.0-2
|
|
|
|
|
- Add %%go_arches fallback to work around Koji issues
|
|
|
|
|
|
2018-03-04 08:00:53 +00:00
|
|
|
|
* Sun Mar 04 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.4.0-1
|
|
|
|
|
- Update to latest release.
|
|
|
|
|
|
2018-02-09 22:10:36 +00:00
|
|
|
|
* Thu Feb 08 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.3.4-6
|
|
|
|
|
- Add patches to build with Go 1.10.
|
|
|
|
|
|
2018-02-07 12:35:52 +00:00
|
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.4-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
2017-12-04 21:03:06 +00:00
|
|
|
|
* Mon Dec 04 2017 Carl George <carl@george.computer> - 2.3.4-4
|
|
|
|
|
- Use vendored libraries on RHEL
|
|
|
|
|
- Skip test on RHEL
|
|
|
|
|
- Don't build man pages on RHEL due to missing ronn
|
2017-12-04 21:28:40 +00:00
|
|
|
|
- Don't build html versions of man pages
|
2017-12-04 21:03:06 +00:00
|
|
|
|
|
2018-02-09 22:10:36 +00:00
|
|
|
|
* Fri Dec 01 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.3.4-3
|
2017-12-01 06:40:06 +00:00
|
|
|
|
- Require git-core instead of git.
|
|
|
|
|
|
2018-02-09 22:10:36 +00:00
|
|
|
|
* Fri Nov 03 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.3.4-2
|
2017-11-04 04:09:01 +00:00
|
|
|
|
- Patch tests to work on slow systems like arm and aarch builders.
|
2017-11-04 04:26:57 +00:00
|
|
|
|
- Fix "git lfs help" command.
|
2017-11-04 04:09:01 +00:00
|
|
|
|
|
2018-02-09 22:10:36 +00:00
|
|
|
|
* Fri Nov 03 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.3.4-1
|
2017-11-03 06:21:27 +00:00
|
|
|
|
- Update to latest release.
|
2017-11-03 08:25:40 +00:00
|
|
|
|
- Run all tests during build.
|
2017-11-03 06:21:27 +00:00
|
|
|
|
|
2018-02-09 22:10:36 +00:00
|
|
|
|
* Fri Sep 01 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.2.1-3
|
2017-09-02 18:54:44 +00:00
|
|
|
|
- Remove redundant doc tag on manpages.
|
|
|
|
|
- Use path macros in %%post/%%postun.
|
|
|
|
|
|
2018-02-09 22:10:36 +00:00
|
|
|
|
* Thu Aug 31 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.2.1-2
|
2017-09-02 18:54:44 +00:00
|
|
|
|
- Disable unnecessary subpackages.
|
|
|
|
|
|
2018-02-09 22:10:36 +00:00
|
|
|
|
* Sun Jul 30 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.2.1-1
|
2017-09-02 18:54:44 +00:00
|
|
|
|
- Update to latest version.
|
|
|
|
|
|
|
|
|
|
* Wed Apr 19 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.2-2
|
|
|
|
|
- Patch up to build with Go 1.7
|
|
|
|
|
|
|
|
|
|
* Wed Apr 19 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.2-1
|
|
|
|
|
- Update to latest release
|
|
|
|
|
- Add some requested macros
|
|
|
|
|
|
|
|
|
|
* Tue Mar 14 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.1-1
|
|
|
|
|
- Update to latest release
|
|
|
|
|
- Don't disable git-lfs globally during upgrade
|
|
|
|
|
|
|
|
|
|
* Mon Mar 06 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.0-1
|
|
|
|
|
- Update to latest release
|
|
|
|
|
|
|
|
|
|
* Sun Feb 12 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.5.5-1
|
|
|
|
|
- Update to latest release
|
|
|
|
|
- Add -devel and -unit-test-devel subpackages
|
|
|
|
|
- Add post/preun scriptlets for global enablement
|
|
|
|
|
|
|
|
|
|
* Sun May 15 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.2.0-1
|
|
|
|
|
- Initial package
|