diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-22 06:24:05 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-22 06:24:05 +0000 |
commit | fdd0746e9dd1e73b1e68ea71c9cf4ba276caf374 (patch) | |
tree | 074200d0a130b004be75a5b81f4a89cea8554b52 | |
parent | 60f5eaa349007ff2843e38f283a6315ca181d9e1 (diff) |
automatic import of copr-rpmbuild
-rw-r--r-- | copr-rpmbuild.spec | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/copr-rpmbuild.spec b/copr-rpmbuild.spec index ed5c990..c514946 100644 --- a/copr-rpmbuild.spec +++ b/copr-rpmbuild.spec @@ -1,4 +1,4 @@ -%if 0%{?fedora} || 0%{?rhel} > 7 +%if 0%{?fedora} || 0%{?rhel} > 7 || 0%{?openEuler} %global __python %__python3 %global python python3 %global python_pfx python3 @@ -49,7 +49,7 @@ BuildRequires: %{python_pfx}-jinja2 BuildRequires: %{python_pfx}-simplejson BuildRequires: %{python}-backoff -%if 0%{?fedora} || 0%{?rhel} > 7 +%if 0%{?fedora} || 0%{?rhel} > 7 || 0%{?openEuler} BuildRequires: argparse-manpage %endif BuildRequires: python-rpm-macros @@ -76,7 +76,7 @@ Requires: expect Requires: qemu-user-static Requires: sed -%if 0%{?fedora} || 0%{?rhel} > 7 +%if 0%{?fedora} || 0%{?rhel} > 7 || 0%{?openEuler} Recommends: rpkg Recommends: python-srpm-macros Suggests: tito @@ -96,14 +96,14 @@ Summary: copr-rpmbuild with all weak dependencies Requires: %{name} = %{version}-%{release} Requires: copr-distgit-client = %{version}-%{release} -%if 0%{?fedora} +%if 0%{?fedora} || 0%{?openEuler} # replacement for yum/yum-utils, to be able to work with el* chroots # bootstrap_container. Requires: dnf-yum Requires: dnf-utils %endif # selinux toolset to allow running ansible against the builder -%if 0%{?fedora} +%if 0%{?fedora} || 0%{?openEuler} Requires: python3-libselinux Requires: python3-libsemanage %else @@ -127,8 +127,10 @@ Requires: rsync Requires: rubygem-gem2rpm Requires: scl-utils-build Requires: tito +%if 0%{?rhel} || 0%{?fedora} Requires: fedora-review >= 0.8 Requires: fedora-review-plugin-java +%endif # yum* to allow mock to build against el* chroots without bootstrap_container %if 0%{?rhel} Requires: yum @@ -276,7 +278,7 @@ 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 +%if 0%{?fedora} || 0%{?rhel} > 7 || 0%{?openEuler} argparse-manpage --pyfile copr_distgit_client.py \ --function _get_argparser \ --author "Copr Team" \ @@ -324,7 +326,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 +%if 0%{?fedora} || 0%{?rhel} > 7 || 0%{?openEuler} %_mandir/man1/copr-distgit-client.1* %endif %dir %_sysconfdir/copr-distgit-client |