From 11057d69ae6b87f6add6ee6dcaf0baff6e7e1580f944a59d065075723ea328fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 9 Aug 2018 10:18:50 +0000 Subject: [PATCH] - Remove devel dependency - Use %license macro OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-watchdog?expand=0&rev=10 --- python-watchdog.changes | 6 ++++++ python-watchdog.spec | 24 ++++++++++-------------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/python-watchdog.changes b/python-watchdog.changes index 03f08b2..cc904bf 100644 --- a/python-watchdog.changes +++ b/python-watchdog.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Aug 9 10:18:35 UTC 2018 - tchvatal@suse.com + +- Remove devel dependency +- Use %license macro + ------------------------------------------------------------------- Sat Aug 12 22:10:43 UTC 2017 - jengelh@inai.de diff --git a/python-watchdog.spec b/python-watchdog.spec index 7f46704..c018bd0 100644 --- a/python-watchdog.spec +++ b/python-watchdog.spec @@ -1,7 +1,7 @@ # # spec file for package python-watchdog # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,27 +20,24 @@ Name: python-watchdog Version: 0.8.3 Release: 0 -Url: http://github.com/gorakhargosh/watchdog Summary: Filesystem events monitoring License: Apache-2.0 Group: Development/Languages/Python +URL: http://github.com/gorakhargosh/watchdog Source: https://files.pythonhosted.org/packages/source/w/watchdog/watchdog-%{version}.tar.gz -BuildRequires: %{python_module devel} +BuildRequires: %{python_module pathtools} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: python3-Sphinx -# test requirements -BuildRequires: %{python_module pathtools} -BuildRequires: %{python_module pytest} -%ifpython2 -Requires: python-Brownie -%endif Requires: python-PyYAML Requires: python-argh Requires: python-pathtools -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +%ifpython2 +Requires: python-Brownie +%endif %python_subpackages %description @@ -65,20 +62,19 @@ cd docs && make html && rm -r build/html/.buildinfo build/html/objects.inv # Bui %install %python_install -%python_expand %fdupes -s %{buildroot}%{$python_sitelib} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} %files %{python_files} -%defattr(-,root,root,-) -%doc AUTHORS changelog.rst COPYING LICENSE MANIFEST.in README.rst +%license COPYING LICENSE +%doc AUTHORS changelog.rst MANIFEST.in README.rst %python3_only %{_bindir}/watchmedo %{python_sitelib}/watchdog %{python_sitelib}/watchdog-%{version}-py%{python_version}.egg-info %files %{python_files doc} -%defattr(-,root,root,-) %doc docs/build/html %changelog