#3 Drop unnecessary BR on python-pip
Merged 5 years ago by limb. Opened 5 years ago by ykarel.
rpms/ ykarel/python-icalendar master  into  master

file modified
+10 -4
@@ -1,10 +1,10 @@ 

- %if 0%{?fedora} || 0%{?epel}

+ %if 0%{?fedora} || 0%{?epel} || 0%{?rhel} > 7

  %global with_python3 1

  %endif

  

  Name:           python-icalendar

  Version:        4.0.3

- Release:        1%{?dist}

+ Release:        2%{?dist}

  Summary:        Parser/generator of iCalendar files following the RFC 2445

  

  License:        BSD
@@ -17,13 +17,11 @@ 

  BuildRequires:  python2-setuptools

  BuildRequires:  python2-pytz

  BuildRequires:  python2-dateutil

- BuildRequires:  python2-pip

  BuildRequires:  python2-hypothesis

  BuildRequires:  python2-pytest

  %if 0%{?with_python3}

  BuildRequires:  python3-devel

  BuildRequires:  python3-setuptools

- BuildRequires:  python3-pip

  BuildRequires:  python3-pytz

  BuildRequires:  python3-dateutil

  BuildRequires:  python3-hypothesis
@@ -107,6 +105,9 @@ 

  %doc README.rst CHANGES.rst LICENSE.rst

  %{python2_sitelib}/icalendar

  %{python2_sitelib}/*.egg-info

+ %if ! 0%{?with_python3}

+ %{_bindir}/icalendar

+ %endif

  

  %if 0%{?with_python3}

  %files -n python3-icalendar
@@ -117,6 +118,11 @@ 

  %endif # with_python3

  

  %changelog

+ * Wed Mar 06 2019 Yatin Karel <ykarel@redhat.com> - 4.0.3-2

+ - Drop unnecessary BR on python-pip

+ - Enable python3 build on RHEL > 7

+ - Include icalendar binary in py2 package when py3 disabled

+ 

  * Thu Jan 31 2019 Gwyn Ciesla <limburgher@gmail.com> 4.0.3-1

  - 4.0.3

  

python-pip is not required to build icalendar, drop it
as it's unnecessary exist.

Include icalendar binary in python2 subpackage when
python3 is not build.

Also enable python3 build in Rhel > 7.

Pull-Request has been merged by limb

5 years ago