From 18e58cea3a759287be93808a0beeb42113b19c46 Mon Sep 17 00:00:00 2001 From: "biao716.wang" Date: Thu, 3 Aug 2023 20:15:46 +0900 Subject: fix build error on opensuse15.x distro Change-Id: I0fbfdcfdfa390d16a6a5bbf52978590b0987b126 Signed-off-by: biao716.wang --- debian/control | 1 - packaging/git-buildpackage.spec | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/debian/control b/debian/control index 0ccbc204..b068b917 100755 --- a/debian/control +++ b/debian/control @@ -35,7 +35,6 @@ Depends: ${python3:Depends}, devscripts (>= 2.13.5~), git (>= 1:1.7.9.1-1~), man-db, - python3-dateutil, python3-pkg-resources, python3-dateutil, #unittest need diff --git a/packaging/git-buildpackage.spec b/packaging/git-buildpackage.spec index f680d4ed..fe68674b 100755 --- a/packaging/git-buildpackage.spec +++ b/packaging/git-buildpackage.spec @@ -1,6 +1,7 @@ %{!?python3_sitelib: %define python3_sitelib %(python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')} # Add --without docs rpmbuild option, i.e. docs are enabled by default -%bcond_without docs +#current disable docs. +%bcond_with docs Name: git-buildpackage Summary: Build packages from git @@ -41,7 +42,7 @@ Source0: %{name}_%{version}.tar.gz %if 0%{?tizen_version:1} %define rpm_python_pkg_name python3-rpm %else -%define rpm_python_pkg_name rpm-python3 +%define rpm_python_pkg_name python3-rpm %endif Requires: %{name}-common = %{version}-%{release} @@ -88,6 +89,7 @@ Group: Development/Tools/Building Requires: git-core Requires: %{man_pkg_name} Requires: %{python_pkg_name} +Requires: python3-python-dateutil %if 0%{?suse_version} || 0%{?tizen_version:1} Recommends: pristine-tar Recommends: unzip -- cgit v1.2.3