From 0703826825122b52a0c7523a9216faea0fc08852 Mon Sep 17 00:00:00 2001 From: lei_ju <983277505@qq.com> Date: Thu, 29 Oct 2020 10:37:29 +0800 Subject: [PATCH] remove python2 subpackage --- hivex.spec | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/hivex.spec b/hivex.spec index 131574b..0421071 100644 --- a/hivex.spec +++ b/hivex.spec @@ -6,11 +6,10 @@ Name: hivex Version: 1.3.17 -Release: 2 +Release: 3 Summary: Windows Registry "hive" extraction library License: LGPLv2 URL: http://libguestfs.org/ - Source0: http://libguestfs.org/download/hivex/%{name}-%{version}.tar.gz Source1: http://libguestfs.org/download/hivex/%{name}-%{version}.tar.gz.sig Source2: libguestfs.keyring @@ -22,7 +21,7 @@ BuildRequires: ocaml BuildRequires: ocaml-findlib-devel %endif -BuildRequires: python2-devel, python-unversioned-command, python3-devel, ruby-devel, rubygem-rake, rubygem(json), rubygem(minitest), rubygem(rdoc), readline-devel, libxml2-devel, gnupg2 +BuildRequires: python3-devel, ruby-devel, rubygem-rake, rubygem(json), rubygem(minitest), rubygem(rdoc), readline-devel, libxml2-devel, gnupg2 Provides: bundled(gnulib) @@ -88,18 +87,6 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $versio %description -n perl-%{name} Perl bindings for %{name} are included in perl-%{name}. - -%package -n python2-%{name} -Summary: Provide python 2 bindings for %{name} -Requires: %{name} = %{version}-%{release} - -Obsoletes: python-%{name} < %{version}-%{release} -Provides: python-%{name} = %{version}-%{release} - -%description -n python2-%{name} -Python 2 bindings for %{name} are included in python2-%{name}. - - %package -n python3-%{name} Summary: Provide python 3 bindings for %{name} Requires: %{name} = %{version}-%{release} @@ -165,7 +152,6 @@ cd python3 && make check && cd .. %{_libdir}/libhivex.so.* %exclude %{_libdir}/libhivex.la %exclude %{_libdir}/perl5/perllocal.pod -%exclude %{python2_sitearch}/libhivexmod.la %exclude %{python3_sitearch}/libhivexmod.la @@ -211,12 +197,6 @@ cd python3 && make check && cd .. %{perl_vendorarch}/* %{_bindir}/hivexregedit - -%files -n python2-%{name} -%{python2_sitearch}/hivex/ -%{python2_sitearch}/*.so - - %files -n python3-%{name} %{python3_sitearch}/hivex/ %{python3_sitearch}/*.so @@ -229,5 +209,8 @@ cd python3 && make check && cd .. %changelog +* Wed Oct 21 2020 leiju - 1.3.17-3 +- remove python2 subpackage + * Sat Nov 30 2019 jiaxiya - 1.3.17-2 - Package init