bot: rpm5 -> rpm4 (10) [rosa2019.05]

(10) rosa2019.05: %py_ -> %py2_, %{py_ -> %{py2_

(9): Adopt spec for enabled byte compiling in Python

These automatic changes are done by scripts *rpm5-to-rpm4.sh at https://gitlab.com/abf-mirror/abf-mirror-scripts
The goal is to adopt specs for RPM 4 to which ROSA 2019.1 has migrated from RPM 5, but keep compatibility with RPM 5.
Details about migration are here: https://wiki.rosalab.ru/ru/index.php/Переход_ROSA_с_RPM_5_на_RPM_4
Contact m.novosyolov@rosalinux.ru in case of problems
This commit is contained in:
NixTux Commit Bot 2020-04-15 22:48:19 +03:00
parent 8667eb81a6
commit 1e21835269

View file

@ -27,7 +27,7 @@
%define staticname %mklibname graphviz -d -s
%if %{_use_internal_dependency_generator}
%define __noautoreq '/usr/bin/lua'
%global __requires_exclude '/usr/bin/lua'
%endif
Summary: Graph visualization tools
@ -232,7 +232,7 @@ This package provides the Python extension for %{name}.
%files -n python-graphviz
%{_libdir}/graphviz/python
%{py_platsitedir}/*
%{py2_platsitedir}/*
#-------------------------------------------------------------------------
@ -382,7 +382,7 @@ Static development package for %{name}.
%build
autoreconf -fi
%configure2_5x \
%configure \
--with-x \
%if %{without static}
--disable-static \
@ -420,4 +420,3 @@ autoreconf -fi
install -d -m 755 %{buildroot}%{_docdir}
mv %{buildroot}%{_datadir}/%{name}/doc %{buildroot}%{_docdir}/%{name}
mv %{buildroot}%{_datadir}/%{name}/demo %{buildroot}%{_docdir}/%{name}