python-click/python-click.spec

107 lines
3 KiB
RPMSpec
Raw Normal View History

2025-02-11 08:43:19 +00:00
%define module click
Name: python-%{module}
2025-02-10 20:41:40 +00:00
Version: 7.1.2
Release: 1
Summary: A simple wrapper around optparse for powerful command line utilities
2025-02-10 20:41:40 +00:00
URL: https://palletsprojects.com/projects/click
#Source0: http://pypi.python.org/packages/source/c/%{module}/%{module}-%{version}.tar.gz
2025-02-11 08:24:16 +00:00
Source0: https://github.com/pallets/click/archive/%{version}/%{module}-%{version}.tar.gz
License: BSD
Group: Development/Python
BuildRequires: pythonegg(setuptools)
BuildRequires: pkgconfig(python)
Obsoletes: pythonegg(click) == 7.0.dev0
Obsoletes: python-click == 7.0.dev0
Provides: python-click == %{EVRD}
BuildArch: noarch
%description
Click is a Python package for creating beautiful command line interfaces
in a composable way with as little code as necessary. It's the "Command
Line Interface Creation Kit". It's highly configurable but comes with
sensible defaults out of the box.
It aims to make the process of writing command line tools quick and fun
while also preventing any frustration caused by the inability to
implement an intended CLI API.
%files
%doc docs/ examples/
2025-02-17 08:34:21 +00:00
%{py_sitedir}/click/*.py*
%{py_sitedir}/*.egg-info
#--------------------------------------------------
%package -n python3-%{module}
Summary: A simple wrapper around optparse for powerful command line utilities
BuildRequires: pkgconfig(python3)
BuildRequires: python3egg(setuptools)
%description -n python3-%{module}
Click is a Python package for creating beautiful command line interfaces
in a composable way with as little code as necessary. It's the "Command
Line Interface Creation Kit". It's highly configurable but comes with
sensible defaults out of the box.
It aims to make the process of writing command line tools quick and fun
while also preventing any frustration caused by the inability to
implement an intended CLI API.
%files -n python3-%{module}
%doc *.rst
2025-02-17 08:34:21 +00:00
%{py3_sitedir}/click/*.py*
%{py3_sitedir}/*.egg-info
#------------------------------------------
2025-02-10 20:41:40 +00:00
#--------------------------------------------------
%package -n python38-%{module}
Summary: A simple wrapper around optparse for powerful command line utilities
2025-02-11 12:03:31 +00:00
BuildRequires: pkgconfig(python-3.8)
2025-02-11 11:41:30 +00:00
BuildRequires: python38-setuptools
2025-02-10 20:41:40 +00:00
%description -n python38-%{module}
Click is a Python package for creating beautiful command line interfaces
in a composable way with as little code as necessary. It's the "Command
Line Interface Creation Kit". It's highly configurable but comes with
sensible defaults out of the box.
It aims to make the process of writing command line tools quick and fun
while also preventing any frustration caused by the inability to
implement an intended CLI API.
%files -n python38-%{module}
%doc *.rst
2025-02-17 08:34:21 +00:00
%{py38_sitedir}/click/*.py*
%{py38_sitedir}/*.egg-info
2025-02-10 20:41:40 +00:00
#------------------------------------------
%prep
%setup -qn %{module}-%{version}
rm -rf %{module}.egg-info
cp -a . %{py3dir}
2025-02-10 20:41:40 +00:00
cp -a . %{py38dir}
%build
%py2_build
#
pushd %{py3dir}
%py3_build
popd
2025-02-10 20:41:40 +00:00
pushd %{py38dir}
%py38_build
popd
%install
%py2_install
#
pushd %{py3dir}
%py3_install
popd
2025-02-10 20:41:40 +00:00
pushd %{py38dir}
%py38_install
popd