forked from pool/python-vobject
- Remove useless service file
- Make the tests unconditional - Fix the fdupes call OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vobject?expand=0&rev=9
This commit is contained in:
committed by
Git OBS Bridge
parent
0990c45915
commit
eda1f5f5ae
@@ -17,17 +17,15 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without test
|
||||
|
||||
Name: python-vobject
|
||||
%global modname vobject
|
||||
Name: python-vobject
|
||||
Version: 0.9.6.1
|
||||
Release: 0
|
||||
Summary: Python package for parsing and creating iCalendar and vCard files
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
Url: http://eventable.github.io/%{modname}/
|
||||
Source: https://pypi.io/packages/source/v/%{modname}/%{modname}-%{version}.tar.gz
|
||||
URL: http://eventable.github.io/%{modname}/
|
||||
Source: https://files.pythonhosted.org/packages/source/v/vobject/%{modname}-%{version}.tar.gz
|
||||
BuildRequires: %{python_module PyICU}
|
||||
BuildRequires: %{python_module devel >= 2.7}
|
||||
BuildRequires: %{python_module python-dateutil >= 2.4.0}
|
||||
@@ -41,7 +39,6 @@ Requires(preun): update-alternatives
|
||||
Recommends: python-PyICU
|
||||
Provides: %{modname} = %{version}
|
||||
Obsoletes: %{modname} < 0.9.2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -64,12 +61,10 @@ sed -i 's/\r$//' ACKNOWLEDGEMENTS.txt
|
||||
for p in change_tz ics_diff ; do
|
||||
%python_clone -a %{buildroot}%{_bindir}/$p
|
||||
done
|
||||
%fdupes %{buildroot}%{_prefix}
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%python_exec tests.py
|
||||
%endif
|
||||
|
||||
%post
|
||||
%python_install_alternative change_tz
|
||||
@@ -80,7 +75,6 @@ done
|
||||
%python_uninstall_alternative ics_diff
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE-2.0.txt
|
||||
%doc ACKNOWLEDGEMENTS.txt README.md
|
||||
%python_alternative %{_bindir}/change_tz
|
||||
|
||||
Reference in New Issue
Block a user