File gpicsync.spec of Package gpicsync
%define ver 1.26.860
Name: gpicsync
License: GPL v2
Group: Productivity/Graphics/Other
Summary: Gpicsync automatically geotaggs your pictures using a GPS track log.
URL: http://code.google.com/p/gpicsync/
Packager: Marc Christensen <mecworks@gmail.com>
Version: %{ver}
Release: 1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}-%{version}.tar.bz2
Source1: gpicsync-start-script
Source2: gpicsync-gui
Requires: python python-wxGTK exiftool python-imaging gpsbabel
Requires: python-xml >= 2.5
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
GPicSync automatically inserts location information into your photos'
metadata so they can also be used with any geocode or geotag aware
application like Picasa, Googleearth, Flickr, loc.alize.us, etc.
%prep
%setup
sed -i -e 's@default.jpg@/opt/gpicsync/default.jpg@' gpicsync-GUI.py
%build
%install
# Locale stuff
mkdir -p ${RPM_BUILD_ROOT}/usr/share/gpicsync
mv locale ${RPM_BUILD_ROOT}/usr/share/gpicsync/
# The program
mkdir -p ${RPM_BUILD_ROOT}/opt/gpicsync
mv * ${RPM_BUILD_ROOT}/opt/gpicsync
# Some shell scripts which call the actual programs
mkdir -p ${RPM_BUILD_ROOT}/usr/bin
install -m 755 %{SOURCE1} ${RPM_BUILD_ROOT}/usr/bin/gpicsync
install -m 755 %{SOURCE2} ${RPM_BUILD_ROOT}/usr/bin
%clean
%{__rm} -rf ${RPM_BUILD_ROOT}
%pre
%post
%preun
%postun
%files
%defattr(-,root,root)
%doc /opt/gpicsync/license.txt
%doc /opt/gpicsync/README.txt
%dir %attr(755,root,root) /opt/gpicsync
/opt/gpicsync/default.jpg
/opt/gpicsync/geoexif.py
/opt/gpicsync/geonames.py
/opt/gpicsync/GoogleGroup.url
/opt/gpicsync/gpicsync.conf
/opt/gpicsync/gpicsync-GUI.pot
%attr(755,root,root)/opt/gpicsync/gpicsync-GUI.py
/opt/gpicsync/gpicsync.ico
%attr(755,root,root)/opt/gpicsync/gpicsync.py
/opt/gpicsync/GPicSync_website.url
/opt/gpicsync/gpx.py
/opt/gpicsync/kmlGen.py
/usr/bin/gpicsync*
/usr/share/gpicsync/
%changelog
* Fri Feb 15 2008 Marc Christensen <marc@mecworks.com>
- Version of software is now obtained from gpicsync-GUI.py
rather than off the top of my head. This change is in
the update scrpipt which check out the source and modifies
the spec file with the right version.
* Thu Jan 17 2008 Marc Christensen <marc@mecworks.com>
- initial packaging