Package init

This commit is contained in:
dogsheng 2019-11-19 11:54:57 +08:00
commit 2d40978d0e
2 changed files with 45 additions and 0 deletions

BIN
pyaml-19.4.1.tar.gz Normal file

Binary file not shown.

45
python-pyaml.spec Normal file
View File

@ -0,0 +1,45 @@
%global pypi_name pyaml
Name: python-%{pypi_name}
Version: 19.4.1
Release: 1
Summary: PyYAML-based python module to produce pretty and readable YAML-serialized data
License: WTFPL
URL: https://github.com/clearlinux-pkgs/pyaml
Source0: https://files.pythonhosted.org/packages/bf/0c/bf62f049446da78498eb607bc8cbb0604cf1e8d618f2f733e538dcb6e0bc/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
Requires: python3-PyYAML
%global _description \
Python module to produce formatted YAML-serialized data
%description %{_description}
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name} %{_description}
%prep
%autosetup -n %{pypi_name}-%{version}
%build
%py3_build
%install
%py3_install
%check
%files -n python3-%{pypi_name}
%license COPYING
%doc README.rst
%{python3_sitelib}/*
%changelog
* Tue Nov 7 2019 caomeng <caomeng5@huawei.com> - 19.4.1-1
- Init package