gphoto2.spec revision 11046
0N/A#
3029N/A# spec file for package gphoto2
0N/A#
0N/A# Copyright (c) 2005 Sun Microsystems, Inc.
0N/A# This file and all modifications and additions to the pristine
0N/A# package are under the same license as the package itself.
0N/A#
0N/A# Owner: mattman
0N/A# bugdb: http://sourceforge.net/tracker/index.php?func=detail&group_id=8874&atid=108874&aid=
0N/A#
0N/AName: gphoto2
0N/ALicense: GPL
0N/AGroup: Hardware/Other
0N/AVersion: 2.3.1
0N/ARelease: 4
0N/ADistribution: Java Desktop System
0N/AVendor: Sun Microsystems, Inc.
0N/ASummary: Digital camera utility
1472N/ASource: http://heanet.dl.sourceforge.net/sourceforge/gphoto/%{name}-%{version}.tar.bz2
1472N/A# date:2005-09-30 type:bug owner:dcarbery bugster:6329710
1472N/APatch1: gphoto2-01-gettext.diff
0N/A# The following patch is needed for 2.4.0. This patch was added upstream
0N/A# so if we bump to > 2.4.0, then this patch can go away. The patch has
0N/A# been renamed to gphoto2-XX-fixbuild.diff. Also, the change to
1879N/A# gphoto2/actions.c in the gphoto2-01-gettext.diff is upstream in 2.4.0
1879N/A# so that bit can be removed.
1879N/A# date:2007-08-01 type:bug owner:yippi bugid:1765628 state:upstream
0N/A#Patch2: gphoto2-XX-fixbuild.diff
0N/AURL: http://www.gphoto.org
0N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
3029N/ADocDir: %{_defaultdocdir}/gphoto2
3029N/AAutoreqprov: on
0N/A
0N/A%define libgphoto2_version 2.1.2
0N/A
0N/ARequires: libgphoto2 >= %{libgphoto2_version}
0N/ABuildRequires: libgphoto2 >= %{libgphoto2_version}
1879N/A
1879N/A%description
gPhoto (GNU Photo) is a commandline tool for previewing, retrieving, and
capturing images from a range of supported digital camerason to your
local harddrive.
(It does not support digital cameras based on the USB storage protocol,
those can be mounted by Linux directly.)
As of this time gPhoto supports around 200 cameras, listed on:
http://www.gphoto.org/cameras.html
or by running
gphoto2 --list-cameras
%prep
%setup -q -n gphoto2-%{version}
%patch1 -p1
#%patch2 -p1
%build
%ifos linux
if [ -x /usr/bin/getconf ]; then
CPUS=`getconf _NPROCESSORS_ONLN`
fi
%else
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
%endif
if test "x$CPUS" = "x" -o $CPUS = 0; then
CPUS=1
fi
%ifos solaris
glib-gettextize -f
%endif
libtoolize --copy --force
aclocal-1.9 $ACLOCAL_FLAGS -I ./m4m
autoheader
automake-1.9 -a -f
autoconf
PATH="/usr/X11R6/bin:$PATH" CFLAGS="$RPM_OPT_FLAGS" ./configure \
--prefix=%{_prefix} \
--mandir=%{_mandir} \
--bindir=%{_bindir} \
--libdir=%{_libdir} \
--includedir=%{_includedir} \
--with-cdk-prefix={_prefix} \
--with-libintl-prefix=/usr \
--with-doc-dir=%{_defaultdocdir}/%{name}
make -j $CPUS INTLLIBS=
%install
make DESTDIR=$RPM_BUILD_ROOT install
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%files
%defattr(-,root,root)
%{_bindir}/gphoto2
%{_datadir}/locale/*/LC_MESSAGES/*.mo
%{_mandir}/man1/*
%changelog
* Mon Aug 13 2007 - brian.cameron@sun.com
- Bump back to 2.3.1, since 2.4.0 depends on libltdl which is not
yet in Nevada (it is a part of libtool). Will bump back to 2.4.0 once
libtool is in Nevada.
* Tue Jul 31 2007 - brian.cameron@sun.com
- Bump to 2.4.0.
* Mon Apr 2 2007 - laca@sun.com
- force using automake 1.9
* Tue Feb 13 2007 - brian.cameron@sun.com
- Bump to 2.3.1
* Tue Dec 19 2006 - brian.cameron@sun.com
- Bump to 2.3.0.
* Mon Jul 24 2006 - irene.huang@sun.com
- add option --with-libintl-prefix=/usr
* Web Jul 21 2006 - dermot.mccluskey@sun.com
- Bump to 2.2.0.
* Tue Jan 03 2006 - damien.carbery@sun.com
- Bump to 2.1.99.
* Tue Sep 20 2005 - laca@sun.com
- update patches forte-configure and forte-fixes and merge them into one
* Mon Aug 15 2005 - damien.carbery@sun.com
- Bump to 2.1.6.
* Wed Jun 08 2005 - glynn.foster@sun.com
- Bump to 2.1.5
* Fri Nov 12 2004 - laca@sun.com
- Added --bindir=%{_bindir} so it can be redirected on Solaris
* Thu Oct 07 2004 - ciaran.mcdermott@sun.com
- Backing out Patch4,only applies in linux
- and not in Solaris for unknown reason.
* Thu Oct 07 2004 - ciaran.mcdermott@sun.com
- Recreated gphoto2-04-g11n-alllinguas.diff
* Mon Sep 20 2004 - dermot.mccluskey@sun.com
- Removed patch 04
* Thu Sep 16 2004 - ciaran.mcdermott@sun.com
- Added gphoto2-04-g11n-alllinguas.diff to add hu lingua.
* Tue Aug 24 2004 - laszlo.kovacs@sun.com
- fix man pge installation
* Fri Aug 20 2004 - laszlo.kovacs@sun.com
- added man page to pkg list
* Thu Jul 08 2004 - damien.donlon@sun.com
- Updated l10n content to gphoto2-l10n-po-1.2.tar.bz2
* Wed Jul 07 2004 - dermot.mccluskey@sun.com
- added "-j $CPUS" to make to speed up builds
* Wed May 12 2004 - damien.donlon@sun.com
- Updated l10n content to gphoto2-l10n-po-1.1.tar.bz2
* Tue May 04 2004 - laca@sun.com
- grrr... don't rm -rf $RPM_BUILD_ROOT in %install, do it in %clean
* Mon May 03 2004 - dermot.mccluskey@sun.com
- fixed %install cleanup error
* Wed Apr 14 2004 - brian.cameron@sun.com
- Added $ACLOCAL_FLAGS to aclocal call, needed for Solaris.
* Wed Apr 07 2004 - brian.cameron@sun.com
- Removed -n from %changelog. It breaks Solaris and Laca recommended
removing it.
* Mon Mar 29 2004 - damien.donlon@sun.com
- Updated l10n content to gphoto2-l10n-po-1.0.tar.bz2
* Wed Feb 04 2004 - matt.keenan@sun.com
- Ported Patch 01 from QS
* Wed Feb 04 2004 - matt.keenan@sun.com
- New tarball 2.1.4 for Cinnabar
* Tue Oct 14 2003 - matt.keenan@sun.com
- New Tarball 2.1.2 for QS
* Wed Jul 16 2003 - matt.keenan@sun.com
- Initial version