Blame SPECS/centos-packager.spec

35c56c
%if 0%{?fedora} >= 28 || 0%{?rhel} >= 8
35c56c
# Use Python 3
35c56c
%global     python_major_version 3
35c56c
%global     python_dist()   python3dist(%1)
35c56c
%else
35c56c
# Use Python 2
35c56c
%global     python_major_version 2
35c56c
%global     python_dist()   python2-%1
35c56c
%endif
35c56c
35c56c
Brian Stinson 8e12a4
Name:           centos-packager
Brian Stinson e2a936
Version:        0.6.0
Brian Stinson e2a936
Release:        1%{?dist}
Brian Stinson 8e12a4
Summary:        Tools and files necessary for building CentOS packages
Brian Stinson 8e12a4
Group:          Applications/Productivity
Brian Stinson 8e12a4
Brian Stinson 8e12a4
License:        GPLv2+
eb68be
URL:            https://git.centos.org/centos/centos-packager
Brian Stinson 8e12a4
Source0:        cbs-koji.conf
Brian Stinson 8e12a4
Source1:        COPYING
6df80a
Source2:        centos-cert
Brian Stinson 8e12a4
Brian Stinson 8e12a4
Requires:       koji
Brian Stinson 8e12a4
Requires:       rpm-build rpmdevtools rpmlint
Brian Stinson 8e12a4
Requires:       mock curl openssh-clients
Brian Stinson 8e12a4
Requires:       redhat-rpm-config
35c56c
Requires:       %{python_dist centos}
Brian Stinson 8e12a4
Brian Stinson 8e12a4
BuildArch:      noarch
Brian Stinson 8e12a4
Brian Stinson 8e12a4
%description
Brian Stinson 8e12a4
Tools to help set up a CentOS packaging environment
Brian Stinson 8e12a4
Brian Stinson 8e12a4
Brian Stinson 8e12a4
%prep
Brian Stinson 8e12a4
cp %{SOURCE1} .
Brian Stinson 8e12a4
Brian Stinson 8e12a4
%build
Brian Stinson 8e12a4
# Nothing here
Brian Stinson 8e12a4
Brian Stinson 8e12a4
%install
Brian Stinson 8e12a4
%{__mkdir_p} %{buildroot}/etc/koji.conf.d/
Brian Stinson 8e12a4
%{__install} -m 0644 %{SOURCE0} %{buildroot}/etc/koji.conf.d/cbs-koji.conf
Brian Stinson 8e12a4
Brian Stinson 8e12a4
%{__mkdir_p} %{buildroot}/%{_bindir}
9d55b9
ln -sf %{_bindir}/koji %{buildroot}%{_bindir}/cbs
35c56c
35c56c
# Fix shebang to require explicit python version
35c56c
sed -i.backup -E '1s|#!/usr/bin/python\>|\0%{python_major_version}|' %{SOURCE2}
6df80a
%{__install} -m 0755 %{SOURCE2} %{buildroot}%{_bindir}/centos-cert
Brian Stinson 8e12a4
Brian Stinson 8e12a4
%files
Brian Stinson 8e12a4
%doc COPYING
Brian Stinson 8e12a4
%config /etc/koji.conf.d/cbs-koji.conf
Brian Stinson 8e12a4
%{_bindir}/cbs
6df80a
%{_bindir}/centos-cert
Brian Stinson 8e12a4
Brian Stinson 8e12a4
%changelog
Brian Stinson e2a936
* Tue Aug 11 2020 Brian Stinson <bstinson@centosproject.org> - 0.6.0-1
Brian Stinson e2a936
- Cut a new release
Brian Stinson e2a936
35c56c
* Wed Nov 27 2019 Jan Staněk <jstanek@redhat.com> - 0.5.5-2
35c56c
- Use Python3 on F28+ and EL 8+
35c56c
bf2a24
* Mon Nov 28 2016 brian@bstinson.com 0.5.5-1
bf2a24
- Update more references to ACO
bf2a24
- Make sure Exception messages don't print credentials to the screen
bf2a24
bf2a24
* Thu Oct 20 2016 brian@bstinson.com 0.5.4-1
bf2a24
- Update to point at the trust ca-bundle.crt #12110
bf2a24
- Update the help text to mention ACO
bf2a24
faf598
* Tue Oct 11 2016 brian@bstinson.com 0.5.3-1
faf598
- Rebuild to fix #12011
faf598
5ff3fa
* Tue Nov 10 2015 brian@bstinson.com 0.5.2-1
5ff3fa
- Fix a typo pointing to the ca-bundle in the cbs koji profile
5ff3fa
6df80a
* Thu Oct 29 2015 brian@bstinson.com 0.5.1-1
6df80a
- Refactor to be more friendly if the http request fails
6df80a
- Move centos_cert to centos-cert
6df80a
f69b31
* Wed Oct 28 2015 brian@bstinson.com 0.5.0-1
f69b31
- The centos-cert utility now downloads the correct certificate, and sets up the
f69b31
  CA certificate properly
f69b31
- Updated the koji config to point to the downloaded certificates
f69b31
9d55b9
* Sun Jul 26 2015 brian@bstinson.com 0.2.0-1
9d55b9
- Added the centos_cert utility
35c56c
- Remove the dep on centpkg
9d55b9
- Add a dep for python-centos
9d55b9
Brian Stinson 8e12a4
* Sun Dec 14 2014 Brian Stinson <bstinson@ksu.edu> - 0.1.0-1
Brian Stinson 8e12a4
- initial build