fix build error on opensuse15.x distro 22/296722/3
authorbiao716.wang <biao716.wang@samsung.com>
Thu, 3 Aug 2023 11:15:46 +0000 (20:15 +0900)
committerbiao716.wang <biao716.wang@samsung.com>
Fri, 4 Aug 2023 03:51:01 +0000 (12:51 +0900)
Change-Id: I0fbfdcfdfa390d16a6a5bbf52978590b0987b126
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
debian/control
packaging/git-buildpackage.spec

index 0ccbc20..b068b91 100755 (executable)
@@ -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
index f680d4e..fe68674 100755 (executable)
@@ -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