%define gexif_version 0.4
Name: gtkam
License: GPL
Group: Hardware/Other
Version: 0.1.10
Release: 7
Distribution: Mercury
Vendor: Sun Microsystems, Inc.
Summary: A GTK Digital Camera Viewing Tool
Source: gtkam-%{version}.tar.bz2
Source1: gexif-%{gexif_version}.tar.bz2
Patch1: gtkam-01-menu-entry.diff
URL: http://www.gphoto.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
DocDir: %{_defaultdocdir}/gtkam
%define libgphoto2_version 2.1.1
%define libexif_gtk_version 0.3.1
Requires: libgphoto2 >= %{libgphoto2_version}
Requires: libexif-gtk >= %{libexif_gtk_version}
BuildRequires: libgphoto2 >= %{libgphoto2_version}
BuildRequires: libexif-gtk >= %{libexif_gtk_version}
%description
GTKam is a GTK/GNOME based tool to access Digital Cameras,
view thumbnails and download pictures from the camera.
%prep
%setup -q
#%{?suse_update_config:%{suse_update_config}}
tar jxf %{SOURCE1}
%patch1
%build
libtoolize --force
aclocal -I /usr/share/aclocal/gnome2-macros
automake -a -c -f
autoconf
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix}
make
cd gexif-*
libtoolize --force
aclocal -I /usr/share/aclocal/gnome2-macros
automake -a -c -f
autoconf
CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure --prefix=%{_prefix}
make
cd ..
%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
mkdir -p $RPM_BUILD_ROOT%{_prefix}
make DESTDIR=$RPM_BUILD_ROOT install-strip
cd gexif-*
make prefix=$RPM_BUILD_ROOT%{_prefix} install-strip
cd ..
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%files
%defattr(-,root,root)
%attr(755,root,root) %{_bindir}/gtkam
%attr(755,root,root) %{_bindir}/gexif
%{_datadir}/gtkam
%{_datadir}/images/gtkam
%{_datadir}/pixmaps/gtkam-camera.png
%{_datadir}/locale/*/*/*
%{_datadir}/applications/*
# disabled, since it requires gimp 1.3 :/
# %{_libdir}/gimp/*/plug-ins/gtkam-gimp
%changelog -n gtkam
* Thu Aug 14 2003 - [email protected]
- desktop file for menu entry
* Wed Jul 16 2003 - [email protected]
- Initial version