Hello community, here is the log from the commit of package libbraille for openSUSE:Factory checked in at 2020-03-19 19:45:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libbraille (Old) and /work/SRC/openSUSE:Factory/.libbraille.new.3160 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libbraille" Thu Mar 19 19:45:18 2020 rev:15 rq:785865 version:0.19.0 Changes: -------- --- /work/SRC/openSUSE:Factory/libbraille/libbraille.changes 2018-04-22 14:29:27.523074586 +0200 +++ /work/SRC/openSUSE:Factory/.libbraille.new.3160/libbraille.changes 2020-03-19 19:49:07.252143295 +0100 @@ -1,0 +2,6 @@ +Tue Mar 17 09:48:54 UTC 2020 - Tomáš Chvátal <[email protected]> + +- Fix building with py2 directly only +- Convert to pkgconf style dependencies + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libbraille.spec ++++++ --- /var/tmp/diff_new_pack.8M1LF7/_old 2020-03-19 19:49:07.944143696 +0100 +++ /var/tmp/diff_new_pack.8M1LF7/_new 2020-03-19 19:49:07.952143700 +0100 @@ -1,7 +1,7 @@ # # spec file for package libbraille # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -21,18 +21,18 @@ Release: 0 Summary: Access to Braille displays and terminals License: LGPL-2.1-only -Group: Development/Libraries/C and C++ URL: https://sourceforge.net/projects/libbraille/files/libbraille/ Source: http://downloads.sourceforge.net/project/libbraille/libbraille/libbraille-%{version}/libbraille-%{version}.tar.gz # PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches Patch0: libbraille-0.19.0-visibility.patch BuildRequires: gcc-c++ -BuildRequires: glib2-devel -BuildRequires: gtk2-devel BuildRequires: libtool BuildRequires: libusb-devel -BuildRequires: python-devel +BuildRequires: pkgconfig BuildRequires: swig +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(gtk+-2.0) +BuildRequires: pkgconfig(python2) %description Libbraille is a computer shared library which makes it possible to @@ -42,9 +42,8 @@ %package fake Summary: Fake graphical display for libbraille -Group: Development/Libraries/C and C++ Requires: %{name} = %{version} -Supplements: packageand(%{name}:gtk2) +Supplements: (%{name} and gtk2) %description fake Libbraille is a computer shared library which makes it possible to @@ -56,7 +55,6 @@ %package devel Summary: Development files for libbraille -Group: Development/Libraries/C and C++ Requires: %{name} = %{version} %description devel @@ -65,13 +63,14 @@ write text on the display, directly draw dots, or get the value of keys pressed on the Braille keyboard. -%package -n python-braille +%package -n python2-braille Summary: Python bindings for libbraille -Group: Development/Libraries/Python Provides: %{name}-python = %{version} Obsoletes: %{name}-python < %{version} +Provides: python-braille = %{version}-%{release} +Obsoletes: python-braille < %{version}-%{release} -%description -n python-braille +%description -n python2-braille Libbraille is a computer shared library which makes it possible to develop for Braille displays. It provides an API to write text on the display, directly draw dots, or get the value of @@ -79,38 +78,30 @@ %prep %setup -q -%patch0 -p0 +%patch0 %build autoreconf -fi (cd libltdl; autoreconf -fi) -CFLAGS="%{optflags} -fno-strict-aliasing" -CXXFLAGS="%{optflags} -fno-strict-aliasing" -%if 0%{?suse_version} > 1000 -CFLAGS="$CFLAGS -fstack-protector" -CXXFLAGS="$CXXFLAGS -fstack-protector" -%endif - -export CFLAGS -export CXXFLAGS - -%configure --disable-static --disable-rpath \ +export CFLAGS="%{optflags} -fno-strict-aliasing " +export CXXFLAGS="%{optflags} -fno-strict-aliasing" +%configure \ + --disable-static \ + --disable-rpath \ --enable-hidden-symbols \ --enable-fake \ --enable-usb \ --enable-python -make %{?_smp_mflags} +%make_build %install -%makeinstall +%make_install find %{buildroot} -type f -name "*.la" -delete -print %post -p /sbin/ldconfig - %postun -p /sbin/ldconfig %files -%defattr(-, root, root, 0755) %license COPYING %doc AUTHORS ChangeLog README TODO %config(noreplace) %{_sysconfdir}/libbraille.conf @@ -122,16 +113,13 @@ %exclude %{_libdir}/libbraille/fake-0.so.* %files fake -%defattr(-, root, root) %{_libdir}/libbraille/fake-0.so.* -%files -n python-braille -%defattr(-, root, root) -%{python_sitearch}/_braille.so* -%{python_sitelib}/braille.py* +%files -n python2-braille +%{python2_sitearch}/_braille.so* +%{python2_sitelib}/braille.py* %files devel -%defattr(-, root, root, 0755) %{_includedir}/*.h %{_libdir}/*.so %{_libdir}/libbraille/*.so
