SPECS: gpsd.spec - pl, separated -libs and -static, some cleanups

qboosh qboosh at pld-linux.org
Sat Dec 3 17:10:42 CET 2005


Author: qboosh                       Date: Sat Dec  3 16:10:42 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- pl, separated -libs and -static, some cleanups

---- Files affected:
SPECS:
   gpsd.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/gpsd.spec
diff -u SPECS/gpsd.spec:1.2 SPECS/gpsd.spec:1.3
--- SPECS/gpsd.spec:1.2	Thu Dec  1 16:07:08 2005
+++ SPECS/gpsd.spec	Sat Dec  3 17:10:37 2005
@@ -2,12 +2,12 @@
 # TODO
 # - at this time package do not build with dbus support
 #   I do not need it ...
+#
 # Conditional build:
 %bcond_with	dbus	# build with dbus support
-
 #
 Summary:	Service daemon for mediating access to a GPS
-Summary(pl):	Oprogramowanie komunikujące się z GPS'em
+Summary(pl):	Oprogramowanie komunikujące się z GPS-em
 Name:		gpsd
 Version:	2.30
 Release:	1.1
@@ -17,19 +17,19 @@
 # Source0-md5:	dde177174878e8ae6db15f8010da46dd
 Patch0:		%{name}-ncurses.patch
 URL:		http://gpsd.berlios.de/
+BuildRequires:	XFree86-devel
 BuildRequires:	autoconf
 BuildRequires:	automake
-BuildRequires:	ncurses-devel
-BuildRequires:	openmotif-devel
-BuildRequires:	XFree86-devel
 %if %{with dbus}
 BuildRequires:	dbus-devel
 BuildRequires:	dbus-glib-devel
 %endif
+BuildRequires:	ncurses-devel
+BuildRequires:	openmotif-devel
+Requires:	%{name}-libs = %{version}-%{release}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		_libx11dir	%{_prefix}/lib/X11
-%define		_appdefsdir	%{_libx11dir}/app-defaults
+%define		_appdefsdir	/usr/X11R6/lib/X11/app-defaults
 
 %description
 gpsd is a service daemon that mediates access to a GPS sensor
@@ -49,23 +49,70 @@
 asking for location information, and copes gracefully when the GPS is
 unplugged and replugged.
 
-%package -n gpsd-devel
+%description -l pl
+gpsd to demon usługi pośredniczącej w dostępie do sensora GPS
+połączonego z komputerem poprzez interfejs szeregowy lub USB,
+udostępniający dane o położeniu, kierunku ruchu i prędkości z sensora
+na porcie TCP 2947 komputera. Przy użyciu gpsd wiele aplikacji
+klienckich GPS (takich jak oprogramowanie nawigacyjne) może
+współdzielić dostęp do GPS-a bez utraty danych. Ponadto gpsd odpowiada
+na zapytania w formacie znacznie łatwiejszym do przetworzenia niż NMEA
+0183. Dostarczona jest biblioteka kliencka dla aplikacji.
+
+Po zainstalowaniu tego pakietu gpsd będzie się automatycznie łączył z
+GPS-ami USB po podłączeniu ich. Dla GPS-ów szeregowych trzeba
+uruchomić gpsd ręcznie. Po poączeniu demon automatycznie wykrywa
+właściwą prędkość, liczbę bitów stopu i protokół. Demon oczekuje
+spokojnie kiedy nie ma klientów i radzi sobie dobrze z odłączaniem i
+ponownym podłączaniem GPS-a.
+
+%package libs
+Summary:	GPS client library
+Summary(pl):	Biblioteka kliencka GPS
+Group:		Libraries
+
+%description libs
+GPS client library.
+
+%description libs -l pl
+Biblioteka kliencka GPS.
+
+%package devel
 Summary:	Client libraries in C and Python for talking to a running gpsd or GPS
+Summary(pl):	Biblioteki klienckie dla C i Pythona do komunikacji z gpsd lub GPS-em
 Group:		Development/Libraries
-Requires:	gpsd
+Requires:	%{name}-libs = %{version}-%{release}
 
-%description -n gpsd-devel
+%description devel
 This package provides C header files for the gpsd shared libraries
 that manage access to a GPS for applications; also Python modules. You
 will need to have gpsd installed for it to work.
 
-%package -n gpsd-clients
+%description devel -l pl
+Ten pakiet zawiera pliki nagłówkowe C dla bibliotek współdzielonych
+gpsd zarządzających dostępem do GPS-a dla aplikacji, a także moduły
+Pythona. Do działania bibliotek potrzebny jest gpsd.
+
+%package static
+Summary:	Static GPS client library
+Summary(pl):	Statyczna biblioteka kliencka GPS
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static GPS client library.
+
+%description static -l pl
+Statyczna biblioteka kliencka GPS.
+
+%package clients
 Summary:	Clients for gpsd with an X interface
+Summary(pl):	Aplikacje klienckie z interfejsem X
 Group:		Applications/System
 Requires:	openmotif-libs
-Requires:	gpsd
+Requires:	%{name}-libs = %{version}-%{release}
 
-%description -n gpsd-clients
+%description clients
 xgps is a simple test client for gpsd with an X interface. It displays
 current GPS position/time/velocity information and (for GPSes that
 support the feature) the locations of accessible satellites.
@@ -73,11 +120,25 @@
 xgpsspeed is a speedometer that uses position information from the
 GPS. It accepts an -h option and optional argument as for gps, or a -v
 option to dump the package version and exit. Additionally, it accepts
-- -rv (reverse video) and -nc (needle color) options.
+-rv (reverse video) and -nc (needle color) options.
 
 cgps resembles xgps, but without the pictorial satellite display. It
 can run on a serial terminal or terminal emulator.
 
+%description clients -l pl
+xgps to prosty klient testowy dla gpsd z interfejsem X. Wyświetla
+bieżące informacje GPS o położeniu, czasie i prędkości oraz (w
+przypadku GPS-ów obsługujących to) położenia dostępnych satelitów.
+
+xgpsspeed to prędkościomierz używający informacji o położeniu z GPS-a.
+Przyjmuje opcję -h i opcjonalnie argument taki jak gps lub opcję -v w
+celu wyświetlenia wersji pakietu. Ponadto przyjmuje opcje -rv (reverse
+video - odwrotny obraz) i -nc (needle color).
+
+cgps jest podobny do xgps, ale bez rysunkowego przedstawiania
+satelitów. Może działać na terminalu szeregowym lub emulatorze
+terminala.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -88,7 +149,7 @@
 %{__autoheader}
 %{__automake}
 %configure \
-	%{?with_dbus: --enable-dbus}
+	%{?with_dbus:--enable-dbus}
 
 %{__make}
 %{__python} -c "import compiler;compiler.compileFile('gps.py')"
@@ -96,25 +157,22 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir}/hotplug/usb,%{py_sitedir},%{_appdefsdir},%{_datadir}/gpsd/}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/hotplug/usb,%{py_sitedir},%{_appdefsdir},%{_datadir}/gpsd}
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-install gps.pyc gpsfake.pyc $RPM_BUILD_ROOT/%{py_sitedir}/
-install gpsd.hotplug gpsd.usermap $RPM_BUILD_ROOT/%{_sysconfdir}/hotplug/usb/
-install xgps.ad $RPM_BUILD_ROOT/%{_appdefsdir}/xgps
-install xgpsspeed.ad $RPM_BUILD_ROOT/%{_appdefsdir}/xgpsspeed
-install dgpsip-servers $RPM_BUILD_ROOT/%{_datadir}/gpsd/dgpsip-servers
+install gps.pyc gpsfake.pyc $RPM_BUILD_ROOT%{py_sitedir}
+install gpsd.hotplug gpsd.usermap $RPM_BUILD_ROOT%{_sysconfdir}/hotplug/usb
+install xgps.ad $RPM_BUILD_ROOT%{_appdefsdir}/xgps
+install xgpsspeed.ad $RPM_BUILD_ROOT%{_appdefsdir}/xgpsspeed
+install dgpsip-servers $RPM_BUILD_ROOT%{_datadir}/gpsd/dgpsip-servers
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-#%post -n gpsd
-#/sbin/ldconfig
-
-#%postun -n gpsd
-#/sbin/ldconfig
+%post	libs -p /sbin/ldconfig
+%postun	libs -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
@@ -122,10 +180,6 @@
 %attr(755,root,root) %{_sbindir}/gpsd
 %attr(755,root,root) %{_bindir}/gpsprof
 %attr(755,root,root) %{_bindir}/sirfmon
-#%{_libdir}/libgps.la
-#%attr(755,root,root) %{_libdir}/libgps.so*
-#%{_libdir}/libgps.a
-%attr(755,root,root) %{_libdir}/libgps.so.15*
 %{_mandir}/man8/gpsd.8*
 %{_mandir}/man1/gpsprof.1*
 %{_mandir}/man1/sirfmon.1*
@@ -134,24 +188,17 @@
 %{_datadir}/gpsd/dgpsip-servers
 %{py_sitedir}/gps.pyc
 
-%files -n gpsd-clients
+%files libs
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/xgps
-%attr(755,root,root) %{_bindir}/xgpsspeed
-%attr(755,root,root) %{_bindir}/cgps
-%attr(755,root,root) %{_bindir}/gpspipe
-%{?with_dbus: %attr(755,root,root) %{_bindir}/gpxlogger}
-%{_mandir}/man1/xgps.1*
-%{_mandir}/man1/gpspipe.1*
-%{?with_dbus: %{_mandir}/man1/gpxlogger.1*}
-%{_appdefsdir}/xgps
-%{_appdefsdir}/xgpsspeed
+%attr(755,root,root) %{_libdir}/libgps.so.*.*.*
 
-%files -n gpsd-devel
+%files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/gpsfake
 %attr(755,root,root) %{_bindir}/rtcmdecode
 %attr(755,root,root) %{_bindir}/gpsflash
+%attr(755,root,root) %{_libdir}/libgps.so
+%{_libdir}/libgps.la
 %{py_sitedir}/gpsfake.pyc
 %{_includedir}/gps.h
 %{_includedir}/libgpsmm.h
@@ -165,11 +212,32 @@
 %{_mandir}/man5/rtcm-104.5*
 %{_mandir}/man5/srec.5*
 
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libgps.a
+
+%files clients
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/xgps
+%attr(755,root,root) %{_bindir}/xgpsspeed
+%attr(755,root,root) %{_bindir}/cgps
+%attr(755,root,root) %{_bindir}/gpspipe
+%{?with_dbus: %attr(755,root,root) %{_bindir}/gpxlogger}
+%{_mandir}/man1/xgps.1*
+%{_mandir}/man1/gpspipe.1*
+%{?with_dbus: %{_mandir}/man1/gpxlogger.1*}
+%{_appdefsdir}/xgps
+%{_appdefsdir}/xgpsspeed
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
+
 $Log$
+Revision 1.3  2005/12/03 16:10:37  qboosh
+- pl, separated -libs and -static, some cleanups
+
 Revision 1.2  2005/12/01 15:07:08  abram
 - cleanups
 - sorted BR
@@ -179,4 +247,3 @@
 Revision 1.1  2005/11/28 19:15:19  abram
 - initial
 - please forgive me, this is first spec, first commit ...
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/gpsd.spec?r1=1.2&r2=1.3&f=u




More information about the pld-cvs-commit mailing list