Group :: Development/Python3
RPM: python3-module-gphoto2
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define pypi_name gphoto2
Name: python3-module-%pypi_name
Version: 2.5.0
Release: alt1
Summary: Python bindings to GPhoto libraries
Group: Development/Python3
License: GPL-3.0
Url: https://pypi.python.org/pypi/%pypi_name
Source: https://pypi.io/packages/source/g/%pypi_name/%pypi_name-%version.tar.gz
%define gphoto_ver 2.5.10
BuildRequires: libgphoto2-devel >= %gphoto_ver swig
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3(wheel) python3(setuptools)
%description
python-gphoto2 is a comprehensive Python3 interface (or binding) to
libgphoto2_. It is built using SWIG_ to automatically generate the
interface code. This gives direct access to nearly all the libgphoto2_
functions, but sometimes in a rather un-Pythonic manner.
%prep
%setup -n %pypi_name-%version
%build
%pyproject_build
%install
%pyproject_install
%files
%python3_sitelibdir/%pypi_name/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}
%doc README.rst
%changelog
…
Todas as alterações você pod ver aqui
Name: python3-module-%pypi_name
Version: 2.5.0
Release: alt1
Summary: Python bindings to GPhoto libraries
Group: Development/Python3
License: GPL-3.0
Url: https://pypi.python.org/pypi/%pypi_name
Source: https://pypi.io/packages/source/g/%pypi_name/%pypi_name-%version.tar.gz
%define gphoto_ver 2.5.10
BuildRequires: libgphoto2-devel >= %gphoto_ver swig
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3(wheel) python3(setuptools)
%description
python-gphoto2 is a comprehensive Python3 interface (or binding) to
libgphoto2_. It is built using SWIG_ to automatically generate the
interface code. This gives direct access to nearly all the libgphoto2_
functions, but sometimes in a rather un-Pythonic manner.
%prep
%setup -n %pypi_name-%version
%build
%pyproject_build
%install
%pyproject_install
%files
%python3_sitelibdir/%pypi_name/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}
%doc README.rst
%changelog
…
Todas as alterações você pod ver aqui