Blame SPECS/git-lfs.spec

2a2129
%bcond_without check
2a2129
2a2129
# https://github.com/git-lfs/git-lfs
2a2129
%global goipath         github.com/git-lfs/git-lfs
6c011e
Version:                3.2.0
2a2129
2a2129
%gometa
2a2129
2a2129
%global gobuilddir %{_builddir}/%{name}-%{version}/_build
2a2129
2a2129
Name:           git-lfs
6c011e
Release:        1%{?dist}
2a2129
Summary:        Git extension for versioning large files
2a2129
2a2129
License:        MIT
2a2129
URL:            https://git-lfs.github.io/
2a2129
Source0:        https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-v%{version}.tar.gz
2a2129
Source1:        README.Fedora
2a2129
6c011e
Patch:          https://github.com/git-lfs/git-lfs/commit/11fe8dc62ed2eb158eaec28af90d2f509e7fd91f.patch
6c011e
6c011e
# Generated provides by vendor2provides.py
6c011e
# https://src.fedoraproject.org/rpms/syncthing/blob/603e4e03a92a7d704d199629dd85304018e8279d/f/vendor2provides.py
6c011e
Provides:       bundled(golang(github.com/alexbrainman/sspi)) = 909beea
6c011e
Provides:       bundled(golang(github.com/avast/retry-go)) = 2.4.2+incompatible
6c011e
Provides:       bundled(golang(github.com/davecgh/go-spew)) = 1.1.1
6c011e
Provides:       bundled(golang(github.com/dpotapov/go-spnego)) = 298b63a
6c011e
Provides:       bundled(golang(github.com/git-lfs/gitobj/v2)) = 2.1.0
6c011e
Provides:       bundled(golang(github.com/git-lfs/go-netrc)) = f0c862d
6c011e
Provides:       bundled(golang(github.com/git-lfs/pktline)) = 06e9096
6c011e
Provides:       bundled(golang(github.com/git-lfs/wildmatch/v2)) = 2.0.1
6c011e
Provides:       bundled(golang(github.com/hashicorp/go-uuid)) = 1.0.2
6c011e
Provides:       bundled(golang(github.com/inconshreveable/mousetrap)) = 1.0.0
6c011e
Provides:       bundled(golang(github.com/jcmturner/aescts/v2)) = 2.0.0
6c011e
Provides:       bundled(golang(github.com/jcmturner/dnsutils/v2)) = 2.0.0
6c011e
Provides:       bundled(golang(github.com/jcmturner/gofork)) = 1.0.0
6c011e
Provides:       bundled(golang(github.com/jcmturner/goidentity/v6)) = 6.0.1
6c011e
Provides:       bundled(golang(github.com/jcmturner/gokrb5/v8)) = 8.4.2
6c011e
Provides:       bundled(golang(github.com/jcmturner/rpc/v2)) = 2.0.3
6c011e
Provides:       bundled(golang(github.com/leonelquinteros/gotext)) = 1.5.0
6c011e
Provides:       bundled(golang(github.com/mattn/go-isatty)) = 0.0.4
6c011e
Provides:       bundled(golang(github.com/olekukonko/ts)) = 78ecb04
6c011e
Provides:       bundled(golang(github.com/pkg/errors)) = c605e28
6c011e
Provides:       bundled(golang(github.com/pmezard/go-difflib)) = 1.0.0
6c011e
Provides:       bundled(golang(github.com/rubyist/tracerx)) = 7879593
6c011e
Provides:       bundled(golang(github.com/spf13/cobra)) = 0.0.3
6c011e
Provides:       bundled(golang(github.com/spf13/pflag)) = 1.0.3
6c011e
Provides:       bundled(golang(github.com/ssgelm/cookiejarparser)) = 1.0.1
6c011e
Provides:       bundled(golang(github.com/stretchr/testify)) = 1.6.1
6c011e
Provides:       bundled(golang(github.com/xeipuuv/gojsonpointer)) = 4e3ac27
6c011e
Provides:       bundled(golang(github.com/xeipuuv/gojsonreference)) = bd5ef7b
6c011e
Provides:       bundled(golang(github.com/xeipuuv/gojsonschema)) = 6b67b3f
6c011e
Provides:       bundled(golang(golang.org/x/crypto)) = 7b82a4e
6c011e
Provides:       bundled(golang(golang.org/x/net)) = 69e39ba
6c011e
Provides:       bundled(golang(golang.org/x/sync)) = 036812b
6c011e
Provides:       bundled(golang(golang.org/x/sys)) = 665e8c7
6c011e
Provides:       bundled(golang(golang.org/x/text)) = 0.3.7
6c011e
Provides:       bundled(golang(gopkg.in/yaml.v3)) = 9f266ea
2a2129
2a2129
# Generate man pages
2a2129
BuildRequires:  /usr/bin/ronn
2a2129
2a2129
2a2129
%if %{with check}
2a2129
# Tests
2a2129
BuildRequires:  perl-Digest-SHA
2a2129
BuildRequires:  perl-Test-Harness
2a2129
# Tests require full git suite, but not generally needed.
6c011e
BuildRequires:  git >= 2.32.0
2a2129
%endif
2a2129
6c011e
Requires:       git-core >= 2.32.0
2a2129
2a2129
%description
2a2129
Git Large File Storage (LFS) replaces large files such as audio samples,
2a2129
videos, datasets, and graphics with text pointers inside Git, while
2a2129
storing the file contents on a remote server.
2a2129
2a2129
2a2129
%prep
2a2129
%autosetup -p1 -n %{name}-%{version}
2a2129
2a2129
install -m 0755 -vd %{gobuilddir}/bin
2a2129
install -m 0755 -vd "$(dirname %{gobuilddir}/src/%{goipath})"
2a2129
ln -fs "$(pwd)" "%{gobuilddir}/src/%{goipath}"
2a2129
6c011e
# Modify tests so that they expect binaries where we build them.
2a2129
sed -i -e 's!\.\./bin/!/%{gobuilddir}/bin/!g' t/Makefile
6c011e
sed -i -e 's!^BINPATH=.\+!BINPATH="%{gobuilddir}/bin"!g' t/testenv.sh
2a2129
2a2129
%build
2a2129
export GOPATH=%{gobuilddir}:%{gopath}
2a2129
export GO111MODULE=off
2a2129
2a2129
# Build manpages first (some embedding in the executable is done.)
2a2129
pushd docs
2a2129
ronn --roff man/*.ronn
2a2129
%gobuild -o %{gobuilddir}/bin/mangen man/mangen.go
2a2129
%{gobuilddir}/bin/mangen
2a2129
popd
2a2129
2a2129
%gobuild -o %{gobuilddir}/bin/git-lfs %{goipath}
2a2129
2a2129
# Build test executables
2a2129
pushd %{gobuilddir}/src/%{goipath}
2a2129
for cmd in t/cmd/*.go; do
2a2129
    %gobuild -o "%{gobuilddir}/bin/$(basename $cmd .go)" "$cmd"
2a2129
done
2a2129
%gobuild -o "%{gobuilddir}/bin/git-lfs-test-server-api" t/git-lfs-test-server-api/*.go
2a2129
popd
2a2129
2a2129
# Move man pages out of docs so they don't get installed twice.
2a2129
mv docs/man .
2a2129
2a2129
2a2129
%install
2a2129
# In Fedora this is done by using %%gopkginstall
2a2129
install -Dpm0755 %{gobuilddir}/bin/git-lfs %{buildroot}%{_bindir}/%{name}
2a2129
install -d -p %{buildroot}%{_mandir}/man1/
2a2129
install -Dpm0644 man/*.1 %{buildroot}%{_mandir}/man1/
2a2129
install -d -p %{buildroot}%{_mandir}/man5/
2a2129
install -Dpm0644 man/*.5 %{buildroot}%{_mandir}/man5/
2a2129
2a2129
%post
2a2129
%{_bindir}/%{name} install --system --skip-repo
2a2129
2a2129
%preun
2a2129
if [ $1 -eq 0 ]; then
2a2129
    %{_bindir}/%{name} uninstall --system --skip-repo
2a2129
fi
2a2129
exit 0
2a2129
2a2129
2a2129
%if %{with check}
2a2129
%check
6c011e
%gocheck
2a2129
PATH=%{buildroot}%{_bindir}:%{gobuilddir}/bin:$PATH \
2a2129
    make -C t PROVE_EXTRA_ARGS="-j$(getconf _NPROCESSORS_ONLN)"
2a2129
%endif
2a2129
2a2129
2a2129
%files
2a2129
# In Fedora this is done by using %%gopkgfiles 
2a2129
%doc README.md CHANGELOG.md docs
2a2129
%license LICENSE.md
2a2129
%{_bindir}/%{name}
2a2129
%{_mandir}/man1/%%{name}*.1*
2a2129
%{_mandir}/man5/%%{name}*.5*
2a2129
2a2129
2a2129
%changelog
6c011e
* Thu Jan 05 2023 OndÅ™ej PohoÅ™elskĂ½ <opohorel@redhat.com> - 3.2.0-1
6c011e
- Update to 3.2.0
6c011e
- Resolves: #2139383
166c03
2a2129
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.13.3-4
2a2129
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
2a2129
  Related: rhbz#1991688
2a2129
2a2129
* Tue Jun 22 2021 Mohan Boddu <mboddu@redhat.com> - 2.13.3-3
2a2129
- Rebuilt for RHEL 9 BETA for openssl 3.0
2a2129
  Related: rhbz#1971065
2a2129
2a2129
* Wed May 05 2021 OndÅ™ej PohoÅ™elskĂ½ <opohorel@redhat.com> - 2.13.3-2
2a2129
- Fixed name of source tarball
2a2129
- Fixed date in the latest changelog entry 
2a2129
- Related: #1952517
2a2129
2a2129
* Thu Apr 22 2021 OndÅ™ej PohoÅ™elskĂ½ <opohorel@redhat.com> - 2.13.3-1
2a2129
- Update to latest version
2a2129
- Resolves: #1952517
2a2129
2a2129
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 2.13.0-2
2a2129
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
2a2129
2a2129
* Wed Jan 06 2021 OndÅ™ej PohoÅ™elskĂ½ <opohorel@redhat.com> - 2.13.0-1
2a2129
- Enable bundling
2a2129
- Update to latest version
2a2129
2a2129
* Mon Nov 09 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.12.1-1
2a2129
- Update to latest version (#1894780)
2a2129
2a2129
* Thu Sep 03 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.12.0-1
2a2129
- Update to latest version (#1874604)
2a2129
- Remove duplicate docs/man directory (#1852765)
2a2129
- Add an option to disable modifying the git filter config (#1768060)
2a2129
2a2129
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.0-3
2a2129
- Second attempt - Rebuilt for
2a2129
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2a2129
2a2129
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.0-2
2a2129
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2a2129
2a2129
* Sun May 10 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.11.0-1
2a2129
- Update to latest version
2a2129
2a2129
* Thu Feb 20 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.10.0-1
2a2129
- Update to latest version
2a2129
2a2129
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.2-2
2a2129
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2a2129
2a2129
* Tue Jan 07 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.9.2-1
2a2129
- Update to latest version
2a2129
2a2129
* Wed Jan 01 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.9.0-1
2a2129
- Update to latest version
2a2129
2a2129
* Fri Aug 30 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.8.0-4
2a2129
- Customize vendor information in version
2a2129
2a2129
* Fri Aug 30 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.8.0-3
2a2129
- Update to latest version
2a2129
2a2129
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.2-3
2a2129
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2a2129
2a2129
* Wed Jul 10 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.7.2-2
2a2129
- Update to latest Go macros
2a2129
2a2129
* Wed Apr 24 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.7.2-1
2a2129
- Update to latest version
2a2129
2a2129
* Wed Feb 27 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.7.1-1
2a2129
- Update to latest version
2a2129
2a2129
* Thu Feb 21 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.7.0-1
2a2129
- Update to latest version
2a2129
2a2129
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-2
2a2129
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2a2129
2a2129
* Tue Jan 15 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.6.1-1
2a2129
- Update to latest version
2a2129
2a2129
* Mon Jan 14 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.2-4
2a2129
- Rebuilt for dependencies
2a2129
2a2129
* Tue Oct 23 2018 Nicolas Mailhot <nim@fedoraproject.org>
2a2129
- 2.5.2-3
2a2129
- redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as it’s just an alias
2a2129
- https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/RWD5YATAYAFWKIDZBB7EB6N5DAO4ZKFM/
2a2129
2a2129
* Fri Oct 12 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.2-2
2a2129
- rebuilt
2a2129
2a2129
* Wed Oct 10 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.2-1
2a2129
- Update to latest version
2a2129
2a2129
* Tue Sep 04 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.1-1
2a2129
- Update to latest version
2a2129
2a2129
* Mon Sep 03 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.0-1
2a2129
- Update to 2.5.0
2a2129
2a2129
* Wed Aug 29 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.4.2-1
2a2129
- Update to 2.4.2
2a2129
2a2129
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 2.4.1-3
2a2129
- Rebuild with fixed binutils
2a2129
2a2129
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-2
2a2129
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2a2129
2a2129
* Wed May 23 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.4.1-1
2a2129
- Update to latest release
2a2129
2a2129
* Mon May 21 2018 Carl George <carl@george.computer> - 2.4.0-3
2a2129
- Fix %%preun to correctly remove the lfs filter on uninstall (rhbz#1580357)
2a2129
2a2129
* Mon Mar 12 2018 Carl George <carl@george.computer> - 2.4.0-2
2a2129
- Add %%go_arches fallback to work around Koji issues
2a2129
2a2129
* Sun Mar 04 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.4.0-1
2a2129
- Update to latest release.
2a2129
2a2129
* Thu Feb 08 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.3.4-6
2a2129
- Add patches to build with Go 1.10.
2a2129
2a2129
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.4-5
2a2129
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2a2129
2a2129
* Mon Dec 04 2017 Carl George <carl@george.computer> - 2.3.4-4
2a2129
- Use vendored libraries on RHEL
2a2129
- Skip test on RHEL
2a2129
- Don't build man pages on RHEL due to missing ronn
2a2129
- Don't build html versions of man pages
2a2129
2a2129
* Fri Dec 01 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.3.4-3
2a2129
- Require git-core instead of git.
2a2129
2a2129
* Fri Nov 03 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.3.4-2
2a2129
- Patch tests to work on slow systems like arm and aarch builders.
2a2129
- Fix "git lfs help" command.
2a2129
2a2129
* Fri Nov 03 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.3.4-1
2a2129
- Update to latest release.
2a2129
- Run all tests during build.
2a2129
2a2129
* Fri Sep 01 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.2.1-3
2a2129
- Remove redundant doc tag on manpages.
2a2129
- Use path macros in %%post/%%postun.
2a2129
2a2129
* Thu Aug 31 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.2.1-2
2a2129
- Disable unnecessary subpackages.
2a2129
2a2129
* Sun Jul 30 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.2.1-1
2a2129
- Update to latest version.
2a2129
2a2129
* Wed Apr 19 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.2-2
2a2129
- Patch up to build with Go 1.7
2a2129
2a2129
* Wed Apr 19 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.2-1
2a2129
- Update to latest release
2a2129
- Add some requested macros
2a2129
2a2129
* Tue Mar 14 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.1-1
2a2129
- Update to latest release
2a2129
- Don't disable git-lfs globally during upgrade
2a2129
2a2129
* Mon Mar 06 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.0-1
2a2129
- Update to latest release
2a2129
2a2129
* Sun Feb 12 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.5.5-1
2a2129
- Update to latest release
2a2129
- Add -devel and -unit-test-devel subpackages
2a2129
- Add post/preun scriptlets for global enablement
2a2129
2a2129
* Sun May 15 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.2.0-1
2a2129
- Initial package