2022-05-15 11:38:39 +00:00
|
|
|
# when bootstrapping Python, pytest-xdist is not yet available (also not yet in EPEL9)
|
|
|
|
%if ! 0%{?rhel} || 0%{?rhel} > 9
|
|
|
|
%bcond_without xdist
|
|
|
|
%else
|
|
|
|
%bcond_with xdist
|
|
|
|
%endif
|
|
|
|
|
2020-04-02 13:32:04 +00:00
|
|
|
%global srcname rpmautospec
|
|
|
|
|
|
|
|
Name: python-rpmautospec
|
2022-05-16 16:25:27 +00:00
|
|
|
Version: 0.2.8
|
2022-06-16 17:46:04 +00:00
|
|
|
Release: 2%{?dist}
|
2020-04-02 13:32:04 +00:00
|
|
|
Summary: Package and CLI tool to generate release fields and changelogs
|
|
|
|
|
|
|
|
License: MIT
|
2021-04-15 10:43:21 +00:00
|
|
|
URL: https://pagure.io/fedora-infra/rpmautospec
|
|
|
|
Source0: https://releases.pagure.org/fedora-infra/rpmautospec/rpmautospec-%{version}.tar.gz
|
2020-04-02 13:32:04 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
2022-04-25 12:12:32 +00:00
|
|
|
BuildRequires: git
|
|
|
|
# the langpacks are needed for tests
|
|
|
|
BuildRequires: glibc-langpack-de
|
|
|
|
BuildRequires: glibc-langpack-en
|
2020-04-02 13:32:04 +00:00
|
|
|
BuildRequires: python3-devel >= 3.6.0
|
2020-10-13 14:28:42 +00:00
|
|
|
BuildRequires: python3-setuptools
|
2020-04-02 13:32:04 +00:00
|
|
|
BuildRequires: koji
|
2022-04-25 12:12:32 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-babel
|
2020-04-02 13:32:04 +00:00
|
|
|
BuildRequires: python3-koji
|
2021-05-27 15:25:34 +00:00
|
|
|
BuildRequires: python3-pygit2
|
2020-04-02 13:32:04 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
2020-04-02 16:17:23 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest-cov
|
2022-05-15 11:38:39 +00:00
|
|
|
%if %{with xdist}
|
2022-04-25 12:12:32 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest-xdist
|
2022-05-15 11:38:39 +00:00
|
|
|
%endif
|
2022-04-25 12:12:32 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-pyyaml
|
2020-04-02 13:32:04 +00:00
|
|
|
|
2021-05-27 15:25:34 +00:00
|
|
|
Obsoletes: koji-hub-plugin-rpmautospec < 0.1.5-2
|
|
|
|
Conflicts: koji-hub-plugin-rpmautospec < 0.1.5-2
|
|
|
|
|
2020-04-02 13:32:04 +00:00
|
|
|
%global _description %{expand:
|
|
|
|
A package and CLI tool to generate RPM release fields and changelogs.}
|
|
|
|
|
|
|
|
%description %_description
|
|
|
|
|
|
|
|
# package the library
|
|
|
|
|
|
|
|
%package -n python3-%{srcname}
|
|
|
|
Summary: %{summary}
|
|
|
|
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
|
|
|
|
|
Requires: koji
|
2022-04-25 12:12:32 +00:00
|
|
|
Requires: python3-babel
|
2020-04-02 13:32:04 +00:00
|
|
|
Requires: python3-koji
|
2021-05-27 15:25:34 +00:00
|
|
|
Requires: python3-pygit2
|
|
|
|
Requires: rpm
|
|
|
|
# for "rpm --specfile"
|
|
|
|
Requires: rpm-build >= 4.9
|
2020-04-02 13:32:04 +00:00
|
|
|
|
|
|
|
%description -n python3-%{srcname} %_description
|
|
|
|
|
|
|
|
# Note that there is no %%files section for the unversioned python module
|
|
|
|
%files -n python3-%{srcname}
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
|
|
|
%{python3_sitelib}/%{srcname}-*.egg-info
|
|
|
|
%{python3_sitelib}/%{srcname}/
|
|
|
|
|
|
|
|
# package the cli tool
|
|
|
|
|
|
|
|
%package -n %{srcname}
|
|
|
|
Summary: CLI tool for generating RPM releases and changelogs
|
|
|
|
Requires: python3-%{srcname} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n %{srcname}
|
|
|
|
CLI tool for generating RPM releases and changelogs
|
|
|
|
|
|
|
|
%files -n %{srcname}
|
|
|
|
%{_bindir}/rpmautospec
|
|
|
|
|
|
|
|
# package the Koji plugins
|
|
|
|
|
|
|
|
%package -n koji-builder-plugin-rpmautospec
|
|
|
|
Summary: Koji plugin for generating RPM releases and changelogs
|
|
|
|
Requires: python3-%{srcname} = %{version}-%{release}
|
|
|
|
Requires: python3-koji
|
|
|
|
Requires: koji-builder-plugins
|
|
|
|
|
|
|
|
%description -n koji-builder-plugin-rpmautospec
|
|
|
|
A Koji plugin for generating RPM releases and changelogs.
|
|
|
|
|
|
|
|
%files -n koji-builder-plugin-rpmautospec
|
|
|
|
%{_prefix}/lib/koji-builder-plugins/*
|
|
|
|
|
2020-04-09 11:55:00 +00:00
|
|
|
# Package the placeholder rpm-macros
|
|
|
|
|
|
|
|
%package -n rpmautospec-rpm-macros
|
|
|
|
Summary: Rpmautospec RPM macros for local rpmbuild
|
|
|
|
Requires: rpm
|
|
|
|
|
|
|
|
%description -n rpmautospec-rpm-macros
|
|
|
|
RPM macros with placeholders for building rpmautospec enabled packages localy
|
|
|
|
|
|
|
|
%files -n rpmautospec-rpm-macros
|
|
|
|
%{rpmmacrodir}/macros.rpmautospec
|
|
|
|
|
2020-04-02 13:32:04 +00:00
|
|
|
#--------------------------------------------------------
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{srcname}-%{version}
|
2020-04-03 15:52:33 +00:00
|
|
|
# The python3-koji package doesn't declare itself properly, so we may not depend on it when
|
|
|
|
# installed as an RPM.
|
2020-04-03 16:13:24 +00:00
|
|
|
sed -i /koji/d requirements.txt
|
2020-04-02 13:32:04 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%py3_install
|
2021-05-27 15:25:34 +00:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/lib/koji-builder-plugins/
|
|
|
|
install -m 0644 koji_plugins/rpmautospec_builder.py \
|
|
|
|
%{buildroot}%{_prefix}/lib/koji-builder-plugins/
|
2020-04-02 13:32:04 +00:00
|
|
|
|
|
|
|
%py_byte_compile %{python3} %{buildroot}%{_prefix}/lib/koji-builder-plugins/
|
|
|
|
|
2020-04-09 11:55:00 +00:00
|
|
|
# RPM macros
|
|
|
|
mkdir -p %{buildroot}%{rpmmacrodir}
|
|
|
|
install -m 644 rpm/macros.d/macros.rpmautospec %{buildroot}%{rpmmacrodir}/
|
|
|
|
|
2020-04-02 13:32:04 +00:00
|
|
|
%check
|
2022-05-15 11:38:39 +00:00
|
|
|
%{__python3} -m pytest \
|
|
|
|
%if %{with xdist}
|
|
|
|
--numprocesses=auto
|
|
|
|
%endif
|
|
|
|
|
2020-04-02 13:32:04 +00:00
|
|
|
|
|
|
|
%changelog
|
2022-06-16 17:46:04 +00:00
|
|
|
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 0.2.8-2
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
2022-05-16 16:25:27 +00:00
|
|
|
* Mon May 16 2022 Nils Philippsen <nils@redhat.com> - 0.2.8-1
|
|
|
|
- Update to 0.2.8
|
2022-05-15 11:38:39 +00:00
|
|
|
- Don't require python3-pytest-xdist for building on EL9
|
|
|
|
|
2022-05-16 16:25:27 +00:00
|
|
|
* Mon May 16 2022 Nils Philippsen <nils@redhat.com> - 0.2.7-1
|
|
|
|
- Update to 0.2.7
|
|
|
|
|
2022-04-25 12:12:32 +00:00
|
|
|
* Mon Apr 25 2022 Nils Philippsen <nils@redhat.com> - 0.2.6-1
|
|
|
|
- Update to 0.2.6
|
|
|
|
- Require python3-pytest-xdist for building
|
|
|
|
- Remove EL7 quirks, pkg isn't built there
|
|
|
|
|
|
|
|
* Fri Mar 04 2022 Nils Philippsen <nils@redhat.com>
|
|
|
|
- require python3-pyyaml for building
|
|
|
|
|
|
|
|
* Sun Nov 07 2021 Nils Philippsen <nils@redhat.com>
|
|
|
|
- require python3-babel and glibc langpacks (the latter for testing)
|
2022-01-21 15:19:25 +00:00
|
|
|
|
2021-08-06 15:39:45 +00:00
|
|
|
* Fri Aug 06 2021 Nils Philippsen <nils@redhat.com> - 0.2.5-1
|
|
|
|
- Update to 0.2.5
|
|
|
|
|
2021-08-05 19:33:46 +00:00
|
|
|
* Thu Aug 05 2021 Nils Philippsen <nils@redhat.com> - 0.2.4-1
|
|
|
|
- Update to 0.2.4
|
2021-07-23 09:18:45 +00:00
|
|
|
|
2021-06-16 11:32:43 +00:00
|
|
|
* Wed Jun 16 2021 Nils Philippsen <nils@redhat.com> - 0.2.3-1
|
|
|
|
- Update to 0.2.3
|
2021-06-04 18:59:59 +00:00
|
|
|
|
2021-06-16 11:32:43 +00:00
|
|
|
* Fri Jun 04 2021 Nils Philippsen <nils@redhat.com> - 0.2.2-1
|
2021-06-04 13:59:12 +00:00
|
|
|
- Update to 0.2.2
|
|
|
|
|
2021-05-27 15:45:54 +00:00
|
|
|
* Thu May 27 2021 Nils Philippsen <nils@redhat.com> - 0.2.1-1
|
|
|
|
- Update to 0.2.1
|
|
|
|
|
2021-05-27 15:25:34 +00:00
|
|
|
* Thu May 27 2021 Stephen Coady <scoady@redhat.com> - 0.2.0-1
|
|
|
|
- Update to 0.2.0
|
|
|
|
|
|
|
|
* Thu May 27 2021 Nils Philippsen <nils@redhat.com>
|
|
|
|
- don't ship obsolete Koji configuration snippet
|
|
|
|
|
|
|
|
* Wed May 19 2021 Nils Philippsen <nils@redhat.com>
|
|
|
|
- remove git-core, fix RPM related dependencies
|
|
|
|
|
|
|
|
* Wed May 12 2021 Nils Philippsen <nils@redhat.com>
|
|
|
|
- depend on python3-pygit2
|
|
|
|
|
|
|
|
* Thu Apr 22 2021 Nils Philippsen <nils@redhat.com>
|
|
|
|
- remove the hub plugin
|
|
|
|
|
2021-04-15 10:43:21 +00:00
|
|
|
* Thu Apr 15 2021 Nils Philippsen <nils@redhat.com> - 0.1.5-1
|
|
|
|
- Update to 0.1.5
|
|
|
|
- Have lowercase URLs, because Pagure d'oh
|
2021-01-27 13:13:37 +00:00
|
|
|
|
2021-04-15 10:43:21 +00:00
|
|
|
* Thu Apr 15 2021 Nils Philippsen <nils@redhat.com> - 0.1.4-1
|
|
|
|
- Update to 0.1.4
|
2020-10-13 14:28:42 +00:00
|
|
|
- explicitly BR: python3-setuptools
|
|
|
|
|
2020-04-09 13:23:51 +00:00
|
|
|
* Thu Apr 09 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.1.3-1
|
|
|
|
- Update to 0.1.3
|
|
|
|
|
2020-04-09 12:04:02 +00:00
|
|
|
* Thu Apr 09 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.1.2-1
|
|
|
|
- Update to 0.1.2
|
|
|
|
|
|
|
|
* Thu Apr 09 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.1.1-1
|
|
|
|
- Update to 0.1.1
|
|
|
|
|
2020-04-09 11:55:00 +00:00
|
|
|
* Thu Apr 09 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.1.0-1
|
|
|
|
- Update to 0.1.0
|
|
|
|
|
2020-04-08 19:25:44 +00:00
|
|
|
* Wed Apr 08 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.0.23-1
|
|
|
|
- Update to 0.023
|
|
|
|
|
2020-04-08 16:18:13 +00:00
|
|
|
* Wed Apr 08 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.0.22-1
|
|
|
|
- Update to 0.0.22
|
|
|
|
|
2020-04-08 09:15:56 +00:00
|
|
|
* Wed Apr 08 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.0.21-1
|
|
|
|
- Update to 0.0.21
|
|
|
|
|
2020-04-08 08:50:22 +00:00
|
|
|
* Wed Apr 08 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.0.20-1
|
|
|
|
- Update to 0.0.20
|
|
|
|
|
2020-04-08 08:40:08 +00:00
|
|
|
* Wed Apr 08 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.0.19-1
|
|
|
|
- Update to 0.0.19
|
|
|
|
|
2020-04-08 08:01:50 +00:00
|
|
|
* Wed Apr 08 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.0.18-1
|
|
|
|
- Update to 0.0.18
|
|
|
|
|
2020-04-07 16:14:33 +00:00
|
|
|
* Tue Apr 07 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.0.17-1
|
|
|
|
- Update to 0.0.17
|
|
|
|
|
2020-04-07 15:23:51 +00:00
|
|
|
* Tue Apr 07 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.0.16-1
|
|
|
|
- Update to 0.0.16
|
|
|
|
|
2020-04-07 12:51:07 +00:00
|
|
|
* Tue Apr 07 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.0.15-1
|
|
|
|
- Update to 0.0.15
|
|
|
|
|
2020-04-07 10:22:14 +00:00
|
|
|
* Tue Apr 07 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.0.14-1
|
|
|
|
- Update to 0.0.14
|
|
|
|
|
2020-04-07 10:06:04 +00:00
|
|
|
* Tue Apr 07 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.0.13-1
|
|
|
|
- Update to 0.0.13
|
|
|
|
|
2020-04-07 09:26:49 +00:00
|
|
|
* Tue Apr 07 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.0.12-1
|
|
|
|
- Update to 0.0.12
|
|
|
|
|
2020-04-06 14:45:00 +00:00
|
|
|
* Mon Apr 06 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.0.11-1
|
|
|
|
- Update to 0.0.11
|
|
|
|
|
2020-04-03 17:42:56 +00:00
|
|
|
* Fri Apr 03 2020 Nils Philippsen <nils@redhat.com> - 0.0.10-1
|
|
|
|
- Update to 0.0.10
|
|
|
|
|
2020-04-03 16:06:02 +00:00
|
|
|
* Fri Apr 03 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.0.9-1
|
|
|
|
- Update to 0.0.9
|
2020-04-03 15:52:33 +00:00
|
|
|
|
2020-04-03 15:13:55 +00:00
|
|
|
* Fri Apr 03 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.0.8-1
|
|
|
|
- Update to 0.0.8
|
|
|
|
|
2020-04-03 14:16:55 +00:00
|
|
|
* Fri Apr 03 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.0.7-1
|
|
|
|
- Update to 0.0.7
|
|
|
|
|
2020-04-02 16:17:23 +00:00
|
|
|
* Thu Apr 02 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.0.6-1
|
|
|
|
- Update to 0.0.6
|
|
|
|
|
2020-04-02 13:32:04 +00:00
|
|
|
* Tue Mar 31 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.0.5-1
|
|
|
|
- Update to 0.0.5
|
|
|
|
|
|
|
|
* Tue Mar 31 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.0.4-1
|
|
|
|
- Update to 0.0.4
|
|
|
|
|
|
|
|
* Tue Mar 31 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.0.3-1
|
|
|
|
- Update to 0.0.3
|
|
|
|
|
|
|
|
* Tue Mar 31 2020 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.0.2-1
|
|
|
|
- Update to 0.0.2
|
|
|
|
|
|
|
|
* Wed Mar 18 2020 Adam Saleh <asaleh@redhat.com> - 0.0.1-1
|
|
|
|
- initial package for Fedora
|