Sync from SUSE:SLFO:Main python-sip revision 991b1d2cffaa22fc0490200baee6e28f

This commit is contained in:
Adrian Schröter 2024-05-03 23:00:41 +02:00
commit 0904677191
4 changed files with 1202 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

3
README.SUSE Normal file
View File

@ -0,0 +1,3 @@
This is a meta package providing the preferred SIP version for the distribution.
It should always depend on the preferred numbered version of the SIP build tools, so
"python-sipX-devel" where "X" is the major version number.

1073
python-sip.changes Normal file

File diff suppressed because it is too large Load Diff

103
python-sip.spec Normal file
View File

@ -0,0 +1,103 @@
#
# spec file for package python-sip
#
# 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/
#
# Default is sip6 for all distributions. Be sure to branch both python-sip6 and python-sip into
# any project using this metapackge.
%define sipN sip6
# Assume that all installed python flavors have the same version
%define Nversion %(rpm -q --qf '%%{version}' --whatprovides $(echo %{python_module %{sipN}-devel}| cut -d " " -f 1))
%define skip_python2 1
%define plainpython python
%{?sle15_python_module_pythons}
Name: python-sip
Version: %{Nversion}
Release: 0
Summary: A Python bindings generator for C/C++ libraries
License: GPL-2.0-only OR GPL-3.0-only OR SUSE-SIP
Group: Development/Libraries/Python
URL: https://www.riverbankcomputing.com/software/sip
Source0: README.SUSE
BuildRequires: %{python_module %{sipN}-devel}
BuildRequires: python-rpm-macros
BuildArch: noarch
%requires_eq python-%{sipN}
%python_subpackages
%description
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.
%package devel
Summary: A Python bindings generator for C/C++ libraries
Group: Development/Libraries/Python
%requires_eq python-%{sipN}-devel
%description devel
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.
This package contains all the developer tools you need to create your
own sip bindings in the currently default version. Look for
%{python_prefix}-sip<N>-devel, if you need to build a package with a
specific version of SIP v<N>.
%package -n python-sip-doc
Summary: A Python bindings generator for C/C++ libraries -- common documentation
Group: Development/Libraries/Python
Provides: %{python_module sip-doc = %{version}-%{release}}
%requires_eq %{plainpython}-%{sipN}-doc
%description -n python-sip-doc
SIP is a tool that makes it very easy to create Python bindings for C
and C++ libraries. It was originally developed to create PyQt, the
Python bindings for the Qt toolkit, but can be used to create bindings
for any C or C++ library.
This package contains the documentation and example files in the
currently default version. Look for %{python_prefix}-sip<N>-devel,
if you need to build a package with a specific version of SIP v<N>.
%prep
%setup -q -T -c
cp %{SOURCE0} .
%build
:
%install
:
%if "%{sipN}" == "sip4"
# only sip4 still provides the old python-sip package
%files %{python_files}
%doc README.SUSE
%endif
%files %{python_files devel}
%doc README.SUSE
%files -n python-sip-doc
%doc README.SUSE
%changelog