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