Name: xgridloc Version: 0.7 Release: 1%{?dist} Summary: A GTK+ application for the calculation of Maidenhead QRA Locators Group: Applications/Communications License: GPLv2+ URL: http://5b4az.chronos.org.uk/pages/locator.html Source0: http://5b4az.chronos.org.uk/pkg/locator/%{name}/%{name}-%{version}.tar.gz #add .desktop file Source1: %{name}.desktop #temporary Icon Source2: %{name}.png BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: desktop-file-utils, autoconf, automake, libtool #Requires: %description xgridloc is a GTK+ graphical version of gridloc and performs the same basic functions for ham radio operators, but additionally it can use xplanet to display the home and DX locations and the great circle path between them. %prep %setup -qn %{name} autoreconf -v -i %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT # no upstream .desktop or icon yet mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/ cp %{SOURCE2} ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/%{name}.png desktop-file-install --vendor="fedora" \ --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE1} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc %{_bindir}/%{name} %{_datadir}/pixmaps/%{name}.png %{_datadir}/applications/*%{name}.desktop %changelog * Sat Mar 01 2008 Robert 'Bob' Jensen - 0.7-1 - Initial spec