Fix Provides/Obsoletes for the old python subpackage

An arch-less Provides is needed in the -python2 subpackage, but the
-python3 subpackage should not Provide/Obsolete the old python subpackage.
epel8
Zbigniew Jędrzejewski-Szmek 7 years ago
parent 637d548baa
commit 39907b427f

@ -38,7 +38,7 @@
Name: libsvm Name: libsvm
Version: 3.23 Version: 3.23
Release: 2%{?dist} Release: 3%{?dist}
Summary: A Library for Support Vector Machines Summary: A Library for Support Vector Machines
Group: Development/Libraries Group: Development/Libraries
@ -74,6 +74,7 @@ Install this package if you want to develop programs with libsvm.
%package -n %{python2_package_name} %package -n %{python2_package_name}
%{?python_provide:%python_provide python2-libsvm} %{?python_provide:%python_provide python2-libsvm}
Provides: %{name}-python%{?_isa} = %{version}-%{release} Provides: %{name}-python%{?_isa} = %{version}-%{release}
Provides: %{name}-python = %{version}-%{release}
Obsoletes: %{name}-python%{?_isa} < %{version}-%{release} Obsoletes: %{name}-python%{?_isa} < %{version}-%{release}
Summary: Python2 tools and interfaces for libsvm Summary: Python2 tools and interfaces for libsvm
Group: Development/Libraries Group: Development/Libraries
@ -90,8 +91,6 @@ programs with libsvm in Python2.
%if %{with python3} %if %{with python3}
%package -n python3-%{name} %package -n python3-%{name}
%{?python_provide:%python_provide python3-%{name}} %{?python_provide:%python_provide python3-%{name}}
Provides: %{name}-python%{?_isa} = %{version}-%{release}
Obsoletes: %{name}-python%{?_isa} < %{version}-%{release}
Summary: Python3 tools and interfaces for libsvm Summary: Python3 tools and interfaces for libsvm
Group: Development/Libraries Group: Development/Libraries
BuildRequires: python3-devel gawk BuildRequires: python3-devel gawk
@ -323,6 +322,9 @@ desktop-file-install --delete-original \
%{_datadir}/applications/*%{name}-svm-toy-qt.desktop %{_datadir}/applications/*%{name}-svm-toy-qt.desktop
%changelog %changelog
* Tue Aug 28 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.23-3
- Fix Provides/Obsoletes for old python subpackage
* Thu Jul 26 2018 Ding-Yi Chen <dchen@redhat.com> - 3.23-2 * Thu Jul 26 2018 Ding-Yi Chen <dchen@redhat.com> - 3.23-2
- Add -javadoc subpackage - Add -javadoc subpackage
- Use macro rhel instead of el_version - Use macro rhel instead of el_version

Loading…
Cancel
Save