File python-ninja_syntax.spec of Package python-ninja_syntax
#
# spec file for package python-ninja_syntax
#
# 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 https://bugs.opensuse.org/
#
%define skip_python2 1
Name: python-ninja_syntax
Version: 1.7.2
Release: 0
Summary: Python module for generating .ninja files
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/ninja-build/ninja
Source0: https://files.pythonhosted.org/packages/source/n/ninja_syntax/ninja_syntax-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
Requires: ninja
BuildArch: noarch
%python_subpackages
%description
This module allows to generate .ninja files from python.
%prep
%autosetup -n ninja_syntax-%{version}
# remove shebang
sed -i "1d" ninja_syntax.py
%build
%python_build
%install
%python_install
%files %{python_files}
%pycache_only %{python_sitelib}/__pycache__
%{python_sitelib}/ninja_syntax.py
%{python_sitelib}/ninja_syntax-%{version}-py%{python_version}.egg-info
%changelog