From 056dc2a1a6146453e28172107d442376a3fa2737 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 24 Jan 2018 06:43:35 +0100 Subject: [PATCH] remove useless %with_python3 Signed-off-by: Igor Gnatenko --- libxml2.spec | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/libxml2.spec b/libxml2.spec index 308ec2a..e632317 100644 --- a/libxml2.spec +++ b/libxml2.spec @@ -1,5 +1,3 @@ -%global with_python3 1 - Summary: Library providing XML and HTML support Name: libxml2 Version: 2.9.5 @@ -7,9 +5,7 @@ Release: 3%{?dist}%{?extra_release} License: MIT Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz BuildRequires: python2-devel -%if 0%{?with_python3} BuildRequires: python3-devel -%endif # with_python3 BuildRequires: zlib-devel BuildRequires: pkgconfig BuildRequires: xz-devel @@ -78,7 +74,6 @@ to read, modify and write XML and HTML files. There is DTDs support this includes parsing and validation even with complex DTDs, either at parse time or later once the document has been modified. -%if 0%{?with_python3} %package -n python3-%{name} Summary: Python 3 bindings for the libxml2 library Requires: libxml2 = %{version}-%{release} @@ -94,7 +89,6 @@ This library allows to manipulate XML files. It includes support to read, modify and write XML and HTML files. There is DTDs support this includes parsing and validation even with complex DTDs, either at parse time or later once the document has been modified. -%endif # with_python3 %prep %setup -q @@ -119,11 +113,9 @@ rm -fr %{buildroot} make install DESTDIR=%{buildroot} -%if 0%{?with_python3} make clean %configure --with-python=%{__python3} make install DESTDIR=%{buildroot} -%endif # with_python3 # multiarch crazyness on timestamp differences or Makefile/binaries for examples touch -m --reference=$RPM_BUILD_ROOT/%{_includedir}/libxml2/libxml/parser.h $RPM_BUILD_ROOT/%{_bindir}/xml2-config @@ -187,7 +179,6 @@ make runtests %doc doc/*.py %doc doc/python.html -%if 0%{?with_python3} %files -n python3-%{name} %{_libdir}/python3*/site-packages/libxml2.py* %{_libdir}/python3*/site-packages/drv_libxml2.py* @@ -197,8 +188,6 @@ make runtests %doc python/libxml2class.txt %doc py3doc/*.py %doc doc/python.html -%endif # with_python3 - %changelog * Tue Jan 09 2018 Iryna Shcherbina - 2.9.5-3