From 7e1c7a60918d1c01728febb7d4843b00a710f6a317de9c8c0b0988e667c18ce9 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Mon, 13 Nov 2017 13:13:29 +0000 Subject: [PATCH] - Rename python subpackage to python2 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/gpsd?expand=0&rev=105 --- gpsd.changes | 5 +++++ gpsd.spec | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/gpsd.changes b/gpsd.changes index b6d8929..8d0e2b0 100644 --- a/gpsd.changes +++ b/gpsd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Nov 13 13:12:40 UTC 2017 - mpluskal@suse.com + +- Rename python subpackage to python2 + ------------------------------------------------------------------- Thu Apr 6 20:56:37 UTC 2017 - tchvatal@suse.com diff --git a/gpsd.spec b/gpsd.spec index 1c2d456..b7a60b1 100644 --- a/gpsd.spec +++ b/gpsd.spec @@ -49,7 +49,7 @@ BuildRequires: pkgconfig(QtNetwork) >= 4.5.3 BuildRequires: pkgconfig(bluez) BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(libusb-1.0) -BuildRequires: pkgconfig(python) +BuildRequires: pkgconfig(python2) BuildRequires: pkgconfig(udev) Requires: udev Requires(pre): %fillup_prereq @@ -108,13 +108,14 @@ Group: Development/Libraries/Python This package provides the shared Qt library for gpsd and other GPS aware applications. -%package -n python-gpsd +%package -n python2-gpsd Summary: Client libraries in C and Python for talking to a running gpsd or GPS Group: Development/Libraries/Python +Provides: python-gpsd = %{version}-%{release} +Obsoletes: python-gpsd < %{version}-%{release} Requires: %{name} = %{version} -%py_requires -%description -n python-gpsd +%description -n python2-gpsd This package provides python modules and tools for the gpsd shared libraries. You will need to have gpsd installed for it to work. @@ -252,7 +253,7 @@ sed -i -e 's#Icon=.*/\([^/]\+\)\(\..\+\)#Icon=\1#' %{buildroot}%{_datadir}/appli %{_libdir}/pkgconfig/libgps*.pc %{_libdir}/pkgconfig/Qgpsmm.pc -%files -n python-gpsd +%files -n python2-gpsd %defattr(-,root,root) %{python_sitearch}/gps/