File gpsPhoto.spec of Package gpsPhoto

#
# spec file for package gpsPhoto (Version 0.0.1.133)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           gpsPhoto
BuildRequires:  perl
Version:        0.0.1.160
Release:        0
License:        GPL-2.0+
Summary:        Tool to Synchronize GPS Tracklog with Date/Time Stamps of Image EXIF Data
Group:          Productivity/Graphics/Viewers
Source:         %{name}-cvs20121010.tar.bz2
Source1:        %{name}.README
# PATCH-FIX-OPENSUSE gpsPhoto-ChangeLog.patch sbrabec@suse.cz -- Update outdated ChangeLog using cvs2cl.pl
Patch:          gpsPhoto-ChangeLog.patch
Requires:       exiftool perl-XML-Parser
Url:            http://www.carto.net/projects/photoTools/gpsPhoto/
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A commandline tool to synchronize a gps (gpx) tracklog with the
date/time stamps of the image exif-data

gpsPhoto geotags digital photos by using GPS track data recorded at the
same time. Matches are based on closest timestamps. An optionally
generated Google Earth KML or KMZ file contains the GPS tracks and the
geotagged photos.

The purpose of this tool is to allow a hiker to record a GPS tracklog or
waypoints and later (at home) synchronize this GPS data with the
timestamps of the image exif data of his digital camera, in order to
locate and store the position where the picture was taken. The tool
writes coordinates, altitude and additional metadata to the Exif and
IPTC metadata section of jpeg, nef and potentially other file formats.
Optionally, a Google Earth kml file is created containing the gps
tracklog and the image positions.

%prep
%setup -q -n %{name}
%patch -p1
cp -a %{S:1} README

%build
cd src
pod2man gpsPhoto.pl gpsPhoto.man

%install
install -d $RPM_BUILD_ROOT%{_bindir}
install src/gpsPhoto.pl $RPM_BUILD_ROOT%{_bindir}/gpsPhoto
install contrib/pwtrk2gpx.pl $RPM_BUILD_ROOT%{_bindir}/pwtrk2gpx
install -d $RPM_BUILD_ROOT%{_mandir}/man1
install -m0644 src/gpsPhoto.man $RPM_BUILD_ROOT%{_mandir}/man1/gpsPhoto.1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc ChangeLog README TODO
%{_bindir}/*
%doc %{_mandir}/man1/*.*
openSUSE Build Service is sponsored by