Hello community, here is the log from the commit of package newt for openSUSE:Factory checked in at 2017-11-14 14:12:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/newt (Old) and /work/SRC/openSUSE:Factory/.newt.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "newt" Tue Nov 14 14:12:30 2017 rev:43 rq:540152 version:0.52.20 Changes: -------- --- /work/SRC/openSUSE:Factory/newt/newt.changes 2017-10-05 11:50:02.038479656 +0200 +++ /work/SRC/openSUSE:Factory/.newt.new/newt.changes 2017-11-14 14:12:31.281907231 +0100 @@ -1,0 +2,7 @@ +Wed Nov 8 16:43:04 UTC 2017 - mplus...@suse.com + +- Use current factory dependencies +- Always build python3 bindings +- Small cleanup with spec-clenaer + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ newt.spec ++++++ --- /var/tmp/diff_new_pack.qw5hR1/_old 2017-11-14 14:12:32.969845665 +0100 +++ /var/tmp/diff_new_pack.qw5hR1/_new 2017-11-14 14:12:32.973845519 +0100 @@ -16,12 +16,6 @@ # -%if 0%{?suse_version} > 1320 -%bcond_without python3 -%else -%bcond_with python3 -%endif - %define libname lib%{name} %define libsoname %{libname}0_52 Name: newt @@ -36,24 +30,20 @@ Source10: %{name}-rpmlintrc # needed for tutorial.pdf BuildRequires: docbook-toys -BuildRequires: pkg-config +BuildRequires: pkgconfig BuildRequires: popt-devel -BuildRequires: python-devel +BuildRequires: python3-devel BuildRequires: slang-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} < 1020 -BuildRequires: libpng-devel -%endif -%if 0%{?suse_version} > 1220 BuildRequires: texlive-courier BuildRequires: texlive-dvips BuildRequires: texlive-ec BuildRequires: texlive-helvetic BuildRequires: texlive-jadetex BuildRequires: texlive-times -%endif -%if %{with python3} -BuildRequires: python3-devel +%if 0%{?suse_version} > 1320 +BuildRequires: python2-devel +%else +BuildRequires: python-devel %endif %description @@ -104,9 +94,7 @@ License: LGPL-2.1+ Group: Documentation/Howto Recommends: %{name} = %{version} -%if 0%{?suse_version} > 1120 BuildArch: noarch -%endif %description doc This package contains a tutorial about the Newt windowing toolkit. @@ -135,20 +123,21 @@ check boxes, radio buttons, labels, plain text fields, scrollbars, etc., to text mode user interfaces. -%package -n python-%{name} +%package -n python2-%{name} Summary: Python bindings for newt -License: GPL-2.0 and GPL-2.0+ and LGPL-2.1+ +License: GPL-2.0 AND GPL-2.0+ AND LGPL-2.1+ Group: Development/Languages/Python Requires: %{name} = %{version} +Provides: python-%{name} = %{version} +Obsoletes: python-%{name} < %{version} Provides: %{name}-python = %{version} Obsoletes: %{name}-python < %{version} %py_requires -%description -n python-%{name} +%description -n python2-%{name} The python-newt package contains the Python bindings for the newt library providing a python API for creating text mode interfaces. -%if %{with python3} %package -n python3-%{name} Summary: Python 3 bindings for newt License: LGPL-2.1+ @@ -158,7 +147,6 @@ %description -n python3-%{name} The python3-newt package contains the Python 3 bindings for the newt library providing a python API for creating text mode interfaces. -%endif %prep %setup -q @@ -174,9 +162,7 @@ %install pyversions="python%{py_ver}" -%if %{with python3} pyversions="$pyversions python%{py3_ver}" -%endif make PYTHONVERS="$pyversions" instroot=%{buildroot} DESTDIR=%{buildroot} install install-sh # currently we don't support these languages for lang in ast bal sr@latin wo; do @@ -201,21 +187,15 @@ popd 1>/dev/null %find_lang %{name} -%if 0%{?suse_version} %py_compile %{buildroot}/%{python_sitearch} %py_compile -O %{buildroot}/%{python_sitearch} -%if %{with python3} %py3_compile %{buildroot}/%{python3_sitearch} %py3_compile -O %{buildroot}/%{python3_sitearch} -%endif -%endif %post -n %{libsoname} -p /sbin/ldconfig - %postun -n %{libsoname} -p /sbin/ldconfig %files -f %{name}.lang -%defattr (-,root,root) %dir %{_defaultdocdir}/%{name} %doc %{_defaultdocdir}/%{name}/COPYING %{_bindir}/whiptail @@ -227,35 +207,28 @@ %endif %files -n %{libsoname} -%defattr (-,root,root) %{_libdir}/%{libname}.so.* %files devel -%defattr (-,root,root) %{_includedir}/%{name}.h %{_libdir}/%{libname}.so %{_libdir}/pkgconfig/*.pc %files doc -%defattr (-,root,root) %doc %{_defaultdocdir}/%{name}/tutorial.* %files static -%defattr (-,root,root) %{_libdir}/%{libname}.a -%files -n python-%{name} -%defattr(-,root,root) +%files -n python2-%{name} %dir %{_defaultdocdir}/%{name}/examples %doc %{_defaultdocdir}/%{name}/examples/*.py %{py_sitedir}/* -%if %{with python3} %files -n python3-%{name} %doc peanuts.py popcorn.py %{python3_sitearch}/*.so %{python3_sitearch}/*.py* %{python3_sitearch}/__pycache__/*.py* -%endif %changelog