Accepting request 800430 from X11:Unity
OBS-URL: https://build.opensuse.org/request/show/800430 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/evemu?expand=0&rev=5
This commit is contained in:
commit
8afc1e6a8e
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 5 10:55:57 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- Let distros decide if they still want to build python2 bindings
|
||||||
|
(bcond_without python2). Tumbleweed disables this by now.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon May 4 07:11:48 UTC 2020 - Luigi Baldoni <aloisio@gmx.com>
|
Mon May 4 07:11:48 UTC 2020 - Luigi Baldoni <aloisio@gmx.com>
|
||||||
|
|
||||||
|
17
evemu.spec
17
evemu.spec
@ -16,6 +16,9 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
# Let the distro decide if py2 support is still valid. TW disables it
|
||||||
|
%bcond_without python2
|
||||||
|
|
||||||
%define soname libevemu
|
%define soname libevemu
|
||||||
%define sover 3
|
%define sover 3
|
||||||
Name: evemu
|
Name: evemu
|
||||||
@ -32,7 +35,9 @@ BuildRequires: asciidoc
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
|
%if %{with python2}
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
|
%endif
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: xmlto
|
BuildRequires: xmlto
|
||||||
BuildRequires: pkgconfig(libevdev) >= 1.2.99.902
|
BuildRequires: pkgconfig(libevdev) >= 1.2.99.902
|
||||||
@ -103,7 +108,11 @@ sed -i \
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%global _configure ../configure
|
%global _configure ../configure
|
||||||
for py in python2 python3; do
|
%if %{with python2}
|
||||||
|
PYTHONS=python2
|
||||||
|
%endif
|
||||||
|
PYTHONS="$PYTHONS python3"
|
||||||
|
for py in $PYTHONS; do
|
||||||
export PYTHON=$py
|
export PYTHON=$py
|
||||||
mkdir -p build-$py
|
mkdir -p build-$py
|
||||||
pushd build-$py
|
pushd build-$py
|
||||||
@ -116,7 +125,9 @@ for py in python2 python3; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if %{with python2}
|
||||||
%make_install -C build-python2
|
%make_install -C build-python2
|
||||||
|
%endif
|
||||||
%make_install -C build-python3
|
%make_install -C build-python3
|
||||||
|
|
||||||
find %{buildroot} -type f -name "*.la" -delete -print
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
@ -127,7 +138,9 @@ rm -f %{buildroot}%{python_sitelib}/%{name}/*.pyo \
|
|||||||
|
|
||||||
%fdupes %{buildroot}%{_bindir}/
|
%fdupes %{buildroot}%{_bindir}/
|
||||||
%fdupes %{buildroot}%{_mandir}/
|
%fdupes %{buildroot}%{_mandir}/
|
||||||
|
%if %{with python2}
|
||||||
%fdupes %{buildroot}%{python2_sitelib}
|
%fdupes %{buildroot}%{python2_sitelib}
|
||||||
|
%endif
|
||||||
|
|
||||||
%post -n %{soname}%{sover} -p /sbin/ldconfig
|
%post -n %{soname}%{sover} -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -142,9 +155,11 @@ rm -f %{buildroot}%{python_sitelib}/%{name}/*.pyo \
|
|||||||
%license COPYING
|
%license COPYING
|
||||||
%{_libdir}/%{soname}.so.%{sover}*
|
%{_libdir}/%{soname}.so.%{sover}*
|
||||||
|
|
||||||
|
%if %{with python2}
|
||||||
%files -n python2-%{name}
|
%files -n python2-%{name}
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%{python2_sitelib}/%{name}/
|
%{python2_sitelib}/%{name}/
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n python3-%{name}
|
%files -n python3-%{name}
|
||||||
%license COPYING
|
%license COPYING
|
||||||
|
Loading…
Reference in New Issue
Block a user