2017-07-17 18:34:03 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-hupper
|
|
|
|
#
|
2018-12-04 13:32:51 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-07-17 18:34:03 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-04 13:32:51 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-07-17 18:34:03 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-hupper
|
|
|
|
Version: 1.0
|
|
|
|
Release: 0
|
2017-07-18 14:47:36 +00:00
|
|
|
Summary: An in-process file monitor
|
2017-07-17 18:34:03 +00:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
2018-12-04 14:24:20 +00:00
|
|
|
URL: https://pylonsproject.org/
|
2017-07-18 14:47:36 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/h/hupper/hupper-%{version}.tar.gz
|
2017-07-17 18:34:03 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2017-07-18 14:47:36 +00:00
|
|
|
Requires: python-watchdog
|
2018-12-04 14:24:20 +00:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
2017-07-18 14:47:36 +00:00
|
|
|
BuildArch: noarch
|
2017-07-17 18:34:03 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2017-07-18 14:47:36 +00:00
|
|
|
Hupper is an integrated process monitor that will track changes to any
|
|
|
|
imported Python files in sys.modules as well as custom paths.
|
|
|
|
When files are changed the process is restarted.
|
2017-07-17 18:34:03 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n hupper-%{version}
|
2017-07-18 14:47:36 +00:00
|
|
|
rm -rf src/hupper.egg-info
|
2017-07-17 18:34:03 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
2017-07-18 14:47:36 +00:00
|
|
|
%python_expand %fdupes -s %{buildroot}/%{$python_sitelib}
|
2017-07-17 18:34:03 +00:00
|
|
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/hupper
|
|
|
|
|
|
|
|
%post
|
|
|
|
%python_install_alternative hupper
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative hupper
|
|
|
|
|
|
|
|
%files %{python_files}
|
2018-12-04 14:24:20 +00:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc CHANGES.rst CONTRIBUTING.rst README.rst
|
2017-07-17 18:34:03 +00:00
|
|
|
%python_alternative %{_bindir}/hupper
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|