!1 package init

Merge pull request !1 from 通行百万/local
This commit is contained in:
openeuler-ci-bot 2020-03-03 21:44:15 +08:00 committed by Gitee
commit e52e70a0e1
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,46 @@
%global pypi_name ruamel.yaml.clib
%global pname ruamel-yaml-clib
Name: python-%{pname}
Version: 0.1.2
Release: 1
Summary: C version of reader, parser and emitter for ruamel.yaml derived from libyaml
License: MIT
URL: https://bitbucket.org/ruamel/yaml.clib
Source0: %{pypi_source}
BuildRequires: gcc libyaml-devel python3-devel python3-setuptools
%description
It is the C based reader/scanner and emitter for ruamel.yaml.
%package -n python3-%{pname}
Summary: %{summary}
Requires: python3-setuptools
%description -n python3-%{pname}
It is the C based reader/scanner and emitter for ruamel.yaml.
%package_help
%prep
%autosetup -n %{pypi_name}-%{version} -p1
%build
%py3_build
%install
%{__python3} setup.py install --single-version-externally-managed --skip-build --root $RPM_BUILD_ROOT
%files -n python3-%{pname}
%license LICENSE
%{python3_sitearch}/_ruamel_yaml.cpython-*
%{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
%files help
%defattr(-,root,root)
%doc README.rst
%changelog
* Mon Mar 2 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.1.2-1
- Package init

Binary file not shown.