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