Hello community, here is the log from the commit of package fontforge for openSUSE:Factory checked in at 2019-11-08 15:21:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/fontforge (Old) and /work/SRC/openSUSE:Factory/.fontforge.new.2990 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "fontforge" Fri Nov 8 15:21:10 2019 rev:49 rq:745114 version:20190801 Changes: -------- --- /work/SRC/openSUSE:Factory/fontforge/fontforge.changes 2019-09-07 11:29:12.878465846 +0200 +++ /work/SRC/openSUSE:Factory/.fontforge.new.2990/fontforge.changes 2019-11-08 15:21:11.694707201 +0100 @@ -1,0 +2,6 @@ +Wed Oct 30 13:28:56 UTC 2019 - Ondřej Súkup <mimi...@gmail.com> + +- add python38_config.patch to build with python-3.8 +- spec-cleaned + +------------------------------------------------------------------- New: ---- python38_config.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ fontforge.spec ++++++ --- /var/tmp/diff_new_pack.tZuvsm/_old 2019-11-08 15:21:13.162708753 +0100 +++ /var/tmp/diff_new_pack.tZuvsm/_new 2019-11-08 15:21:13.162708753 +0100 @@ -21,8 +21,7 @@ Release: 0 Summary: A Font Editor License: GPL-3.0-or-later -Group: Productivity/Graphics/Vector Editors -Url: http://fontforge.org/ +URL: http://fontforge.org/ # Source: https://github.com/fontforge/fontforge/archive/%{version}.tar.gz # see bug 926061, fontforge-*-repacked.tar.xz does not contain fontforge-*/win/gold/libX11-*.noarch.rpm Source0: fontforge-%{version}-repacked.tar.xz @@ -30,6 +29,8 @@ # workardound for bug 930076, imho upstream should fix this # https://github.com/fontforge/fontforge/issues/2270 Patch0: fontforge-version.patch +# fix for build with python38 +Patch1: python38_config.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: cairo-devel @@ -54,7 +55,6 @@ BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xft) BuildRequires: pkgconfig(xi) -BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} > 1210 BuildRequires: libspiro-devel %endif @@ -67,7 +67,6 @@ %package doc Summary: Documentation for FontForge -Group: Documentation/HTML %if 0%{?suse_version} >= 1230 BuildArch: noarch %endif @@ -81,7 +80,6 @@ %package devel Summary: Include Files and Libraries mandatory for Development -Group: Development/Libraries/C and C++ Requires: %{name} = %{version} Requires: freetype2-devel @@ -96,6 +94,9 @@ %prep %setup -q %patch0 -p1 +%if 0%{?python3_version_nodots} >= 38 +%patch1 -p1 +%endif sed -i 's/\r$//' doc/html/{Big5.txt,corpchar.txt} %build @@ -108,21 +109,19 @@ make %{?_smp_mflags} %install -make DESTDIR=%{buildroot} install %{?_smp_mflags} +%make_install %suse_update_desktop_file -i org.fontforge.FontForge VectorGraphics %find_lang FontForge find %{buildroot} -type f -name "*.la" -delete -print %fdupes -s %{buildroot}%{_datadir}/%{name} %post -p /sbin/ldconfig - %postun -p /sbin/ldconfig %files -f FontForge.lang -%defattr(-,root,root) -%doc LICENSE COPYING.gplv3 +%license LICENSE COPYING.gplv3 %exclude %{_docdir}/%{name}/html -%{_mandir}/man1/*.1* +%{_mandir}/man1/*.1%{?ext_man} %{_bindir}/* %{_libdir}/lib*.so.* %{_datadir}/fontforge/ @@ -134,14 +133,14 @@ %{_datadir}/metainfo/org.fontforge.FontForge.*.xml %{_datadir}/pixmaps/org.fontforge.FontForge.* %{_datadir}/mime/packages/%{name}.xml +%dir %{_docdir}/fontforge %files doc -%defattr(-,root,root) -%doc AUTHORS LICENSE README.md +%license LICENSE +%doc AUTHORS README.md %doc %{_docdir}/%{name}/html %files devel -%defattr(-, root, root) %doc CONTRIBUTING.md %{_includedir}/fontforge/ %{_libdir}/pkgconfig/*.pc ++++++ python38_config.patch ++++++ Index: fontforge-20190801/m4/fontforge_arg_enable.m4 =================================================================== --- fontforge-20190801.orig/m4/fontforge_arg_enable.m4 +++ fontforge-20190801/m4/fontforge_arg_enable.m4 @@ -116,8 +116,8 @@ fi if test x"${i_do_have_python_scripting}" != xyes; then i_want_python_ver= else - PKG_CHECK_MODULES([PYTHON],[python-"${PYTHON_VERSION}"], dnl [PKG_CHECK_MODULES([PYTHONDEV],[python-"${PYTHON_VERSION}"],,[i_do_have_python_scripting=maybe])], - [PKG_CHECK_MODULES([PYTHONDEV],[python-"${PYTHON_VERSION}"],,[i_do_have_python_scripting=no])], + PKG_CHECK_MODULES([PYTHON],[python-"${PYTHON_VERSION}"-embed], dnl [PKG_CHECK_MODULES([PYTHONDEV],[python-"${PYTHON_VERSION}"-embed],,[i_do_have_python_scripting=maybe])], + [PKG_CHECK_MODULES([PYTHONDEV],[python-"${PYTHON_VERSION}"-embed],,[i_do_have_python_scripting=no])], [i_do_have_python_scripting=no]) dnl dnl TODO: have python3 AND python2, but only have python2 dev, but no python3 dev dnl if test x"${i_do_have_python_scripting}" = xmaybe; then