196 lines
5.9 KiB
RPMSpec
196 lines
5.9 KiB
RPMSpec
%global goipath github.com/git-lfs/git-lfs
|
|
Version: 2.5.0
|
|
|
|
%gometa
|
|
|
|
Name: git-lfs
|
|
Release: 1%{?dist}
|
|
Summary: Git extension for versioning large files
|
|
|
|
License: MIT
|
|
URL: https://git-lfs.github.io/
|
|
Source0: %{gosource}
|
|
|
|
BuildRequires: golang(github.com/ThomsonReutersEikon/go-ntlm/ntlm)
|
|
BuildRequires: golang(github.com/git-lfs/gitobj)
|
|
BuildRequires: golang(github.com/git-lfs/go-netrc/netrc) >= 0-0.1.20180827gite0e9ca4
|
|
BuildRequires: golang(github.com/git-lfs/wildmatch) >= 0-0.3.20180815gitb31c344
|
|
BuildRequires: golang(github.com/kr/pty)
|
|
BuildRequires: golang(github.com/olekukonko/ts)
|
|
BuildRequires: golang(github.com/pkg/errors)
|
|
BuildRequires: golang(github.com/rubyist/tracerx)
|
|
BuildRequires: golang(github.com/spf13/cobra)
|
|
# Generate mans
|
|
BuildRequires: /usr/bin/ronn
|
|
# For tests
|
|
BuildRequires: golang(github.com/stretchr/testify/assert)
|
|
BuildRequires: golang(github.com/stretchr/testify/require)
|
|
BuildRequires: golang(github.com/xeipuuv/gojsonschema)
|
|
BuildRequires: perl-Digest-SHA
|
|
BuildRequires: perl-Test-Harness
|
|
# Tests require full git suite, but not generally needed.
|
|
BuildRequires: git >= 1.8.5
|
|
|
|
Requires: git-core >= 1.8.5
|
|
|
|
%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.
|
|
|
|
|
|
%package -n %{goname}-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{goname}-devel
|
|
%{summary}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use import path with %{goipath} prefix.
|
|
|
|
|
|
%prep
|
|
%gosetup -q
|
|
|
|
rm -rf vendor
|
|
|
|
# Modify Makefile so that it expects binaries where we build them.
|
|
sed -i -e 's!/bin/!/_bin/!g' t/Makefile
|
|
|
|
|
|
%build
|
|
%gobuildroot
|
|
|
|
# Build manpages first (some embedding in the executable is done.)
|
|
pushd docs
|
|
ronn --roff man/*.ronn
|
|
%gobuild -o ../_bin/mangen man/mangen.go
|
|
../_bin/mangen
|
|
popd
|
|
|
|
%gobuild -o _bin/git-lfs %{goipath}
|
|
|
|
# Build test executables
|
|
for go in t/cmd/*.go; do
|
|
%gobuild -o "_bin/$(basename $go .go)" "$go"
|
|
done
|
|
%gobuild -o "_bin/git-lfs-test-server-api" t/git-lfs-test-server-api/*.go
|
|
|
|
|
|
%install
|
|
%goinstall
|
|
install -Dpm0755 _bin/git-lfs %{buildroot}%{_bindir}/%{name}
|
|
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
|
|
%{_bindir}/%{name} install --system
|
|
|
|
%preun
|
|
if [ $1 -eq 0 ]; then
|
|
%{_bindir}/%{name} uninstall --system
|
|
fi
|
|
exit 0
|
|
|
|
|
|
%check
|
|
%gochecks
|
|
PATH=%{buildroot}%{_bindir}:$PWD/_bin:$PATH \
|
|
make -C t PROVE_EXTRA_ARGS="-j$(getconf _NPROCESSORS_ONLN)"
|
|
|
|
|
|
%files
|
|
%doc README.md CHANGELOG.md
|
|
%license LICENSE.md
|
|
%{_bindir}/%{name}
|
|
%{_mandir}/man1/%{name}*.1*
|
|
%{_mandir}/man5/%{name}*.5*
|
|
|
|
%files -n %{goname}-devel -f devel.file-list
|
|
%license LICENSE.md
|
|
|
|
|
|
%changelog
|
|
* Mon Sep 03 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.0-1
|
|
- Update to 2.5.0
|
|
|
|
* Wed Aug 29 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.4.2-1
|
|
- Update to 2.4.2
|
|
|
|
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 2.4.1-3
|
|
- Rebuild with fixed binutils
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
* Wed May 23 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.4.1-1
|
|
- Update to latest release
|
|
|
|
* 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)
|
|
|
|
* Mon Mar 12 2018 Carl George <carl@george.computer> - 2.4.0-2
|
|
- Add %%go_arches fallback to work around Koji issues
|
|
|
|
* Sun Mar 04 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.4.0-1
|
|
- Update to latest release.
|
|
|
|
* Thu Feb 08 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.3.4-6
|
|
- Add patches to build with Go 1.10.
|
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.4-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
* 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
|
|
- Don't build html versions of man pages
|
|
|
|
* Fri Dec 01 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.3.4-3
|
|
- Require git-core instead of git.
|
|
|
|
* Fri Nov 03 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.3.4-2
|
|
- Patch tests to work on slow systems like arm and aarch builders.
|
|
- Fix "git lfs help" command.
|
|
|
|
* Fri Nov 03 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.3.4-1
|
|
- Update to latest release.
|
|
- Run all tests during build.
|
|
|
|
* Fri Sep 01 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.2.1-3
|
|
- Remove redundant doc tag on manpages.
|
|
- Use path macros in %%post/%%postun.
|
|
|
|
* Thu Aug 31 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.2.1-2
|
|
- Disable unnecessary subpackages.
|
|
|
|
* Sun Jul 30 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.2.1-1
|
|
- 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
|