Projects
Kolab:16:Testing:Candidate
python3-icalendar
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 2
View file
python-icalendar.spec
Changed
@@ -24,7 +24,7 @@ BuildRequires: python2-dateutil BuildRequires: python2-hypothesis BuildRequires: python2-pytest -%endif # if with_python3 +%endif %if 0%{?with_python3} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools @@ -32,7 +32,7 @@ BuildRequires: python%{python3_pkgversion}-dateutil BuildRequires: python%{python3_pkgversion}-hypothesis BuildRequires: python%{python3_pkgversion}-pytest -%endif # if with_python3 +%endif %global _description\ iCalendar specification (RFC 2445) defines calendaring format used\ @@ -53,7 +53,7 @@ %{?python_provide:%python_provide python2-icalendar} %description -n python2-icalendar %_description -%endif # with_python2 +%endif %if 0%{?with_python3} %package -n python3-icalendar @@ -68,7 +68,7 @@ This package contains the runtime components of setuptools, necessary to execute the software that requires pkg_resources.py. -%endif # with_python3 +%endif %prep %setup -q -n icalendar-%{version}%{?veradd} @@ -80,39 +80,42 @@ rm -rf %{py3dir} cp -a . %{py3dir} %{__sed} -i -e '/@unittest.expectedFailure/d' %{py3dir}/src/icalendar/tests/test_timezoned.py -%endif # with_python3 +%endif %build %if 0%{?with_python2} %{__python2} setup.py build -%endif # with_python2 +%endif %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py build popd -%endif # with_python3 +%endif %install %if 0%{?with_python2} %{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT -%endif # with_python2 +%endif %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT popd -%endif # with_python3 +%endif %check %if 0%{?with_python2} %{__python2} -m pytest src/icalendar/tests -%endif # with_python2 +%endif %if 0%{?with_python3} pushd %{py3dir} +%if 0%{?rhel} > 8 +%else %{__python3} -m pytest src/icalendar/tests +%endif popd %endif @@ -124,7 +127,7 @@ %if ! 0%{?with_python3} %{_bindir}/icalendar %endif -%endif # with_python2 +%endif %if 0%{?with_python3} %files -n python3-icalendar @@ -132,7 +135,7 @@ %{python3_sitelib}/icalendar %{python3_sitelib}/*.egg-info %{_bindir}/icalendar -%endif # with_python3 +%endif %changelog * Wed Mar 06 2019 Yatin Karel <ykarel@redhat.com> - 4.0.3-2
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.