Accepting request 628373 from devel:languages:python

- Remove devel dependency
- Use %license macro

OBS-URL: https://build.opensuse.org/request/show/628373
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-watchdog?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2018-08-24 15:01:31 +00:00 committed by Git OBS Bridge
commit f7fa9b79e0
2 changed files with 16 additions and 14 deletions

View File

@ -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 Sat Aug 12 22:10:43 UTC 2017 - jengelh@inai.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-watchdog # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -20,27 +20,24 @@
Name: python-watchdog Name: python-watchdog
Version: 0.8.3 Version: 0.8.3
Release: 0 Release: 0
Url: http://github.com/gorakhargosh/watchdog
Summary: Filesystem events monitoring Summary: Filesystem events monitoring
License: Apache-2.0 License: Apache-2.0
Group: Development/Languages/Python Group: Development/Languages/Python
URL: http://github.com/gorakhargosh/watchdog
Source: https://files.pythonhosted.org/packages/source/w/watchdog/watchdog-%{version}.tar.gz 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: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: python3-Sphinx BuildRequires: python3-Sphinx
# test requirements
BuildRequires: %{python_module pathtools}
BuildRequires: %{python_module pytest}
%ifpython2
Requires: python-Brownie
%endif
Requires: python-PyYAML Requires: python-PyYAML
Requires: python-argh Requires: python-argh
Requires: python-pathtools Requires: python-pathtools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
%ifpython2
Requires: python-Brownie
%endif
%python_subpackages %python_subpackages
%description %description
@ -65,20 +62,19 @@ cd docs && make html && rm -r build/html/.buildinfo build/html/objects.inv # Bui
%install %install
%python_install %python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version}
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-) %license COPYING LICENSE
%doc AUTHORS changelog.rst COPYING LICENSE MANIFEST.in README.rst %doc AUTHORS changelog.rst MANIFEST.in README.rst
%python3_only %{_bindir}/watchmedo %python3_only %{_bindir}/watchmedo
%{python_sitelib}/watchdog %{python_sitelib}/watchdog
%{python_sitelib}/watchdog-%{version}-py%{python_version}.egg-info %{python_sitelib}/watchdog-%{version}-py%{python_version}.egg-info
%files %{python_files doc} %files %{python_files doc}
%defattr(-,root,root,-)
%doc docs/build/html %doc docs/build/html
%changelog %changelog