Files
python-saltext-apache/python-saltext-apache.spec

64 lines
2.0 KiB
RPMSpec
Raw Permalink Normal View History

2025-05-22 17:55:53 +02:00
#
# spec file for package python-saltext.apache
#
# Copyright (c) 2025 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-saltext-apache
Version: 1.0.0
Release: 0
Summary: Salt Extension for interacting with Apache
License: Apache-2.0
URL: https://github.com/salt-extensions/saltext-apache
Source: https://files.pythonhosted.org/packages/source/s/saltext.apache/saltext_apache-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 50.3.2}
BuildRequires: %{python_module setuptools_scm >= 3.4}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
# SECTION test requirements
BuildRequires: %{python_module salt >= 3006}
BuildRequires: %{python_module pytest >= 7.0.0}
BuildRequires: %{python_module pytest-salt-factories >= 1.0.0~rc21}
# /SECTION
Requires: python-salt >= 3006
BuildArch: noarch
%python_subpackages
%description
Salt Extension for interacting with Apache
%prep
%autosetup -p1 -n saltext_apache-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc CHANGELOG.md README.md NOTICE
%license LICENSE
%dir %{python_sitelib}/saltext
%{python_sitelib}/saltext/apache
%{python_sitelib}/saltext_apache-%{version}.dist-info
%changelog