Hello community,

here is the log from the commit of package evemu for openSUSE:Factory checked 
in at 2016-08-05 18:16:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/evemu (Old)
 and      /work/SRC/openSUSE:Factory/.evemu.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "evemu"

Changes:
--------
--- /work/SRC/openSUSE:Factory/evemu/evemu.changes      2015-11-08 
11:26:03.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.evemu.new/evemu.changes 2016-08-05 
18:17:05.000000000 +0200
@@ -1,0 +2,12 @@
+Mon Aug  1 21:12:25 UTC 2016 - sor.ale...@meowr.ru
+
+- Fix python binding crashes.
+- Add python3-evemu package.
+- Remove "optimised" Python byte-code files.
+
+-------------------------------------------------------------------
+Mon Aug  1 11:10:55 UTC 2016 - jsl...@suse.com
+
+- run fdupes (on a per dir basis) to avoid 5 or so duplicates
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ evemu.spec ++++++
--- /var/tmp/diff_new_pack.WpaDQg/_old  2016-08-05 18:17:06.000000000 +0200
+++ /var/tmp/diff_new_pack.WpaDQg/_new  2016-08-05 18:17:06.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package evemu
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,11 +24,12 @@
 Summary:        Input Event Device Emulation Library
 License:        GPL-3.0
 Group:          Hardware/Other
-Url:            http://freedesktop.org/wiki/Evemu
-Source:         
http://archive.ubuntu.com/ubuntu/pool/universe/e/%{name}/%{name}_%{version}.orig.tar.xz
+Url:            https://freedesktop.org/wiki/Evemu
+Source:         
https://launchpad.net/ubuntu/+archive/primary/+files/%{name}_%{version}.orig.tar.xz
 BuildRequires:  asciidoc
+BuildRequires:  fdupes
 BuildRequires:  gcc-c++
-BuildRequires:  pkg-config
+BuildRequires:  pkgconfig
 BuildRequires:  python-devel
 BuildRequires:  python3-devel
 BuildRequires:  xmlto
@@ -62,6 +63,18 @@
 
 This package provides the Python2 bindings for evemu.
 
+%package -n python3-%{name}
+Summary:        Python3 bindings for evemu
+Group:          Development/Languages/Python
+Requires:       %{soname}%{sover} = %{version}
+
+%description -n python3-%{name}
+The evemu library and tools are used to describe devices, record
+data, create emulation devices and replay data from kernel evdev
+(input event) devices.
+
+This package provides the Python3 bindings for evemu.
+
 %package devel
 Summary:        Development files for evemu
 Group:          Development/Tools/Other
@@ -77,18 +90,39 @@
 
 %prep
 %setup -q
+evdev_sover="$(basename "$(readlink -f %{_libdir}/libevdev.so)")"
+sed -i \
+  -e 's|\"%{soname}.so\"|\"%{soname}.so.%{sover}\"|' \
+  -e "s|\"libevdev.so\"|\"$evdev_sover\"|"           \
+  python/%{name}/{base,const}.py
 
 %build
-%configure \
+%global _configure ../configure
+for py in python2 python3; do
+    export PYTHON=$py
+    mkdir -p build-$py
+    pushd build-$py
+    %configure \
   --disable-static       \
   --disable-silent-rules \
   --disable-tests
-make %{?_smp_mflags}
+    make %{?_smp_mflags}
+    popd
+done
 
 %install
-%make_install
+%make_install -C build-python2
+%make_install -C build-python3
+
 find %{buildroot} -type f -name "*.la" -delete -print
 
+# Remove useless "optimised" Python byte-code.
+rm -f %{buildroot}%{python_sitelib}/%{name}/*.pyo \
+  %{buildroot}%{python3_sitelib}/%{name}/__pycache__/*.opt-?.pyc
+
+%fdupes %{buildroot}%{_bindir}/
+%fdupes %{buildroot}%{_mandir}/
+
 %post -n %{soname}%{sover} -p /sbin/ldconfig
 
 %postun -n %{soname}%{sover} -p /sbin/ldconfig
@@ -109,6 +143,11 @@
 %doc COPYING
 %{python_sitelib}/%{name}/
 
+%files -n python3-%{name}
+%defattr(-,root,root)
+%doc COPYING
+%{python3_sitelib}/%{name}/
+
 %files devel
 %defattr(-,root,root)
 %{_includedir}/%{name}.h


Reply via email to