|
|
e06310b |
# Generated by go2rpm
|
|
|
e06310b |
%bcond_without check
|
|
Clément DAVID |
83cc50d |
|
|
Clément DAVID |
83cc50d |
# https://github.com/exercism/cli
|
|
|
e06310b |
%global goipath github.com/exercism/cli
|
|
|
bbdae8b |
Version: 3.0.13
|
|
|
e06310b |
|
|
|
e06310b |
%gometa
|
|
|
e06310b |
|
|
|
e06310b |
# Uncomment if we start providing devel packages:
|
|
|
e06310b |
#global common_description #{expand:
|
|
|
e06310b |
#A Go based command line tool for exercism.io.}
|
|
Clément DAVID |
83cc50d |
|
|
|
e06310b |
#global golicenses LICENSE
|
|
|
e06310b |
#global godocs RELEASE.md CHANGELOG.md CONTRIBUTING.md README.md
|
|
|
e06310b |
|
|
|
e06310b |
Name: exercism
|
|
|
9918e43 |
Release: 8%{?dist}
|
|
Clément DAVID |
83cc50d |
Summary: Exercism command-line interface
|
|
|
e06310b |
|
|
Clément DAVID |
83cc50d |
License: MIT
|
|
|
e06310b |
URL: %{gourl}
|
|
|
e06310b |
Source0: %{gosource}
|
|
Clément DAVID |
83cc50d |
|
|
Clément DAVID |
83cc50d |
# Remove the github.com/inconshreveable/go-update dependency
|
|
|
481e7f9 |
Patch0001: 0001-Disable-self-update.patch
|
|
Clément DAVID |
83cc50d |
|
|
|
e06310b |
BuildRequires: golang(github.com/blang/semver)
|
|
|
e06310b |
BuildRequires: golang(github.com/spf13/cobra)
|
|
|
e06310b |
BuildRequires: golang(github.com/spf13/pflag)
|
|
|
e06310b |
BuildRequires: golang(github.com/spf13/viper)
|
|
|
e06310b |
BuildRequires: golang(golang.org/x/net/html/charset)
|
|
|
e06310b |
BuildRequires: golang(golang.org/x/text/transform)
|
|
Clément DAVID |
83cc50d |
|
|
|
e06310b |
%if %{with check}
|
|
|
e06310b |
# Tests
|
|
|
e06310b |
BuildRequires: golang(github.com/stretchr/testify/assert)
|
|
|
e06310b |
%endif
|
|
Clément DAVID |
83cc50d |
|
|
Clément DAVID |
83cc50d |
%description
|
|
|
c65de02 |
Exercism provides a way to do the problems on https://exercism.io.
|
|
Clément DAVID |
83cc50d |
|
|
Clément DAVID |
83cc50d |
This CLI ships as a binary with no additional run-time requirements. This means
|
|
Clément DAVID |
83cc50d |
that if you're doing the Haskell problems on exercism you don't need a working
|
|
Clément DAVID |
83cc50d |
Python or Ruby environment simply to fetch and submit exercises.
|
|
Clément DAVID |
83cc50d |
|
|
Clément DAVID |
83cc50d |
|
|
Clément DAVID |
83cc50d |
%prep
|
|
|
e06310b |
%goprep
|
|
|
e06310b |
%patch1 -p1
|
|
Clément DAVID |
83cc50d |
|
|
Clément DAVID |
83cc50d |
|
|
Clément DAVID |
83cc50d |
%build
|
|
|
e06310b |
%gobuild -o %{gobuilddir}/bin/exercism %{goipath}/exercism
|
|
Clément DAVID |
83cc50d |
|
|
Clément DAVID |
83cc50d |
|
|
Clément DAVID |
83cc50d |
%install
|
|
Clément DAVID |
83cc50d |
# main exercism binary
|
|
Clément DAVID |
83cc50d |
install -d -p %{buildroot}%{_bindir}/
|
|
|
e06310b |
install -p %{gobuilddir}/bin/exercism %{buildroot}%{_bindir}/
|
|
|
b2345ba |
# shell completion
|
|
|
b2345ba |
install -d %{buildroot}%{_datadir}/bash-completion/completions
|
|
|
b2345ba |
install -Dpm0644 shell/exercism_completion.bash %{buildroot}%{_datadir}/bash-completion/completions/exercism
|
|
|
f95c45a |
install -d %{buildroot}%{_datadir}/fish/vendor_completions.d
|
|
|
f95c45a |
install -Dpm0644 shell/exercism.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/exercism.fish
|
|
|
b2345ba |
install -d %{buildroot}%{_datadir}/zsh/site-functions
|
|
|
b2345ba |
install -Dpm0644 shell/exercism_completion.zsh %{buildroot}%{_datadir}/zsh/site-functions/_exercism
|
|
Clément DAVID |
83cc50d |
|
|
Clément DAVID |
83cc50d |
|
|
|
e06310b |
%if %{with check}
|
|
Clément DAVID |
83cc50d |
%check
|
|
|
e06310b |
%gocheck
|
|
Clément DAVID |
83cc50d |
%endif
|
|
Clément DAVID |
83cc50d |
|
|
Clément DAVID |
83cc50d |
%files
|
|
Clément DAVID |
83cc50d |
%license LICENSE
|
|
Clément DAVID |
83cc50d |
%doc CHANGELOG.md RELEASE.md README.md
|
|
Clément DAVID |
83cc50d |
%{_bindir}/exercism
|
|
|
b2345ba |
%dir %{_datadir}/bash-completion
|
|
|
b2345ba |
%dir %{_datadir}/bash-completion/completions
|
|
|
b2345ba |
%{_datadir}/bash-completion/completions/exercism
|
|
|
481e7f9 |
%dir %{_datadir}/fish
|
|
|
f95c45a |
%dir %{_datadir}/fish/vendor_completions.d
|
|
|
f95c45a |
%{_datadir}/fish/vendor_completions.d/exercism.fish
|
|
|
481e7f9 |
%dir %{_datadir}/zsh
|
|
|
b2345ba |
%dir %{_datadir}/zsh/site-functions
|
|
|
b2345ba |
%{_datadir}/zsh/site-functions/_exercism
|
|
Clément DAVID |
83cc50d |
|
|
Clément DAVID |
83cc50d |
|
|
Clément DAVID |
83cc50d |
%changelog
|
|
|
9918e43 |
* Fri Jun 17 2022 Robert-André Mauchin <zebob.m@gmail.com> - 3.0.13-8
|
|
|
9918e43 |
- Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191,
|
|
|
9918e43 |
CVE-2022-29526, CVE-2022-30629
|
|
|
9918e43 |
|
|
|
6140105 |
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.13-7
|
|
|
6140105 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
6140105 |
|
|
|
bb0c8fb |
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.13-6
|
|
|
bb0c8fb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
bb0c8fb |
|
|
|
94d58fa |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.13-5
|
|
|
94d58fa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
94d58fa |
|
|
|
0a1262e |
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.13-4
|
|
|
0a1262e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
0a1262e |
|
|
|
f95c45a |
* Sun Mar 01 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 3.0.13-3
|
|
|
f95c45a |
- Move fish completions to vendor directory (#1733321)
|
|
|
f95c45a |
|
|
|
4781f33 |
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.13-2
|
|
|
4781f33 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
4781f33 |
|
|
|
bbdae8b |
* Fri Jan 03 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 3.0.13-1
|
|
|
bbdae8b |
- Update to latest version
|
|
|
bbdae8b |
|
|
|
0ae5ba0 |
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.12-2
|
|
|
0ae5ba0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
0ae5ba0 |
|
|
|
481e7f9 |
* Wed Jul 10 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 3.0.12-1
|
|
|
481e7f9 |
- Update to latest version
|
|
|
481e7f9 |
- Add fish completions
|
|
|
e06310b |
- Update to latest Go macros
|
|
|
481e7f9 |
|
|
|
c65de02 |
* Sat Feb 09 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 3.0.11-1
|
|
|
c65de02 |
- Update to latest version
|
|
|
c65de02 |
|
|
|
8c13df9 |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-4
|
|
|
8c13df9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
8c13df9 |
|
|
|
ce96e0c |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-3
|
|
|
ce96e0c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
ce96e0c |
|
|
|
e5c6e32 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-2
|
|
|
e5c6e32 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
e5c6e32 |
|
|
Clément DAVID |
83cc50d |
* Wed Sep 06 2017 Clément David <c.david86@gmail.com> - 2.4.1-1
|
|
Clément DAVID |
83cc50d |
- First package for Fedora
|