diff options
author | CoprDistGit <infra@openeuler.org> | 2023-07-27 03:13:26 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-07-27 03:13:26 +0000 |
commit | 0d7b0ccf47772d1ad390334f53fb7f76f2d82edb (patch) | |
tree | ed061a33e93cd90f328a7f25ee45908281283859 | |
parent | 666cd9899d9a3da5642434395e2abd0ae68d6cc5 (diff) |
automatic import of copr-rpmbuild
-rw-r--r-- | copr-rpmbuild.spec | 54 |
1 files changed, 20 insertions, 34 deletions
diff --git a/copr-rpmbuild.spec b/copr-rpmbuild.spec index f63a81f..b077c87 100644 --- a/copr-rpmbuild.spec +++ b/copr-rpmbuild.spec @@ -1,16 +1,9 @@ -%if 0%{?fedora} || 0%{?rhel} > 7 %global __python %__python3 %global python python3 %global python_pfx python3 %global rpm_python python3-rpm %global sitelib %python3_sitelib -%else -%global __python %__python2 -%global python python2 -%global python_pfx python -%global rpm_python rpm-python -%global sitelib %python_sitelib -%endif + %global copr_common_version 0.12.1.dev # do not build debuginfo sub-packages @@ -47,11 +40,10 @@ BuildRequires: %{python_pfx}-munch BuildRequires: %{python}-requests BuildRequires: %{python_pfx}-jinja2 BuildRequires: %{python_pfx}-simplejson +BuildRequires: %{python_pfx}-specfile BuildRequires: python3-backoff >= 1.9.0 -%if 0%{?fedora} || 0%{?rhel} > 7 -BuildRequires: argparse-manpage -%endif +BuildRequires: /usr/bin/argparse-manpage BuildRequires: python-rpm-macros %if "%{?python}" == "python2" @@ -66,6 +58,7 @@ Requires: %{python_pfx}-jinja2 Requires: %{python_pfx}-munch Requires: %{python}-requests Requires: %{python_pfx}-simplejson +Requires: %{python_pfx}-specfile Requires: python3-backoff >= 1.9.0 Requires: mock >= 2.0 @@ -73,7 +66,9 @@ Requires: git Requires: git-svn # for the /bin/unbuffer binary Requires: expect +%if !0%{?openEuler} Requires: qemu-user-static +%endif Requires: sed %if 0%{?fedora} || 0%{?rhel} > 7 @@ -103,32 +98,27 @@ Requires: dnf-yum Requires: dnf-utils %endif # selinux toolset to allow running ansible against the builder -%if 0%{?fedora} Requires: python3-libselinux Requires: python3-libsemanage -%else -Requires: libselinux-python -Requires: libsemanage-python -%endif +%if 0%{?openEuler} # for mock to allow: config_opts['nosync'] = True Requires: nosync -%ifarch x86_64 -# multilib counterpart to avoid: config_opts['nosync_force'] = True -Requires: nosync(x86-32) %endif Requires: openssh-clients Requires: podman +%if !0%{?openEuler} Requires: pyp2rpm Requires: pyp2spec +Requires: rubygem-gem2rpm +Requires: scl-utils-build +Requires: fedora-review >= 0.8 +Requires: fedora-review-plugin-java +%endif # We need %%pypi_source defined, which is in 3-29+ Requires: python-srpm-macros >= 3-29 Requires: rpkg Requires: rsync -Requires: rubygem-gem2rpm -Requires: scl-utils-build Requires: tito -Requires: fedora-review >= 0.8 -Requires: fedora-review-plugin-java # yum* to allow mock to build against el* chroots without bootstrap_container %if 0%{?rhel} Requires: yum @@ -138,21 +128,21 @@ Requires: yum-utils # We want those to be always up-2-date %latest_requires ca-certificates %latest_requires distribution-gpg-keys -%if 0%{?fedora} -%latest_requires dnf +%if 0%{?fedora} >= 38 +%latest_requires dnf5 +%latest_requires dnf5-plugins +%endif + +%latest_requires python3-dnf %latest_requires dnf-plugins-core %latest_requires libdnf %latest_requires librepo %latest_requires libsolv -%endif %latest_requires mock %latest_requires mock-core-configs -%latest_requires redhat-rpm-config +%latest_requires system-rpm-config %latest_requires rpm -# Outdated gem2rpm version may have problems with fetching from rubygems.org -%latest_requires rubygem-gem2rpm - %description -n copr-builder Provides command capable of running COPR build-tasks. @@ -276,14 +266,12 @@ install -p -m 755 copr-update-builder %buildroot%_bindir ) install -p -m 755 bin/copr-distgit-client %buildroot%_bindir -%if 0%{?fedora} || 0%{?rhel} > 7 argparse-manpage --pyfile copr_distgit_client.py \ --function _get_argparser \ --author "Copr Team" \ --author-email "copr-team@redhat.com" \ --url %url --project-name Copr \ > %{buildroot}%{_mandir}/man1/copr-distgit-client.1 -%endif mkdir -p %{buildroot}%{_sysconfdir}/copr-distgit-client install -p -m 644 etc/copr-distgit-client/default.ini \ %{buildroot}%{_sysconfdir}/copr-distgit-client @@ -324,9 +312,7 @@ install -p -m 644 copr_distgit_client.py %{buildroot}%{expand:%%%{python}_siteli %files -n copr-distgit-client %license LICENSE %_bindir/copr-distgit-client -%if 0%{?fedora} || 0%{?rhel} > 7 %_mandir/man1/copr-distgit-client.1* -%endif %dir %_sysconfdir/copr-distgit-client %config %_sysconfdir/copr-distgit-client/default.ini %sitelib/copr_distgit_client.* |