14
0

- 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:
Tomáš Chvátal
2018-12-06 14:25:49 +00:00
committed by Git OBS Bridge
parent 0990c45915
commit eda1f5f5ae
3 changed files with 11 additions and 14 deletions

View File

@@ -1,4 +0,0 @@
<services>
<service name="download_files" mode="disabled">
</service>
</services>

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Dec 6 14:25:23 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Remove useless service file
- Make the tests unconditional
- Fix the fdupes call
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 20 21:23:56 UTC 2018 - Hans-Peter Jansen <hpj@urpla.net> Tue Nov 20 21:23:56 UTC 2018 - Hans-Peter Jansen <hpj@urpla.net>

View File

@@ -17,17 +17,15 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-vobject
%global modname vobject %global modname vobject
Name: python-vobject
Version: 0.9.6.1 Version: 0.9.6.1
Release: 0 Release: 0
Summary: Python package for parsing and creating iCalendar and vCard files Summary: Python package for parsing and creating iCalendar and vCard files
License: Apache-2.0 License: Apache-2.0
Group: Development/Languages/Python Group: Development/Languages/Python
Url: http://eventable.github.io/%{modname}/ URL: http://eventable.github.io/%{modname}/
Source: https://pypi.io/packages/source/v/%{modname}/%{modname}-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/v/vobject/%{modname}-%{version}.tar.gz
BuildRequires: %{python_module PyICU} BuildRequires: %{python_module PyICU}
BuildRequires: %{python_module devel >= 2.7} BuildRequires: %{python_module devel >= 2.7}
BuildRequires: %{python_module python-dateutil >= 2.4.0} BuildRequires: %{python_module python-dateutil >= 2.4.0}
@@ -41,7 +39,6 @@ Requires(preun): update-alternatives
Recommends: python-PyICU Recommends: python-PyICU
Provides: %{modname} = %{version} Provides: %{modname} = %{version}
Obsoletes: %{modname} < 0.9.2 Obsoletes: %{modname} < 0.9.2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -64,12 +61,10 @@ sed -i 's/\r$//' ACKNOWLEDGEMENTS.txt
for p in change_tz ics_diff ; do for p in change_tz ics_diff ; do
%python_clone -a %{buildroot}%{_bindir}/$p %python_clone -a %{buildroot}%{_bindir}/$p
done done
%fdupes %{buildroot}%{_prefix} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check %check
%python_exec tests.py %python_exec tests.py
%endif
%post %post
%python_install_alternative change_tz %python_install_alternative change_tz
@@ -80,7 +75,6 @@ done
%python_uninstall_alternative ics_diff %python_uninstall_alternative ics_diff
%files %{python_files} %files %{python_files}
%defattr(-,root,root)
%license LICENSE-2.0.txt %license LICENSE-2.0.txt
%doc ACKNOWLEDGEMENTS.txt README.md %doc ACKNOWLEDGEMENTS.txt README.md
%python_alternative %{_bindir}/change_tz %python_alternative %{_bindir}/change_tz