[gpsbabel] Update to gpsbabel 1.4.1
Hans Ulrich Niedermann
ndim at fedoraproject.org
Tue Jan 11 19:25:30 UTC 2011
commit 400a088b1f5de1eb0fe1df1057d50119096c8379
Author: Hans Ulrich Niedermann <hun at n-dimensional.de>
Date: Tue Jan 11 16:09:39 2011 +0100
Update to gpsbabel 1.4.1
Using Mikhail Kalenkov's 1.4.1-2 spec file from bug #630262
with cosmetic fixes.
gpsbabel.desktop | 9 ++++++++
gpsbabel.png | Bin 0 -> 28230 bytes
gpsbabel.spec | 57 +++++++++++++++++++++++++++++++++++++++++++++++++----
3 files changed, 61 insertions(+), 5 deletions(-)
---
diff --git a/gpsbabel.desktop b/gpsbabel.desktop
new file mode 100644
index 0000000..38a2a31
--- /dev/null
+++ b/gpsbabel.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Name=GPSBabel
+Comment=Qt GUI interface for GPSBabel
+GenericName=GPSBabel
+Icon=gpsbabel.png
+Exec=gpsbabelfe-bin
+Terminal=false
+Categories=Utility
diff --git a/gpsbabel.png b/gpsbabel.png
new file mode 100644
index 0000000..9a25567
Binary files /dev/null and b/gpsbabel.png differ
diff --git a/gpsbabel.spec b/gpsbabel.spec
index b4620e3..138fd37 100644
--- a/gpsbabel.spec
+++ b/gpsbabel.spec
@@ -1,6 +1,6 @@
Name: gpsbabel
-Version: 1.3.6
-Release: 3%{?dist}
+Version: 1.4.1
+Release: 2%{?dist}
Summary: A tool to convert between various formats used by GPS devices
Group: Applications/Text
@@ -9,17 +9,31 @@ URL: http://www.gpsbabel.org
# source can be downloaded from the following URL:
# http://www.gpsbabel.org/plan9.php?dl=%{name}-%{version}.tar.gz
Source0: %{name}-%{version}.tar.gz
+Source1: %{name}.desktop
+Source2: %{name}.png
Patch0: gpsbabel-1.3.5-autoconf.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: expat-devel
BuildRequires: libusb-devel
BuildRequires: zlib-devel
+BuildRequires: qt-devel
+BuildRequires: qt-webkit-devel
+BuildRequires: desktop-file-utils
+BuildRequires: libxslt
%description
Converts GPS waypoint, route, and track data from one format type
to another.
+%package gui
+Summary: Qt GUI interface for GPSBabel
+Group: Applications/Text
+License: GPLv2+
+Requires: %{name} = %{version}-%{release}
+
+%description gui
+Qt GUI interface for GPSBabel
%prep
%setup -q
@@ -28,29 +42,62 @@ to another.
# fix bad execute perms
%{__chmod} a-x *.c *.h
-
%build
-%configure --with-zlib=system
+%configure --with-zlib=system --with-doc=./manual
make %{?_smp_mflags}
+perl xmldoc/makedoc
+make gpsbabel.html
+cd gui
+qmake-qt4
+make
%install
%{__rm} -rf %{buildroot}
%{__mkdir} -p %{buildroot}%{_bindir}
-%{__install} -m 755 -p gpsbabel %{buildroot}%{_bindir}/gpsbabel
+%{__install} -m 755 -p gpsbabel gui/objects/gpsbabelfe-bin %{buildroot}%{_bindir}/
+desktop-file-install \
+ --dir %{buildroot}/%{_datadir}/applications \
+ %{SOURCE1}
+
+install -m 755 -d %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/
+install -m 644 -p %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/
%clean
%{__rm} -rf %{buildroot}
+%post gui
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun gui
+if [ $1 -eq 0 ] ; then
+ touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans gui
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%files
%defattr(-,root,root,-)
%doc README* COPYING AUTHORS gpsbabel.html
%{_bindir}/gpsbabel
+%files gui
+%defattr(-,root,root,-)
+%doc gui/{AUTHORS,COPYING,README*,TODO}
+%{_bindir}/gpsbabelfe-bin
+%{_datadir}/applications/*
+%{_datadir}/icons/hicolor/256x256/apps/*
%changelog
+* Fri Sep 17 2010 Mikhail Kalenkov <mikhail.kalenkov at gmail.com> - 1.4.1-2
+- build documentation (gpsbabel.html)
+
+* Thu Sep 16 2010 Mikhail Kalenkov <mikhail.kalenkov at gmail.com> - 1.4.1-1
+- update to 1.4.1
+
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.3.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
More information about the scm-commits
mailing list