Name: gpsman Version: 6.4 Release: 1%{?dist} Summary: A GPS manager Group: Applications/Communications License: GPLv2+ URL: http://www.ncc.up.pt/gpsman/wGPSMan_4.html Source0: http://www.ncc.up.pt/gpsman/gpsmanhtml/gpsman-%{version}.tgz #man files for the utils, stolen from debian Source1: mou2gmn.1 Source2: mb2gmn.1 Source3: gpsman.desktop Source4: gpsman-icon.png #fix location of files in executable Patch0: gpsman-sourcedir.patch BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: desktop-file-utils Requires: tk Requires: tkimg %description GPS Manager (GPSMan) is a graphical manager of GPS data that makes possible the preparation, inspection and edition of GPS data in a friendly environment. GPSMan supports communication and real-time logging with both Garmin and Lowrance receivers and accepts real-time logging information in NMEA 0183 from any GPS receiver. %prep %setup -q %patch0 -p1 #make sure all files are utf-8 recode() { iconv -f "$2" -t utf-8 < "$1" > "${1}_" mv -f "${1}_" "$1" } for f in `find manual/html -name *.html` do recode $f iso-8859-15 done recode manual/html/info/WPs.txt iso-8859-15 %build #no build needed %install rm -rf $RPM_BUILD_ROOT #manual install install -D -m 0755 gpsman.tcl $RPM_BUILD_ROOT%{_bindir}/gpsman install -Dd gmsrc $RPM_BUILD_ROOT%{_datadir}/gpsman for f in `find gmsrc/ -type f -maxdepth 1` do install -D -m 0644 $f $RPM_BUILD_ROOT%{_datadir}/gpsman/`echo $f | cut -d '/' -f2` done install -Dd gmsrc/gmicons $RPM_BUILD_ROOT%{_datadir}/gpsman/gmicons for f in `find gmsrc/gmicons/ -type f -name *.gif` do install -D -m 0644 $f $RPM_BUILD_ROOT%{_datadir}/gpsman/gmicons/`echo $f | cut -d '/' -f3` done install -D -m 0644 man/man1/gpsman.1 $RPM_BUILD_ROOT%{_mandir}/man1/gpsman.1 #utils install -D -m 0755 util/mb2gmn.tcl $RPM_BUILD_ROOT%{_bindir}/mb2gmn install -D -m 0755 util/mou2gmn.tcl $RPM_BUILD_ROOT%{_bindir}/mou2gmn #man files install -D -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1/mb2gmn.1 install -D -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/man1/mou2gmn.1 # desktop file and icon mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/ install -m 644 %{SOURCE4} \ ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/ desktop-file-install --vendor="" \ --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ %{SOURCE3} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc LICENSE %doc manual/GPSMandoc.pdf manual/html %{_bindir}/* %{_datadir}/gpsman %{_mandir}/man?/* %attr(0644,root,root) %{_datadir}/applications/%{name}.desktop %attr(0644,root,root) %{_datadir}/pixmaps/* %changelog * Sun Dec 08 2008 Sindre Pedersen Bjørdal - 6.4-1 - New upstream release * Thu Aug 14 2008 Lucian Langa - 6.3.2-4 - fix reuirements - misc cleanups * Tue Feb 26 2008 Steve Conklin - 6.3.2-3 - rpmlint clean up * Sun Dec 09 2007 Robert 'Bob' Jensen - 6.3.2-2 - rpmlint clean up * Sun Dec 09 2007 Sindre Pedersen Bjørdal - 6.3.2-1 - Initial build