Accepting request 799972 from home:alois:branches:X11:Unity
- Use explicit python2 references - Spec cleanup OBS-URL: https://build.opensuse.org/request/show/799972 OBS-URL: https://build.opensuse.org/package/show/X11:Unity/evemu?expand=0&rev=10
This commit is contained in:
parent
d186869edb
commit
fbb1da71ff
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 4 07:11:48 UTC 2020 - Luigi Baldoni <aloisio@gmx.com>
|
||||||
|
|
||||||
|
- Use explicit python2 references
|
||||||
|
- Spec cleanup
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 12 12:43:56 UTC 2018 - sor.alexei@meowr.ru
|
Mon Mar 12 12:43:56 UTC 2018 - sor.alexei@meowr.ru
|
||||||
|
|
||||||
|
39
evemu.spec
39
evemu.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package evemu
|
# spec file for package evemu
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ Release: 0
|
|||||||
Summary: Input Event Device Emulation Library
|
Summary: Input Event Device Emulation Library
|
||||||
License: GPL-3.0-only
|
License: GPL-3.0-only
|
||||||
Group: Hardware/Other
|
Group: Hardware/Other
|
||||||
Url: https://freedesktop.org/wiki/Evemu
|
URL: https://freedesktop.org/wiki/Evemu
|
||||||
Source: https://freedesktop.org/software/%{name}/%{name}-%{version}.tar.xz
|
Source: https://freedesktop.org/software/%{name}/%{name}-%{version}.tar.xz
|
||||||
Source1: https://freedesktop.org/software/%{name}/%{name}-%{version}.tar.xz.sig
|
Source1: https://freedesktop.org/software/%{name}/%{name}-%{version}.tar.xz.sig
|
||||||
Source2: %{name}.keyring
|
Source2: %{name}.keyring
|
||||||
@ -32,7 +32,7 @@ BuildRequires: asciidoc
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: python-devel
|
BuildRequires: python2-devel
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: xmlto
|
BuildRequires: xmlto
|
||||||
BuildRequires: pkgconfig(libevdev) >= 1.2.99.902
|
BuildRequires: pkgconfig(libevdev) >= 1.2.99.902
|
||||||
@ -53,24 +53,15 @@ The evemu library and tools are used to describe devices, record
|
|||||||
data, create emulation devices and replay data from kernel evdev
|
data, create emulation devices and replay data from kernel evdev
|
||||||
(input event) devices.
|
(input event) devices.
|
||||||
|
|
||||||
%if 0%{?suse_version} >= 1500
|
|
||||||
%package -n python2-%{name}
|
%package -n python2-%{name}
|
||||||
%else
|
|
||||||
%package -n python-%{name}
|
|
||||||
%endif
|
|
||||||
Summary: Python2 bindings for evemu
|
Summary: Python2 bindings for evemu
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Requires: %{soname}%{sover} = %{version}
|
Requires: %{soname}%{sover} = %{version}
|
||||||
%if 0%{?suse_version} >= 1500
|
|
||||||
# python-evemu was last used in openSUSE Leap 42.3.
|
# python-evemu was last used in openSUSE Leap 42.3.
|
||||||
Provides: python-%{name} = %{version}-%{release}
|
Provides: python-%{name} = %{version}-%{release}
|
||||||
Obsoletes: python-%{name} < %{version}-%{release}
|
Obsoletes: python-%{name} < %{version}-%{release}
|
||||||
|
|
||||||
%description -n python2-%{name}
|
%description -n python2-%{name}
|
||||||
%else
|
|
||||||
|
|
||||||
%description -n python-%{name}
|
|
||||||
%endif
|
|
||||||
The evemu library and tools are used to describe devices, record
|
The evemu library and tools are used to describe devices, record
|
||||||
data, create emulation devices and replay data from kernel evdev
|
data, create emulation devices and replay data from kernel evdev
|
||||||
(input event) devices.
|
(input event) devices.
|
||||||
@ -103,7 +94,7 @@ data, create emulation devices and replay data from kernel evdev
|
|||||||
This package provides the development files.
|
This package provides the development files.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup
|
||||||
evdev_sover="$(basename "$(readlink -f %{_libdir}/libevdev.so)")"
|
evdev_sover="$(basename "$(readlink -f %{_libdir}/libevdev.so)")"
|
||||||
sed -i \
|
sed -i \
|
||||||
-e 's|\"%{soname}.so\"|\"%{soname}.so.%{sover}\"|' \
|
-e 's|\"%{soname}.so\"|\"%{soname}.so.%{sover}\"|' \
|
||||||
@ -136,43 +127,27 @@ rm -f %{buildroot}%{python_sitelib}/%{name}/*.pyo \
|
|||||||
|
|
||||||
%fdupes %{buildroot}%{_bindir}/
|
%fdupes %{buildroot}%{_bindir}/
|
||||||
%fdupes %{buildroot}%{_mandir}/
|
%fdupes %{buildroot}%{_mandir}/
|
||||||
|
%fdupes %{buildroot}%{python2_sitelib}
|
||||||
|
|
||||||
%post -n %{soname}%{sover} -p /sbin/ldconfig
|
%post -n %{soname}%{sover} -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n %{soname}%{sover} -p /sbin/ldconfig
|
%postun -n %{soname}%{sover} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%if 0%{?suse_version} >= 1500
|
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%else
|
|
||||||
%doc COPYING
|
|
||||||
%endif
|
|
||||||
%{_bindir}/%{name}-*
|
%{_bindir}/%{name}-*
|
||||||
%{_mandir}/man?/%{name}-*?%{?ext_man}
|
%{_mandir}/man?/%{name}-*?%{?ext_man}
|
||||||
|
|
||||||
%files -n %{soname}%{sover}
|
%files -n %{soname}%{sover}
|
||||||
%if 0%{?suse_version} >= 1500
|
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%else
|
|
||||||
%doc COPYING
|
|
||||||
%endif
|
|
||||||
%{_libdir}/%{soname}.so.%{sover}*
|
%{_libdir}/%{soname}.so.%{sover}*
|
||||||
|
|
||||||
%if 0%{?suse_version} >= 1500
|
|
||||||
%files -n python2-%{name}
|
%files -n python2-%{name}
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%else
|
%{python2_sitelib}/%{name}/
|
||||||
%files -n python-%{name}
|
|
||||||
%doc COPYING
|
|
||||||
%endif
|
|
||||||
%{python_sitelib}/%{name}/
|
|
||||||
|
|
||||||
%files -n python3-%{name}
|
%files -n python3-%{name}
|
||||||
%if 0%{?suse_version} >= 1500
|
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%else
|
|
||||||
%doc COPYING
|
|
||||||
%endif
|
|
||||||
%{python3_sitelib}/%{name}/
|
%{python3_sitelib}/%{name}/
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
|
Loading…
Reference in New Issue
Block a user