forked from pool/python-vdirsyncer
Accepting request 806924 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/806924 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vdirsyncer?expand=0&rev=22
This commit is contained in:
committed by
Git OBS Bridge
parent
8baa69c40c
commit
aa1bd196f3
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 18 09:10:46 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- %python3_only -> %python_alternative
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Apr 29 12:51:49 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
Wed Apr 29 12:51:49 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@@ -35,6 +35,7 @@ Patch0: python-vdirsyncer-fix-tests.patch
|
|||||||
Patch1: python-vdirsyncer-shift-deadline.patch
|
Patch1: python-vdirsyncer-shift-deadline.patch
|
||||||
BuildRequires: %{python_module setuptools_scm}
|
BuildRequires: %{python_module setuptools_scm}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
BuildRequires: pkgconfig(systemd)
|
BuildRequires: pkgconfig(systemd)
|
||||||
@@ -48,6 +49,8 @@ Requires: python-python-dateutil
|
|||||||
Requires: python-pytz
|
Requires: python-pytz
|
||||||
Requires: python-requests >= 2.4.1
|
Requires: python-requests >= 2.4.1
|
||||||
Requires: python-requests-toolbelt >= 0.4.0
|
Requires: python-requests-toolbelt >= 0.4.0
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
Recommends: python-requests-oauthlib
|
Recommends: python-requests-oauthlib
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
@@ -84,6 +87,7 @@ rm -rf vdirsyncer.egg-info
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/vdirsyncer
|
||||||
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_userunitdir}
|
mkdir -p %{buildroot}%{_userunitdir}
|
||||||
@@ -95,10 +99,16 @@ export DETERMINISTIC_TESTS=true
|
|||||||
# test_verbosity - click changed syntax and returns different quotes
|
# test_verbosity - click changed syntax and returns different quotes
|
||||||
%pytest -k 'not test_legacy_status and not test_open_graphical_browser and not test_verbosity'
|
%pytest -k 'not test_legacy_status and not test_open_graphical_browser and not test_verbosity'
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative vdirsyncer
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative vdirsyncer
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%python3_only %{_bindir}/vdirsyncer
|
%python_alternative %{_bindir}/vdirsyncer
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
%{_userunitdir}/vdirsyncer.service
|
%{_userunitdir}/vdirsyncer.service
|
||||||
%{_userunitdir}/vdirsyncer.timer
|
%{_userunitdir}/vdirsyncer.timer
|
||||||
|
Reference in New Issue
Block a user