Projects
Kolab:Winterfell
python-icalendar
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 6
View file
python-icalendar.spec
Changed
@@ -1,5 +1,9 @@ %if 0%{?fedora} || 0%{?epel} || 0%{?rhel} > 7 %global with_python3 1 +%global python3_pkgversion 3 +%endif +%if 0%{?rhel} < 8 +%global with_python2 1 %endif Name: python-icalendar @@ -13,12 +17,14 @@ BuildArch: noarch +%if 0%{?with_python2} BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python2-pytz BuildRequires: python2-dateutil BuildRequires: python2-hypothesis BuildRequires: python2-pytest +%endif # if with_python3 %if 0%{?with_python3} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools @@ -39,6 +45,7 @@ %description %_description +%if 0%{?with_python2} %package -n python2-icalendar Summary: %summary Requires: python2-pytz @@ -46,6 +53,7 @@ %{?python_provide:%python_provide python2-icalendar} %description -n python2-icalendar %_description +%endif # with_python2 %if 0%{?with_python3} %package -n python3-icalendar @@ -75,7 +83,9 @@ %endif # with_python3 %build +%if 0%{?with_python2} %{__python2} setup.py build +%endif # with_python2 %if 0%{?with_python3} pushd %{py3dir} @@ -84,7 +94,9 @@ %endif # with_python3 %install +%if 0%{?with_python2} %{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT +%endif # with_python2 %if 0%{?with_python3} pushd %{py3dir} @@ -94,7 +106,9 @@ %check +%if 0%{?with_python2} %{__python2} -m pytest src/icalendar/tests +%endif # with_python2 %if 0%{?with_python3} pushd %{py3dir} @@ -102,6 +116,7 @@ popd %endif +%if 0%{?with_python2} %files -n python2-icalendar %doc README.rst CHANGES.rst LICENSE.rst %{python2_sitelib}/icalendar @@ -109,6 +124,7 @@ %if ! 0%{?with_python3} %{_bindir}/icalendar %endif +%endif # with_python2 %if 0%{?with_python3} %files -n python3-icalendar
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
.