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:
parent
8e924ba84b
commit
a15df96056
@ -1,6 +1,12 @@
|
|||||||
|
%global python_support 1
|
||||||
|
|
||||||
|
%if 0%{?rhel} && 0%{?rhel} >= 10
|
||||||
|
%global python_support 0
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: libiptcdata
|
Name: libiptcdata
|
||||||
Version: 1.0.5
|
Version: 1.0.5
|
||||||
Release: 18%{?dist}
|
Release: 19%{?dist}
|
||||||
Summary: IPTC tag library
|
Summary: IPTC tag library
|
||||||
|
|
||||||
License: LGPL-2.0-only
|
License: LGPL-2.0-only
|
||||||
@ -14,8 +20,10 @@ BuildRequires: gettext
|
|||||||
BuildRequires: gettext-devel
|
BuildRequires: gettext-devel
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: gtk-doc
|
BuildRequires: gtk-doc
|
||||||
|
%if 0%{?python_support}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%description
|
%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
|
libiptcdata also includes a command-line utility for modifying the
|
||||||
metadata.
|
metadata.
|
||||||
|
|
||||||
|
%if 0%{?python_support}
|
||||||
%package -n python3-%{name}
|
%package -n python3-%{name}
|
||||||
Summary: Python bindings for libiptcdata
|
Summary: Python bindings for libiptcdata
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
@ -35,6 +44,7 @@ BuildRequires: make
|
|||||||
The libiptcdata-python package contains a Python module that allows Python
|
The libiptcdata-python package contains a Python module that allows Python
|
||||||
applications to use the libiptcdata API for reading and writing IPTC
|
applications to use the libiptcdata API for reading and writing IPTC
|
||||||
metadata in images.
|
metadata in images.
|
||||||
|
%endif
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Headers and libraries for libiptcdata application development
|
Summary: Headers and libraries for libiptcdata application development
|
||||||
@ -54,9 +64,13 @@ autoreconf -fiv
|
|||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
#configure --enable-gtk-doc --disable-python --disable-static
|
%if 0%{?python_support}
|
||||||
export PYTHON_VERSION=%python3_version
|
export PYTHON_VERSION=%python3_version
|
||||||
%configure --enable-gtk-doc --enable-python --disable-static
|
%configure --enable-gtk-doc --enable-python --disable-static
|
||||||
|
%else
|
||||||
|
%configure --enable-gtk-doc --disable-python --disable-static
|
||||||
|
%endif
|
||||||
|
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
|
|
||||||
@ -72,10 +86,12 @@ find %{buildroot} -name "*.la" -exec rm -f {} \;
|
|||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{_libdir}/lib*.so.*
|
%{_libdir}/lib*.so.*
|
||||||
|
|
||||||
|
%if 0%{?python_support}
|
||||||
%files -n python3-%{name}
|
%files -n python3-%{name}
|
||||||
%doc python/README
|
%doc python/README
|
||||||
%doc python/examples/*
|
%doc python/examples/*
|
||||||
%{python3_sitearch}/*.so
|
%{python3_sitearch}/*.so
|
||||||
|
%endif
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_libdir}/lib*.so
|
%{_libdir}/lib*.so
|
||||||
@ -85,6 +101,11 @@ find %{buildroot} -name "*.la" -exec rm -f {} \;
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.0.5-18
|
||||||
- Bump release for June 2024 mass rebuild
|
- Bump release for June 2024 mass rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user