!2 python-kiwisolver: Fixed format for spec file

Merge pull request !2 from gnaygnil/master
This commit is contained in:
openeuler-ci-bot 2020-03-09 18:28:03 +08:00 committed by Gitee
commit 457c43bebd
2 changed files with 15 additions and 23 deletions

Binary file not shown.

View File

@ -1,12 +1,10 @@
%global _name kiwisolver Name: python-kiwisolver
Name: python-%{_name}
Version: 1.1.0 Version: 1.1.0
Release: 1 Release: 2
Summary: A fast implementation of the Cassowary constraint solver Summary: A fast implementation of the Cassowary constraint solver
License: BSD License: BSD
URL: https://github.com/nucleic/kiwi URL: https://github.com/nucleic/kiwi
Source0: https://github.com/nucleic/kiwi/archive/%{version}/%{_name}-%{version}.tar.gz Source0: https://github.com/nucleic/kiwi/archive/%{version}/kiwisolver-%{version}.tar.gz
BuildRequires: gcc-c++ BuildRequires: gcc-c++
%description %description
@ -15,42 +13,36 @@ Kiwi is an implementation of the algorithm based on the seminal Cassowary paper.
not a refactoring of the original C++ solver. Kiwi has been designed from the ground not a refactoring of the original C++ solver. Kiwi has been designed from the ground
up to be lightweight and fast. up to be lightweight and fast.
%package -n python3-kiwisolver
%package -n python3-%{_name}
Summary: Kiwisolver for Python 3 Package Summary: Kiwisolver for Python 3 Package
%{?python_provide:%python_provide python3-%{_name}} %{?python_provide:%python_provide python3-kiwisolver}
BuildRequires: python3-devel python3-setuptools python3-pytest BuildRequires: python3-devel python3-setuptools python3-pytest
%description -n python3-%{_name} %description -n python3-kiwisolver
Kiwisolver for Python 3 Package. Kiwisolver for Python 3 Package.
%prep %prep
%autosetup -n %{_name}-%{version} %autosetup -n kiwi-%{version}
rm -rf kiwisolver.egg-info
rm -rf %{_name}.egg-info
%build %build
%py3_build %py3_build
%install %install
%py3_install %py3_install
%check %check
PYTHONPATH="%{buildroot}%{python3_sitearch}" py.test-3 py/tests/ PYTHONPATH="%{buildroot}%{python3_sitearch}" py.test-3 py/tests/
%files -n python3-kiwisolver
%files -n python3-%{_name} %doc README.rst LICENSE
%doc README.rst %{python3_sitearch}/kiwisolver.cpython-*.so
%license LICENSE %{python3_sitearch}/kiwisolver-%{version}-*.egg-info
%{python3_sitearch}/%{_name}.cpython-*.so
%{python3_sitearch}/%{_name}-%{version}-*.egg-info
%changelog %changelog
* Mon Mar 9 2020 Ling Yang <lingyang2@huawei.com> - 1.1.0-2
- Fixed format for spec file
* Tue Nov 05 2019 openEuler Buildteam<buildteam@openeuler.org> - 1.1.0-1 * Tue Nov 05 2019 openEuler Buildteam<buildteam@openeuler.org> - 1.1.0-1
- Type:NA - Type:NA
- ID:NA - ID:NA