sip6/sip6.spec
2021-07-20 19:59:15 -04:00

55 lines
1.5 KiB
RPMSpec

%global pypi_name sip
Name: sip6
Version: 6.1.1
Release: 1%{?dist}
Summary: SIP - Python/C++ Bindings Generator
%py_provides python3-sip6
# Remove when F34 is EOL
Provides: sip5%{?_isa} = %{version}-%{release}
Obsoletes: sip5 < 6.0.0
# code_generator/parser.{c.h} is GPLv2+ with exceptions (bison)
License: (GPLv2 or GPLv3) and (GPLv2+ with exceptions)
URL: https://www.riverbankcomputing.com/software/sip
Source0: %{pypi_source}
# Enable sip to work on Python 3.10 (already done upstream in next release)
Patch0: python3.10.patch
BuildRequires: gcc
BuildRequires: python3-devel
BuildRequires: %{py3_dist setuptools toml}
%global _description %{expand:
SIP is a collection of tools that makes it very easy to create Python bindings
for C and C++ libraries. It was originally developed in 1998 to create PyQt,
the Python bindings for the Qt toolkit, but can be used to create bindings for
any C or C++ library. For example it is also used to generate wxPython, the
Python bindings for wxWidgets.}
%description %_description
%prep
%autosetup -n %{pypi_name}-%{version} -p 1
%build
%py3_build
%install
%py3_install
%check
%py3_check_import sipbuild sipbuild.distinfo sipbuild.module sipbuild.tools
%files
%doc README
%license LICENSE LICENSE-GPL2 LICENSE-GPL3
%{_bindir}/sip*
%{python3_sitearch}/sip-*
%{python3_sitearch}/sipbuild/
%changelog
* Thu Jul 08 2021 Scott Talbert <swt@techie.net> - 6.1.1-1
- Initial package.