Remove the Python 2 subpackage (#1628188)

This commit is contained in:
Miro Hrončok 2019-01-05 00:26:49 +01:00
parent 98f988e601
commit 0b66b7cbc9

View File

@ -1,10 +1,6 @@
%if 0%{?rhel} <= 5
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
Name: libiptcdata
Version: 1.0.4
Release: 23%{?dist}
Release: 24%{?dist}
Summary: IPTC tag library
Group: Development/Libraries
@ -35,22 +31,6 @@ Requires: pkgconfig
The libiptcdata-devel package contains the libraries and include files
that you can use to develop libiptcdata applications.
%package -n python2-libiptcdata
%{?python_provide:%python_provide python2-libiptcdata}
# Remove before F30
Provides: %{name}-python = %{version}-%{release}
Provides: %{name}-python%{?_isa} = %{version}-%{release}
Obsoletes: %{name}-python < %{version}-%{release}
Summary: Python bindings for libiptcdata
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
BuildRequires: python2-devel
%description -n python2-libiptcdata
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.
%prep
%setup -q
# fix compatibility with gtk-doc 1.26
@ -58,14 +38,13 @@ gtkdocize
autoreconf -fiv
%build
%configure --enable-gtk-doc --enable-python --disable-static
%configure --enable-gtk-doc --disable-python --disable-static
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=%{buildroot} INSTALL="%{__install} -c -p" install
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.la
rm -f $RPM_BUILD_ROOT%{python_sitearch}/iptcdata.la
%find_lang %{name} --all-name
%post -p /sbin/ldconfig
@ -83,12 +62,11 @@ rm -f $RPM_BUILD_ROOT%{python_sitearch}/iptcdata.la
%{_includedir}/libiptcdata
%{_datadir}/gtk-doc/html/libiptcdata
%files -n python2-libiptcdata
%doc python/README
%doc python/examples/*
%{python2_sitearch}/*.so
%changelog
* Fri Jan 04 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.4-24
- Remove the Python 2 subpackage (#1628188)
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild