@ -1,6 +1,5 @@
@@ -1,6 +1,5 @@
%global modname vobject
%global sum A python library for manipulating vCard and vCalendar files
%global with_python3 1
Name: python-vobject
Version: 0.9.6.1
@ -36,7 +35,6 @@ VObject is intended to be a full featured python library for parsing and
@@ -36,7 +35,6 @@ VObject is intended to be a full featured python library for parsing and
generating vCard and vCalendar files.
%if 0%{?with_python3}
%package -n python3-%{modname}
Summary: %{sum}
@ -51,7 +49,6 @@ BuildRequires: python3-dateutil
@@ -51,7 +49,6 @@ BuildRequires: python3-dateutil
%description -n python3-vobject
VObject is intended to be a full featured python library for parsing and
generating vCard and vCalendar files.
%endif
%prep
@ -60,26 +57,18 @@ sed -i -e 's| == 2.4.0||' setup.py
@@ -60,26 +57,18 @@ sed -i -e 's| == 2.4.0||' setup.py
rm vobject/win32tz.py
%build
%py2_build
%if 0%{?with_python3}
%py3_build
%endif
%{__python} setup.py build
%{__python3} setup.py build
%install
%py2_install
%if 0%{?with_python3}
%py3_install
%endif
%{__python} setup.py install --optimize 2 --root %{buildroot}
%{__python3} setup.py install --optimize 2 --root %{buildroot}
%check
%{__python2} setup.py test
# Currently failing
%if 0%{?with_python3}
%{__python3} setup.py test
%endif
%files -n python2-%{modname}
@ -90,7 +79,6 @@ rm vobject/win32tz.py
@@ -90,7 +79,6 @@ rm vobject/win32tz.py
%{python2_sitelib}/%{modname}-%{version}*
%if 0%{?with_python3}
%files -n python3-%{modname}
%doc README.md
# ACKNOWLEDGEMENTS.txt
@ -99,7 +87,6 @@ rm vobject/win32tz.py
@@ -99,7 +87,6 @@ rm vobject/win32tz.py
%{python3_sitelib}/%{modname}-%{version}-*
%{_bindir}/change_tz
%{_bindir}/ics_diff
%endif
%changelog