]> git.pld-linux.org Git - packages/gpsd.git/commitdiff
- rel 1; builds auto/th/gpsd-2_94-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 8 Jul 2010 18:23:33 +0000 (18:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gpsd-link.patch -> 1.1
    gpsd.spec -> 1.23

gpsd-link.patch [new file with mode: 0644]
gpsd.spec

diff --git a/gpsd-link.patch b/gpsd-link.patch
new file mode 100644 (file)
index 0000000..58d8677
--- /dev/null
@@ -0,0 +1,11 @@
+--- gpsd-2.94/configure.ac~    2010-07-08 20:16:16.848861269 +0200
++++ gpsd-2.94/configure.ac     2010-07-08 20:17:38.965519312 +0200
+@@ -352,7 +352,7 @@
+ dnl libncurses.  We define our own variables to reduce the risk of
+ dnl breaking if autoconf changes (private) variable names.
+ AC_CHECK_HEADERS(ncurses.h)
+-AC_CHECK_LIB(ncurses, initscr, NCURSES_LIBS="-lncurses")
++AC_CHECK_LIB(ncurses, initscr, NCURSES_LIBS="-lncurses -ltinfo")
+ AC_SUBST(NCURSES_LIBS)
+ if test x"$NCURSES_LIBS" = x"" ; then
+   AC_MSG_WARN([Not including curses support])
index fcf90dd2c1b8f44573f06c35dd59966e6f8d1584..18dbc03bea59c4fc611daa5828682240da9100f5 100644 (file)
--- a/gpsd.spec
+++ b/gpsd.spec
@@ -10,11 +10,12 @@ Summary:    Service daemon for mediating access to a GPS
 Summary(pl.UTF-8):     Oprogramowanie komunikujące się z GPS-em
 Name:          gpsd
 Version:       2.94
-Release:       0.1
+Release:       1
 License:       BSD
 Group:         Daemons
 Source0:       http://download.berlios.de/gpsd/%{name}-%{version}.tar.gz
 # Source0-md5: ce70bcd707ac1df861d4c72f503c09d1
+Patch0:                %{name}-link.patch
 URL:           http://gpsd.berlios.de/
 %if %{with dbus}
 BuildRequires: dbus-devel
@@ -23,6 +24,7 @@ BuildRequires:        dbus-glib-devel
 BuildRequires: docbook-dtd412-xml
 BuildRequires: docbook-style-xsl
 BuildRequires: libstdc++-devel
+BuildRequires: libusb-devel
 BuildRequires: libxslt-progs
 BuildRequires: ncurses-devel
 %{?with_x:BuildRequires:       openmotif-devel}
@@ -168,9 +170,14 @@ xgpsspeed to prędkościomierz używający informacji o położeniu z GPS-a.
 
 %prep
 %setup -q
+%patch0 -p1
+sed -i -e 's#/usr/lib/libusb-\*\.so#/usr/%{_lib}/libusb-*.so#g' configure*
 
 %build
-%configure CPPFLAGS="-I%{_includedir}/ncurses" \
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%configure CPPFLAGS="-I%{_includedir}/ncurses $(pkg-config --cflags-only-I libusb-1.0)" \
        %{?with_dbus:--enable-dbus} \
        %{!?with_x:--without-x}
 
@@ -190,7 +197,6 @@ install gpsd.hotplug gpsd.hotplug.wrapper $RPM_BUILD_ROOT%{udevdir}
 install dgpsip-servers $RPM_BUILD_ROOT%{_datadir}/gpsd/dgpsip-servers
 
 %if %{with x}
-install -D xgps.ad $RPM_BUILD_ROOT%{_appdefsdir}/xgps
 install -D xgpsspeed.ad $RPM_BUILD_ROOT%{_appdefsdir}/xgpsspeed
 %endif
 
@@ -229,6 +235,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/gpsdecode
 %attr(755,root,root) %{_libdir}/libgps.so
+%attr(755,root,root) %{_libdir}/libgpsd.so
 %{_libdir}/libgps.la
 %{_libdir}/libgpsd.la
 %{_includedir}/gps.h
@@ -282,8 +289,8 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/lcdgps
 %attr(755,root,root) %{_bindir}/xgps
 %attr(755,root,root) %{_bindir}/xgpsspeed
-%{_appdefsdir}/xgps
 %{_appdefsdir}/xgpsspeed
+%{_mandir}/man1/lcdgps.1*
 %{_mandir}/man1/xgps.1*
 %{_mandir}/man1/xgpsspeed.1*
 %endif
This page took 0.056767 seconds and 4 git commands to generate.