Blame golang-github-aliyun-ossutil.spec

19da3b0
%bcond_without check
19da3b0
19da3b0
%global _hardened_build 1
19da3b0
19da3b0
# https://github.com/aliyun/ossutil
19da3b0
%global goipath         github.com/aliyun/ossutil
f00b6fe
Version:                1.7.5
f00b6fe
%global tag             1.7.5
19da3b0
19da3b0
%gometa
19da3b0
19da3b0
%global common_description %{expand:
19da3b0
Alibaba Cloud (Aliyun) Object Storage Service (OSS) CLI.}
19da3b0
19da3b0
%global golicenses      LICENSE
19da3b0
%global godocs          CHANGELOG.md README-CN.md README.md
19da3b0
19da3b0
Name:           %{goname}
604cd95
Release:        1%{?dist}
19da3b0
Summary:        Alibaba Cloud (Aliyun) Object Storage Service (OSS) CLI
19da3b0
19da3b0
License:        MIT
19da3b0
URL:            %{gourl}
19da3b0
Source0:        %{gosource}
19da3b0
19da3b0
BuildRequires:  golang(github.com/aliyun/aliyun-oss-go-sdk/oss)
19da3b0
BuildRequires:  golang(github.com/alyu/configparser)
19da3b0
BuildRequires:  golang(github.com/droundy/goopt)
19da3b0
BuildRequires:  golang(github.com/syndtr/goleveldb/leveldb)
604cd95
BuildRequires:  golang(golang.org/x/crypto/ssh/terminal)
19da3b0
BuildRequires:  help2man
19da3b0
19da3b0
%if %{with check}
19da3b0
# Tests
19da3b0
BuildRequires:  golang(gopkg.in/check.v1)
19da3b0
%endif
19da3b0
19da3b0
%description
19da3b0
%{common_description}
19da3b0
19da3b0
%gopkg
19da3b0
19da3b0
%prep
19da3b0
%goprep
19da3b0
19da3b0
%build
19da3b0
%gobuild -o %{gobuilddir}/bin/ossutil %{goipath}
19da3b0
mkdir -p %{gobuilddir}/share/man/man1
19da3b0
help2man --no-discard-stderr -n "%{summary}" -s 1 -o %{gobuilddir}/share/man/man1/ossutil.1 -N --version-string="%{version}" %{gobuilddir}/bin/ossutil
19da3b0
19da3b0
%install
19da3b0
%gopkginstall
19da3b0
install -m 0755 -vd                     %{buildroot}%{_bindir}
19da3b0
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
19da3b0
install -m 0755 -vd                                %{buildroot}%{_mandir}/man1
19da3b0
install -m 0644 -vp %{gobuilddir}/share/man/man1/* %{buildroot}%{_mandir}/man1/
19da3b0
19da3b0
%if %{with check}
19da3b0
%check
19da3b0
# Skip 'lib' tests due to need for credentials
19da3b0
%gocheck -d 'lib'
19da3b0
%endif
19da3b0
19da3b0
%files
19da3b0
%license LICENSE
19da3b0
%doc CHANGELOG.md README-CN.md README.md
19da3b0
%{_mandir}/man1/ossutil.1*
19da3b0
%{_bindir}/*
19da3b0
19da3b0
%gopkgfiles
19da3b0
19da3b0
%changelog
f00b6fe
* Mon Jul 12 2021 Brandon Perkins <bperkins@redhat.com> - 1.7.5-1
f00b6fe
- Update to version 1.7.5 (Fixes rhbz#1980939)
f00b6fe
8b3757f
* Thu Jul 01 2021 Brandon Perkins <bperkins@redhat.com> - 1.7.4-1
8b3757f
- Update to version 1.7.4 (Fixes rhbz#1977801)
8b3757f
0da2568
* Mon Apr 12 2021 Brandon Perkins <bperkins@redhat.com> - 1.7.3-1
0da2568
- Update to version 1.7.3 (Fixes rhbz#1948055)
0da2568
604cd95
* Wed Mar 24 2021 Brandon Perkins <bperkins@redhat.com> - 1.7.2-1
604cd95
- Update to version 1.7.2 (Fixes rhbz#1942623)
604cd95
83edfaf
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-2
83edfaf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
83edfaf
82ebf27
* Thu Jan 14 13:49:47 CET 2021 Robert-André Mauchin <zebob.m@gmail.com> - 1.7.1-1
82ebf27
- Update to 1.7.1
82ebf27
- Close: rhbz#1915743
82ebf27
d5ac2ce
* Fri Nov 20 2020 Brandon Perkins <bperkins@redhat.com> - 1.7.0-1
ee0255d
- Update to version 1.7.0 (Fixes rhbz#1899568)
d5ac2ce
a4aa1eb
* Fri Sep 04 2020 Brandon Perkins <bperkins@redhat.com> - 1.6.19-1
ee0255d
- Update to version 1.6.19 (Fixes rhbz#1875619)
a4aa1eb
19da3b0
* Sun Aug 02 2020 Brandon Perkins <bperkins@redhat.com> - 1.6.18-3
19da3b0
- Update summary and description for clarity and consistency
19da3b0
19da3b0
* Wed Jul 29 2020 Brandon Perkins <bperkins@redhat.com> - 1.6.18-2
19da3b0
- Enable check stage
19da3b0
- Disable 'lib' tests due to need for credentials
19da3b0
- Add version tag
19da3b0
- Remove explicit gzip of man page
19da3b0
19da3b0
* Tue Jul 28 2020 Brandon Perkins <bperkins@redhat.com> - 1.6.18-1
ee0255d
- Update to version 1.6.18 (Fixes rhbz#1811182)
19da3b0
- Explicitly harden package
19da3b0
- Remove golang(github.com/satori/go.uuid)
19da3b0
  (commit=b2ce2384e17bbe0c6d34077efa39dbab3e09123b) BuildRequires
19da3b0
- Fix man page generation
19da3b0
- Clean changelog
19da3b0
19da3b0
* Fri Mar 06 2020 Brandon Perkins <bperkins@redhat.com> - 1.6.10-2
19da3b0
- Add man page
19da3b0
19da3b0
* Wed Mar 04 2020 Brandon Perkins <bperkins@redhat.com> - 1.6.10-1
19da3b0
- Update to version 1.6.10
19da3b0
19da3b0
* Fri Nov 22 2019 Brandon Perkins <bperkins@redhat.com> - 1.6.9-1
19da3b0
- Initial package
19da3b0