Blame SPECS/git-lfs.spec

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