!10 add debuginfo and debugsource

From: @tong_1001
Reviewed-by: @overweight
Signed-off-by: @overweight
This commit is contained in:
openeuler-ci-bot 2021-03-24 19:13:24 +08:00 committed by Gitee
commit 367208d07b

View File

@ -1,9 +1,7 @@
%global debug_package %{nil}
Name: pyparted Name: pyparted
Epoch: 1 Epoch: 1
Version: 3.11.7 Version: 3.11.7
Release: 1 Release: 2
Summary: Python bindings for libparted Summary: Python bindings for libparted
License: GPLv2 License: GPLv2
Group: System Environment/Libraries Group: System Environment/Libraries
@ -27,24 +25,14 @@ Python3 module for libparted.
%prep %prep
%autosetup -n %{name}-%{version} -p1 -Sgit %autosetup -n %{name}-%{version} -p1 -Sgit
rm -rf %{py3dir}
mkdir -p %{py3dir}
cp -a . %{py3dir}
%build %build
pushd %{py3dir} PYTHON=python3 %make_build CFLAGS="$RPM_OPT_FLAGS"
PYTHON=python3 %make_build
popd
%check %check
pushd %{py3dir}
PYTHON=python3 make test PYTHON=python3 make test
popd
%install %install
pushd %{py3dir}
PYTHON=python3 %make_install PYTHON=python3 %make_install
popd
%files -n python3-pyparted %files -n python3-pyparted
%doc AUTHORS NEWS README TODO %doc AUTHORS NEWS README TODO
@ -54,6 +42,9 @@ popd
%{python3_sitearch}/%{name}-%{version}-*.egg-info %{python3_sitearch}/%{name}-%{version}-*.egg-info
%changelog %changelog
* Wed Mar 03 2021 shixuantong <shixuantong@huawei.com> - 3.11.7-2
- add debuginfo and debugsource
* Tue Feb 02 2021 wuchaochao <wuchaochao4@huawei.com> - 3.11.7-1 * Tue Feb 02 2021 wuchaochao <wuchaochao4@huawei.com> - 3.11.7-1
- Update package version - Update package version