!1 Package Init

From: @leofang94
Reviewed-by: @shinwell_hu,@shinwell_hu
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2020-10-09 16:19:16 +08:00 committed by Gitee
commit 19dcbebd5b
3 changed files with 55 additions and 0 deletions

51
python-pyrpm.spec Normal file
View File

@ -0,0 +1,51 @@
%global repo_name python-rpm-spec
%bcond_without tests
Name: python-pyrpm
Version: 0.10
Release: 1
Summary: python-pyrpm is a Python library for parsing RPM spec files
License: MIT
URL: https://github.com/bkircher/%{repo_name}
Source0: https://github.com/bkircher/%{repo_name}/archive/%{version}.tar.gz#/%{repo_name}-%{version}.tar.gz
BuildArch: noarch
%description
python-pyrpm is a Python library for parsing RPM spec files. This module allows
you to parse spec files and gives you simple access to various bits of
information that is contained in the spec file.
%package -n python3-pyrpm
Summary: python3-pyrpm is a Python 3 library for parsing RPM spec files
Provides: python-rpm-spec
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%if %{with tests}
BuildRequires: python3-pytest
%endif
%description -n python3-pyrpm
It is a Python 3 library for python-pyrpm.
%prep
%autosetup -n %{repo_name}-%{version}
%build
%py3_build
%install
%py3_install
%check
%if %{with tests}
py.test-%{python3_version} -vv tests || :
%endif
%files -n python3-pyrpm
%license LICENSE
%doc README.md AUTHORS examples
%{python3_sitelib}/*
%changelog
* Tue Sep 29 2020 Leo Fang <leofang_94@163.com>
- Package Init

4
python-pyrpm.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: bkircher/python-rpm-spec
tag_prefix:
separator: "."

BIN
python-rpm-spec-0.10.tar.gz Normal file

Binary file not shown.