#1 Add Python 3.6 sub-package to EPEL7
Merged a year ago by ttorling. Opened a year ago by cottsay.
rpms/ cottsay/python3-PyYAML epel7  into  epel7

file modified
+40 -3

@@ -2,14 +2,12 @@ 

  

  Name:           python3-%{srcname}

  Version:        3.11

- Release:        2%{?dist}

+ Release:        3%{?dist}

  Summary:        YAML parser and emitter for Python 3

  

  License:        MIT

  URL:            http://pyyaml.org/

  Source0:        http://pyyaml.org/download/pyyaml/%{srcname}-%{version}.tar.gz

- BuildRequires:  python%{python3_pkgversion}-devel

- BuildRequires:  python%{python3_pkgversion}-setuptools

  # It actually uses python2 Cython to build _yaml.c

  BuildRequires:  Cython

  BuildRequires:  libyaml-devel

@@ -37,6 +35,8 @@ 

  

  %package -n python%{python3_pkgversion}-%{srcname}

  Summary: YAML parser and emitter for Python %{python3_version}

+ BuildRequires:  python%{python3_pkgversion}-devel

+ BuildRequires:  python%{python3_pkgversion}-setuptools

  Provides: python%{python3_pkgversion}-yaml = %{version}-%{release}

  Provides: python%{python3_pkgversion}-yaml%{?_isa} = %{version}-%{release}

  %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}

@@ -54,6 +54,29 @@ 

  PyYAML is applicable for a broad range of tasks from complex

  configuration files to object serialization and persistance.

  

+ %if 0%{?python3_other_pkgversion}

+ %package -n python%{python3_other_pkgversion}-%{srcname}

+ Summary: YAML parser and emitter for Python %{python3_version}

+ BuildRequires:  python%{python3_other_pkgversion}-devel

+ BuildRequires:  python%{python3_other_pkgversion}-setuptools

+ Provides: python%{python3_other_pkgversion}-yaml = %{version}-%{release}

+ Provides: python%{python3_other_pkgversion}-yaml%{?_isa} = %{version}-%{release}

+ %{?python_provide:%python_provide python%{python3_other_pkgversion}-%{srcname}}

+ 

+ %description -n python%{python3_other_pkgversion}-%{srcname}

+ YAML is a data serialization format designed for human readability and

+ interaction with scripting languages.  PyYAML is a YAML parser and

+ emitter for Python %{python3_version}.

+ 

+ PyYAML features a complete YAML 1.1 parser, Unicode support, pickle

+ support, capable extension API, and sensible error messages.  PyYAML

+ supports standard YAML tags and provides Python-specific tags that

+ allow to represent an arbitrary Python object.

+ 

+ PyYAML is applicable for a broad range of tasks from complex

+ configuration files to object serialization and persistance.

+ %endif # python3_other_pkgversion

+ 

  

  %prep

  %setup -q -n %{srcname}-%{version}

@@ -70,14 +93,17 @@ 

  # regenerate ext/_yaml.c with python2/Cython

  CFLAGS="${RPM_OPT_FLAGS}" %{__python2} setup.py --with-libyaml build_ext

  CFLAGS="${RPM_OPT_FLAGS}" %{__python3} setup.py --with-libyaml build

+ %{?python3_other_pkgversion: CFLAGS="${RPM_OPT_FLAGS}" %{__python3_other} setup.py --with-libyaml build}

  

  

  %install

  %py3_install

+ %{?python3_other_pkgversion: %py3_other_install}

  

  

  %check

  %{__python3} setup.py test

+ %{?python3_other_pkgversion: %{__python3_other} setup.py test}

  

  

  %files -n python%{python3_pkgversion}-%{srcname}

@@ -86,7 +112,18 @@ 

  %{python3_sitearch}/*

  

  

+ %if 0%{?python3_other_pkgversion}

+ %files -n python%{python3_other_pkgversion}-%{srcname}

+ %license LICENSE

+ %doc CHANGES README examples

+ %{python3_other_sitearch}/*

+ %endif # python3_other_pkgversion

+ 

+ 

  %changelog

+ * Wed Jan 16 2019 Scott K Logan <logans@cottsay.net> - 3.11-3

+ - Add Python 3.6 sub-package to EPEL7

+ 

  * Thu Jan 14 2016 Orion Poplawski <orion@cora.nwra.com> - 3.11-2

  - Clean up spec, mention python version

  

The Python 3.6 prerequisites exist in EPEL7, and the Python 3.6 project I'm working with will require PyYAML.

@ttorling, is there anything I can do to help move this along?

Thanks!

I'm going to ask for the same changes - conditionalize the python3_other builds/package and move the BRs into the respective packages. Thanks.

rebased onto 82b92ba

a year ago

Done. Same changes, as requested. Tested with a mock build.

Thanks!

@orion have your concerns been address?

Pull-Request has been merged by ttorling

a year ago
Metadata