forked from pool/python-sip4
Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| f926a5210c | |||
| 144101a837 |
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 25 12:16:08 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives on SLE-16-based and newer systems
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Jul 1 00:12:29 UTC 2023 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
Sat Jul 1 00:12:29 UTC 2023 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||||
|
|
||||||
|
|||||||
@@ -37,6 +37,12 @@
|
|||||||
# python-sip4-doc and python-sip4-common are flavorless
|
# python-sip4-doc and python-sip4-common are flavorless
|
||||||
%define oldpython python
|
%define oldpython python
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: python-%{pname}
|
Name: python-%{pname}
|
||||||
Version: 4.19.25
|
Version: 4.19.25
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -84,12 +90,17 @@ Requires: %{name} = %{version}
|
|||||||
Requires: %{name}-common = %{version}
|
Requires: %{name}-common = %{version}
|
||||||
Requires: c++_compiler
|
Requires: c++_compiler
|
||||||
Requires: python-devel
|
Requires: python-devel
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun): update-alternatives
|
|
||||||
Provides: python-%{mname}-bin = %{version}-%{release}
|
Provides: python-%{mname}-bin = %{version}-%{release}
|
||||||
Provides: python-%{mname}-devel = %{version}-%{release}
|
Provides: python-%{mname}-devel = %{version}-%{release}
|
||||||
Obsoletes: python-%{mname}-bin < %{version}
|
Obsoletes: python-%{mname}-bin < %{version}
|
||||||
Obsoletes: python-%{mname}-devel < %{version}
|
Obsoletes: python-%{mname}-devel < %{version}
|
||||||
|
%if %{with libalternatives}
|
||||||
|
BuildRequires: alts
|
||||||
|
Requires: alts
|
||||||
|
%else
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
%endif
|
||||||
%ifpython2
|
%ifpython2
|
||||||
Provides: %{oldpython}-%{mname}-bin = %{version}-%{release}
|
Provides: %{oldpython}-%{mname}-bin = %{version}-%{release}
|
||||||
Provides: %{oldpython}-%{mname}-devel = %{version}-%{release}
|
Provides: %{oldpython}-%{mname}-devel = %{version}-%{release}
|
||||||
@@ -163,7 +174,7 @@ $python ../configure.py --debug \
|
|||||||
LIBS+="-l$ldlibrary" \
|
LIBS+="-l$ldlibrary" \
|
||||||
-d %{$python_sitearch}
|
-d %{$python_sitearch}
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
# Point to the correct location for the documentation files
|
# Point to the correct location for the documentation files
|
||||||
cp ../README ./
|
cp ../README ./
|
||||||
@@ -193,7 +204,7 @@ $python ../configure.py --debug \
|
|||||||
--no-dist-info \
|
--no-dist-info \
|
||||||
-d %{$python_sitearch}
|
-d %{$python_sitearch}
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
@@ -248,6 +259,9 @@ grep '%%requires_%{python3_prefix}_sip_api' %{buildroot}%{_rpmconfigdir}/macros
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
mkdir -p %{buildroot}%{_datadir}/sip
|
mkdir -p %{buildroot}%{_datadir}/sip
|
||||||
|
|
||||||
|
%pre devel
|
||||||
|
%python_libalternatives_reset_alternative sip
|
||||||
|
|
||||||
%post devel
|
%post devel
|
||||||
%python_install_alternative sip
|
%python_install_alternative sip
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user