diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ae97dae --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ruamel.yaml.clib-0.1.2.tar.gz diff --git a/python-ruamel-yaml-clib.spec b/python-ruamel-yaml-clib.spec new file mode 100644 index 0000000..cc6d71e --- /dev/null +++ b/python-ruamel-yaml-clib.spec @@ -0,0 +1,46 @@ +%global pypi_name ruamel.yaml.clib +%global pname ruamel-yaml-clib + +Name: python-%{pname} +Version: 0.1.2 +Release: 1%{?dist} +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 +BuildRequires: libyaml-devel + +%description +It is the C based reader/scanner and emitter for ruamel.yaml. + +%package -n python3-%{pname} +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +Requires: python3-setuptools + +%description -n python3-%{pname} +It is the C based reader/scanner and emitter for ruamel.yaml. + +%prep +%autosetup -n %{pypi_name}-%{version} + +%build +%py3_build + +%install +%{__python3} setup.py install --single-version-externally-managed --skip-build --root $RPM_BUILD_ROOT + +%files -n python3-%{pname} +%license LICENSE +%doc README.rst +%{python3_sitearch}/_ruamel_yaml.cpython-* +%{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info + +%changelog +* Fri Aug 30 2019 Chandan Kumar - 0.1.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..7fa9a8f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ruamel.yaml.clib-0.1.2.tar.gz) = a5c84b1ff10dde5a467fa16f1a3bd5ea174c39251364429ac3d63fa94bc728571316a8f418bf9a50f441096d59580c3e2e49c3ecf9d5961d650d61440b57f461