Disable python support

This package is only in RHEL 10, because tracker-miners requires it and it doesn't need the Python bits.

Resolves: RHEL-52843
This commit is contained in:
Tomas Popela 2024-08-05 14:04:57 +02:00
parent 8e924ba84b
commit a15df96056

View File

@ -1,6 +1,12 @@
%global python_support 1
%if 0%{?rhel} && 0%{?rhel} >= 10
%global python_support 0
%endif
Name: libiptcdata
Version: 1.0.5
Release: 18%{?dist}
Release: 19%{?dist}
Summary: IPTC tag library
License: LGPL-2.0-only
@ -14,8 +20,10 @@ BuildRequires: gettext
BuildRequires: gettext-devel
BuildRequires: libtool
BuildRequires: gtk-doc
%if 0%{?python_support}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%endif
%description
@ -25,6 +33,7 @@ as captions, titles, locations, etc. in the headers of an image file.
libiptcdata also includes a command-line utility for modifying the
metadata.
%if 0%{?python_support}
%package -n python3-%{name}
Summary: Python bindings for libiptcdata
Requires: %{name}%{?_isa} = %{version}-%{release}
@ -35,6 +44,7 @@ BuildRequires: make
The libiptcdata-python package contains a Python module that allows Python
applications to use the libiptcdata API for reading and writing IPTC
metadata in images.
%endif
%package devel
Summary: Headers and libraries for libiptcdata application development
@ -54,9 +64,13 @@ autoreconf -fiv
%build
#configure --enable-gtk-doc --disable-python --disable-static
%if 0%{?python_support}
export PYTHON_VERSION=%python3_version
%configure --enable-gtk-doc --enable-python --disable-static
%else
%configure --enable-gtk-doc --disable-python --disable-static
%endif
%make_build
@ -72,10 +86,12 @@ find %{buildroot} -name "*.la" -exec rm -f {} \;
%{_bindir}/*
%{_libdir}/lib*.so.*
%if 0%{?python_support}
%files -n python3-%{name}
%doc python/README
%doc python/examples/*
%{python3_sitearch}/*.so
%endif
%files devel
%{_libdir}/lib*.so
@ -85,6 +101,11 @@ find %{buildroot} -name "*.la" -exec rm -f {} \;
%changelog
* Mon Aug 05 2024 Tomas Popela <tpopela@redhat.com> - 1.0.5-19
- Disable python support. This package is only in RHEL 10, because
tracker-miners requires it and it doesn't need the Python bits.
- Resolves: RHEL-52843
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.0.5-18
- Bump release for June 2024 mass rebuild