2018-11-16 18:17:44 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-localzone
|
|
|
|
|
#
|
2023-01-08 20:25:36 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2018-11-16 18:17:44 +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:38:40 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
2018-11-16 18:17:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
Name: python-localzone
|
2023-01-08 20:25:36 +00:00
|
|
|
Version: 0.9.8
|
2018-11-16 18:17:44 +00:00
|
|
|
Release: 0
|
2018-12-07 12:00:05 +00:00
|
|
|
Summary: A library for managing DNS zones
|
2018-12-04 14:19:44 +00:00
|
|
|
License: BSD-3-Clause
|
2018-11-16 18:17:44 +00:00
|
|
|
Group: Development/Languages/Python
|
2019-03-18 10:45:22 +00:00
|
|
|
URL: https://github.com/ags-slc/localzone
|
2021-01-18 20:28:08 +00:00
|
|
|
# The PyPI sdist does not provide the tests
|
|
|
|
|
Source: https://github.com/ags-slc/localzone/archive/v%{version}.tar.gz#/localzone-%{version}.tar.gz
|
2018-11-16 18:17:44 +00:00
|
|
|
BuildRequires: %{python_module dnspython}
|
2018-12-07 12:00:05 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2018-11-16 18:17:44 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: fdupes
|
2018-12-04 13:38:40 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-11-16 18:17:44 +00:00
|
|
|
Requires: python-dnspython
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A simple library for managing DNS zones.
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-01-18 20:28:08 +00:00
|
|
|
%autosetup -p1 -n localzone-%{version}
|
2018-11-16 18:17:44 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
2018-12-07 12:00:05 +00:00
|
|
|
%check
|
2020-04-15 09:29:58 +00:00
|
|
|
%pytest
|
2018-12-07 12:00:05 +00:00
|
|
|
|
2018-11-16 18:17:44 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%license LICENSE
|
2021-01-18 20:28:08 +00:00
|
|
|
%{python_sitelib}/localzone
|
|
|
|
|
%{python_sitelib}/localzone-%{version}*-info
|
2018-11-16 18:17:44 +00:00
|
|
|
|
|
|
|
|
%changelog
|