Dirk Stoecker 2012-04-23 11:09:15 +00:00 committed by Git OBS Bridge
parent 93f07dac56
commit a4c55de597
4 changed files with 63 additions and 35 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a67d7db1533d0d7f497a1fa8efab7ed465add117bb1426bc8159e0fb48a1d442
size 1301001

3
gpsd-3.5.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b17143bcbb318147a807ece52045b618b6a1d37aab254f3db0d9fac72952e99d
size 1183060

View File

@ -1,13 +0,0 @@
diff --git a/Makefile.am b/Makefile.am
index 71860dc..9af87df 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -64,7 +64,7 @@ PYTHONMODULES_DIST = gps/__init__.py gps/misc.py gps/fake.py gps/gps.py gps/clie
PYTHONPAGES_DIST = gpsprof.1 gpsfake.1 gpscat.1 xgpsspeed.1 xgps.1
if HAVE_PYTHON
-pyexec_PYTHON = gpscap.py
+python_PYTHON = gpscap.py
PYTHONPAGES = $(PYTHONPAGES_DIST)
endif

View File

@ -1,7 +1,7 @@
# #
# spec file for package gpsd # spec file for package gpsd
# #
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# 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
@ -15,20 +15,27 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
Name: gpsd Name: gpsd
Summary: Service daemon for mediating access to a GPS Summary: Service daemon for mediating access to a GPS
License: BSD-3-Clause License: BSD-3-Clause
Url: http://gpsd.berlios.de/
Group: Hardware/Other Group: Hardware/Other
Version: 2.96 Url: http://www.catb.org/gpsd/
Version: 3.5
Release: 0 Release: 0
%define libgps libgps20 %define libgps libgps20
%define libQgps libQgpsmm20
Requires: udev Requires: udev
PreReq: coreutils %fillup_prereq PreReq: coreutils %fillup_prereq
BuildRequires: automake BuildRequires: bluez-devel
BuildRequires: chrpath
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: libcap-devel
BuildRequires: libqt4-devel >= 4.5.3
BuildRequires: libusb-1_0-devel
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: scons >= 2.0.1
BuildRequires: udev BuildRequires: udev
BuildRequires: update-desktop-files BuildRequires: update-desktop-files
BuildRequires: xmlto BuildRequires: xmlto
@ -46,7 +53,6 @@ Source4: gpsd.xpm
Source5: xgps.desktop Source5: xgps.desktop
Source6: xgpsspeed.desktop Source6: xgpsspeed.desktop
Patch0: gpsd-fix-shebang.patch Patch0: gpsd-fix-shebang.patch
Patch1: gpsd-fix-pythondir.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1110 %if 0%{?suse_version} > 1110
%else %else
@ -90,8 +96,9 @@ Authors:
Summary: Client libraries in C and Python for talking to a running gpsd or GPS Summary: Client libraries in C and Python for talking to a running gpsd or GPS
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %name = %version Requires: %name = %version
Requires: pkgconfig
Requires: python-curses
Requires: python-gpsd = %version Requires: python-gpsd = %version
Requires: pkgconfig, python-curses
%description devel %description devel
This package provides C header files for the gpsd shared libraries that This package provides C header files for the gpsd shared libraries that
@ -112,7 +119,7 @@ Authors:
Ville Nuorvala <vnuorval@tcs.hut.fi> Ville Nuorvala <vnuorval@tcs.hut.fi>
%package -n libgps20 %package -n %libgps
Summary: Shared library for GPS applications Summary: Shared library for GPS applications
Group: Development/Libraries/Python Group: Development/Libraries/Python
@ -133,6 +140,27 @@ Authors:
Ville Nuorvala <vnuorval@tcs.hut.fi> Ville Nuorvala <vnuorval@tcs.hut.fi>
%package -n %libQgps
Summary: Shared Qt library for GPS applications
Group: Development/Libraries/Python
%description -n %libQgps
This package provides the shared Qt library for gpsd and other GPS aware
applications.
Authors:
--------
Remco Treffkorn <remco@rvt.com>
Derrick J. Brashear <shadow@dementia.org>
Russ Nelson <nelson@crynwyr.com>
Eric S. Raymond <esr@thyrsus.com>
Gary E. Miller <gem@rellim.com>
Jeff Francis <jeff@gritch.org>
Amaury Jacquot <sxpert@esitcom.org>
Chris Kuethe <chris.kuethe@gmail.com>
Ville Nuorvala <vnuorval@tcs.hut.fi>
%package -n python-gpsd %package -n python-gpsd
Summary: Client libraries in C and Python for talking to a running gpsd or GPS Summary: Client libraries in C and Python for talking to a running gpsd or GPS
Group: Development/Libraries/Python Group: Development/Libraries/Python
@ -157,6 +185,7 @@ Authors:
%package clients %package clients
Summary: Clients for gpsd with an X interface Summary: Clients for gpsd with an X interface
Group: Hardware/Other
Requires: python-gtk Requires: python-gtk
%description clients %description clients
@ -189,18 +218,12 @@ Authors:
%prep %prep
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
%patch1 -p1
%build %build
%configure --disable-static \ scons prefix=%{_prefix} libdir=%{_libdir} strip=False
%if 0%{?suse_version} > 1020
--enable-dbus \
%endif
--enable-garmintxt
%__make %{?jobs:-j%jobs}
%install %install
%makeinstall DESTDIR=%{buildroot} scons prefix=%{_prefix} libdir=%{_libdir} strip=False install
install -d -m 755 %{buildroot}/lib/udev install -d -m 755 %{buildroot}/lib/udev
install -d -m 755 %{buildroot}/lib/udev/rules.d install -d -m 755 %{buildroot}/lib/udev/rules.d
install -d -m 755 %{buildroot}/var/adm/fillup-templates install -d -m 755 %{buildroot}/var/adm/fillup-templates
@ -208,7 +231,6 @@ install -d -m 755 %{buildroot}%{_datadir}/{applications,pixmaps}
install -m 644 %{SOURCE1} %{buildroot}/lib/udev/rules.d/51-gpsd.rules install -m 644 %{SOURCE1} %{buildroot}/lib/udev/rules.d/51-gpsd.rules
install -m 755 %{SOURCE2} %{buildroot}/lib/udev/gpsd.sh install -m 755 %{SOURCE2} %{buildroot}/lib/udev/gpsd.sh
install -m 644 %{SOURCE3} %{buildroot}/var/adm/fillup-templates install -m 644 %{SOURCE3} %{buildroot}/var/adm/fillup-templates
rm -f %{buildroot}%{_libdir}/libgps.la %{buildroot}%{_libdir}/libgpsd.la
if [ -f %{buildroot}%{python_sitearch}/*.egg-info ] ; then if [ -f %{buildroot}%{python_sitearch}/*.egg-info ] ; then
rm -f %{buildroot}%{python_sitearch}/*.egg-info rm -f %{buildroot}%{python_sitearch}/*.egg-info
fi fi
@ -223,25 +245,35 @@ install -m 644 %{SOURCE6} %{buildroot}%{_datadir}/applications/
%if 0%{?suse_version} > 1020 %if 0%{?suse_version} > 1020
%fdupes -s %buildroot %fdupes -s %buildroot
%endif %endif
chrpath -r %{_libdir} %{buildroot}%{python_sitearch}/gps/*.so
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
%post %post
/sbin/ldconfig
%fillup_only -n gpsd %fillup_only -n gpsd
%postun -p /sbin/ldconfig
%post -n %libgps -p /sbin/ldconfig %post -n %libgps -p /sbin/ldconfig
%postun -n %libgps -p /sbin/ldconfig %postun -n %libgps -p /sbin/ldconfig
%post -n %libQgps -p /sbin/ldconfig
%postun -n %libQgps -p /sbin/ldconfig
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc README INSTALL COPYING gpsd.php %doc README INSTALL COPYING gpsd.php
%{_mandir}/man?/gpsd.* %{_mandir}/man?/gpsd.*
%{_mandir}/man?/gpsdctl.*
%{_mandir}/man?/gpsctl.* %{_mandir}/man?/gpsctl.*
/lib/udev/gpsd.sh /lib/udev/gpsd.sh
/lib/udev/rules.d/* /lib/udev/rules.d/*
%{_sbindir}/gpsd %{_sbindir}/gpsd
%{_sbindir}/gpsdctl
%{_bindir}/gpsctl %{_bindir}/gpsctl
%{_libdir}/libgpsd.so.* %{_libdir}/libgpsd.so.*
/var/adm/fillup-templates/sysconfig.gpsd /var/adm/fillup-templates/sysconfig.gpsd
@ -250,14 +282,20 @@ rm -rf %{buildroot}
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libgps.so.* %{_libdir}/libgps.so.*
%files -n %libQgps
%defattr(-,root,root)
%{_libdir}/libQgpsmm.so.*
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%doc README INSTALL COPYING TODO %doc README INSTALL COPYING TODO
%{_mandir}/man?/gpsfake.* %{_mandir}/man?/gpsfake.*
%{_mandir}/man?/gpscat.* %{_mandir}/man?/gpscat.*
%{_mandir}/man?/libQgps*.*
%{_mandir}/man?/libgps*.* %{_mandir}/man?/libgps*.*
%{_mandir}/man?/srec.* %{_mandir}/man?/srec.*
%{_mandir}/man?/gpsdecode.* %{_mandir}/man?/gpsdecode.*
%{_mandir}/man?/gpsd_json.*
%{_mandir}/man?/gpsprof.* %{_mandir}/man?/gpsprof.*
%{_bindir}/gpsfake %{_bindir}/gpsfake
%{_bindir}/gpscat %{_bindir}/gpscat
@ -265,25 +303,28 @@ rm -rf %{buildroot}
%{_bindir}/gpsprof %{_bindir}/gpsprof
%{_includedir}/gps.h %{_includedir}/gps.h
%{_includedir}/libgpsmm.h %{_includedir}/libgpsmm.h
%{_includedir}/gpsd.h
%{_libdir}/libgps.so %{_libdir}/libgps.so
%{_libdir}/libgpsd.so %{_libdir}/libgpsd.so
%{_libdir}/libQgpsmm.so
%{_libdir}/libQgpsmm.prl
%{_libdir}/pkgconfig/libgps*.pc %{_libdir}/pkgconfig/libgps*.pc
%{_libdir}/pkgconfig/Qgpsmm.pc
%files -n python-gpsd %files -n python-gpsd
%defattr(-,root,root) %defattr(-,root,root)
%{python_sitelib}/gps*.py*
%{python_sitearch}/gps/ %{python_sitearch}/gps/
%files clients %files clients
%defattr(-,root,root) %defattr(-,root,root)
%{_mandir}/man?/gps.* %{_mandir}/man?/gps.*
%{_mandir}/man?/gegps.*
%{_mandir}/man?/cgps.* %{_mandir}/man?/cgps.*
%{_mandir}/man?/lcdgps.1.gz %{_mandir}/man?/lcdgps.1.gz
%{_mandir}/man?/xgps.* %{_mandir}/man?/xgps.*
%{_mandir}/man?/xgpsspeed.* %{_mandir}/man?/xgpsspeed.*
%{_mandir}/man?/gpspipe.* %{_mandir}/man?/gpspipe.*
%{_mandir}/man?/gpsmon.* %{_mandir}/man?/gpsmon.*
%{_bindir}/gegps
%{_bindir}/xgps %{_bindir}/xgps
%{_bindir}/xgpsspeed %{_bindir}/xgpsspeed
%{_bindir}/cgps %{_bindir}/cgps