File python-grip.spec of Package python-grip

#
# spec file for package python-grip
#
# 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/
#


%define short_name grip
Name:             python-grip
Version:          4.6.2
Release:          0
Summary:          Render local readme files before sending off to GitHub
License:          MIT
URL:              http://github.com/joeyespo/grip
Source:           https://files.pythonhosted.org/packages/source/g/grip/grip-%{version}.tar.gz
BuildRequires:    python-rpm-macros
BuildRequires:    %{python_module setuptools}
BuildRequires:    fdupes
Requires:         python-docopt
Requires:         python-Flask
Requires:         python-Markdown
Requires:         python-path-and-address
Requires:         python-Pygments
Requires:         python-requests
Requires:         python-Werkzeug
Suggests:         python-responses
Requires(post):   update-alternatives
Requires(postun): update-alternatives
BuildArch:        noarch
%python_subpackages

%description
Render local readme files before sending off to GitHub.

%prep
%setup -q -n grip-%{version}

%build
%python_build

%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/grip
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%post
%python_install_alternative grip

%postun
%python_uninstall_alternative grip

%files %{python_files}
%doc AUTHORS.md CHANGES.md README.md
%python_alternative %{_bindir}/grip
%dir %{python_sitelib}/%{short_name}
%{python_sitelib}/%{short_name}/*
%dir %{python_sitelib}/%{short_name}-%{version}-*.egg-info
%{python_sitelib}/%{short_name}-%{version}-*.egg-info/*

%changelog
openSUSE Build Service is sponsored by