File igotu2gpx.spec of Package igotu2gpx
# norootbuild
Name: igotu2gpx
Version: 0.2.92
Release: 1%{?dist}
Summary: Description: Gives access to the i-gotU GPS trackers
Group: System/GUI/KDE
License: GPLv3+
URL: https://mh21.de/igotu2gpx/
#Source: %{name}-%{version}.tar.gz
Source: http://launchpad.net/%{name}/0.2/%{version}/+download/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build
#BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: update-desktop-files
#BuildRequires: desktop-file-utils
BuildRequires: libqt4-devel >= 4.3.0
BuildRequires: boost-devel
BuildRequires: libusb-devel
BuildRequires: chrpath
%description
Gives access to the i-gotU GPS trackers via an USB connection. It is possible
to show the configuration of the GPS tracker, export tracks and waypoints in
gpx format and clear the memory of the tracker.
%prep
%setup -q
%build
qmake-qt4 RELEASE=1
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install INSTALL_ROOT=$RPM_BUILD_ROOT
desktop-file-install \
--vendor="exporl" \
--dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
${RPM_BUILD_ROOT}%{_datadir}/applications/exporl-rba.desktop
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
%suse_update_desktop_file -i igotugui
#update-desktop-database &> /dev/null || :
#touch --no-create %{_datadir}/icons/hicolor
#gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
%postun
/sbin/ldconfig
#update-desktop-database &> /dev/null || :
#touch --no-create %{_datadir}/icons/hicolor
#gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
%files
%defattr(-,root,root,-)
%{_bindir}/igotu2gpx
%{_bindir}/igotugui
%dir %{_libdir}/%{name}
%{_libdir}/%{name}
%{_libdir}/*.so*
%{_mandir}/man1/%{name}.1.gz
%{_datadir}
%doc HACKING LICENSE
%changelog
* Sun Sep 28 2009 Michael Hofmann <mh21@piware.de> - 0.2.92-1
- Initial version.