File saltbundlepy-pyxattr.spec of Package saltbundlepy-pyxattr

# spec file for package saltbundlepy-pyxattr
# Copyright (c) 2021 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

%{?!saltbundlepy_module:%define saltbundlepy_module() saltbundlepy-%{**}}
%define pythons saltbundlepy

# Disable python bytecompile for all distros
# It's called explicitly in the spec
%global __brp_python_bytecompile %{nil}

%define github_url{mod_name}/releases/download
%global mod_name pyxattr

Name:           saltbundlepy-pyxattr
Version:        0.7.2
Release:        0
Summary:        Filesystem extended attributes for python
License:        LGPL-2.1-or-later
Group:          Development/Libraries/Python
Source0:        %{github_url}/v%{version}/%{mod_name}-%{version}.tar.gz
Source1:        %{github_url}/v%{version}/%{mod_name}-%{version}.tar.gz.asc
BuildRequires:  %{saltbundlepy_module devel}
BuildRequires:  %{saltbundlepy_module pytest}
BuildRequires:  %{saltbundlepy_module setuptools}
BuildRequires:  fdupes
BuildRequires:  gcc
%if "%_vendor" == "debbuild"
BuildRequires:  libattr1-dev
BuildRequires:  libattr-devel
BuildRequires:  saltbundlepy-rpm-macros

This is a C extension module for Python which
implements extended attributes manipulation. It is a wrapper on top
of the attr C library - see attr(5).

%autosetup -n pyxattr-%{version}


%pytest_arch tests

%python_expand %fdupes %{buildroot}%{$python_sitearch}

%files %{python_files}
%license COPYING
%doc NEWS

openSUSE Build Service is sponsored by