summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-22 03:39:05 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-22 03:39:05 +0000
commit60f5eaa349007ff2843e38f283a6315ca181d9e1 (patch)
tree08e633d100eef93c58176d387da91921db91cf41
parent0aa03c9544f2f54e7dcaaf4e171e5cbcb3c97d3c (diff)
automatic import of copr-rpmbuild
-rw-r--r--copr-rpmbuild.spec22
-rw-r--r--sources2
2 files changed, 11 insertions, 13 deletions
diff --git a/copr-rpmbuild.spec b/copr-rpmbuild.spec
index 6c1b770..ed5c990 100644
--- a/copr-rpmbuild.spec
+++ b/copr-rpmbuild.spec
@@ -1,4 +1,4 @@
-%if 0%{?fedora} || 0%{?rhel} > 7 || 0%{?openEuler}
+%if 0%{?fedora} || 0%{?rhel} > 7
%global __python %__python3
%global python python3
%global python_pfx python3
@@ -23,14 +23,14 @@ Requires: %1 \
Name: copr-rpmbuild
Version: 0.64
Summary: Run COPR build tasks
-Release: 1.git.47.a93386c%{?dist}
+Release: 1%{?dist}
URL: https://github.com/fedora-copr/copr
License: GPL-2.0-or-later
# Source is created by:
# git clone %%url && cd copr
# tito build --tgz --tag %%name-%%version-%%release
-Source0: copr-rpmbuild-git-47.a93386c.tar.gz
+Source0: %name-%version.tar.gz
BuildRequires: %{python}-copr-common >= %copr_common_version
BuildRequires: %{python}-devel
@@ -49,7 +49,7 @@ BuildRequires: %{python_pfx}-jinja2
BuildRequires: %{python_pfx}-simplejson
BuildRequires: %{python}-backoff
-%if 0%{?fedora} || 0%{?rhel} > 7 || 0%{?openEuler}
+%if 0%{?fedora} || 0%{?rhel} > 7
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 || 0%{?openEuler}
+%if 0%{?fedora} || 0%{?rhel} > 7
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} || 0%{?openEuler}
+%if 0%{?fedora}
# 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} || 0%{?openEuler}
+%if 0%{?fedora}
Requires: python3-libselinux
Requires: python3-libsemanage
%else
@@ -127,10 +127,8 @@ 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
@@ -184,7 +182,7 @@ the corresponding dist-git instance configuration.
%prep
-%setup -q -n copr-rpmbuild-git-47.a93386c
+%setup -q
for script in bin/copr-rpmbuild* \
bin/copr-distgit*
do
@@ -278,7 +276,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 || 0%{?openEuler}
+%if 0%{?fedora} || 0%{?rhel} > 7
argparse-manpage --pyfile copr_distgit_client.py \
--function _get_argparser \
--author "Copr Team" \
@@ -326,7 +324,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 || 0%{?openEuler}
+%if 0%{?fedora} || 0%{?rhel} > 7
%_mandir/man1/copr-distgit-client.1*
%endif
%dir %_sysconfdir/copr-distgit-client
diff --git a/sources b/sources
index 3f96f58..89d3f81 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-587c3c7d8d9e332cd97e184a7f25c166 copr-rpmbuild-git-47.a93386c.tar.gz
+a9eb287eee5e074b41b0f65eeda5900c copr-rpmbuild-0.64.tar.gz