summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbiao716.wang <biao716.wang@samsung.com>2023-08-03 20:15:46 +0900
committerbiao716.wang <biao716.wang@samsung.com>2023-08-04 12:51:01 +0900
commit18e58cea3a759287be93808a0beeb42113b19c46 (patch)
tree99ec6ee9f65c9b8bb7893b6cbc7b4709c8b6e4f4
parent78967eec718c92a49c5783beb31d844ac303c15f (diff)
downloadgit-buildpackage-18e58cea3a759287be93808a0beeb42113b19c46.tar.gz
git-buildpackage-18e58cea3a759287be93808a0beeb42113b19c46.tar.bz2
git-buildpackage-18e58cea3a759287be93808a0beeb42113b19c46.zip
fix build error on opensuse15.x distro
Change-Id: I0fbfdcfdfa390d16a6a5bbf52978590b0987b126 Signed-off-by: biao716.wang <biao716.wang@samsung.com>
-rwxr-xr-xdebian/control1
-rwxr-xr-xpackaging/git-buildpackage.spec6
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