gphoto2.spec revision 10139
10139N/A#
10139N/A# spec file for package gphoto2
10139N/A#
10139N/A# Copyright (c) 2005 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
10139N/A#
17185N/A# Owner: mattman
10139N/A# bugdb: http://sourceforge.net/tracker/index.php?func=detail&group_id=8874&atid=108874&aid=
17178N/A#
18602N/AName: gphoto2
17178N/ALicense: GPL
15153N/AGroup: Hardware/Other
10139N/AVersion: 2.3.1
10139N/ARelease: 3
18532N/ADistribution: Java Desktop System
10139N/AVendor: Sun Microsystems, Inc.
10139N/ASummary: Digital camera utility
10139N/ASource: http://heanet.dl.sourceforge.net/sourceforge/gphoto/%{name}-%{version}.tar.bz2
10139N/A# date:2005-09-30 type:bug owner:dcarbery bugster:6329710
10139N/APatch1: gphoto2-01-gettext.diff
10139N/AURL: http://www.gphoto.org
18602N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
18532N/ADocDir: %{_defaultdocdir}/gphoto2
12773N/AAutoreqprov: on
15153N/A
15153N/A%define libgphoto2_version 2.1.2
12773N/A
13551N/ARequires: libgphoto2 >= %{libgphoto2_version}
13992N/ABuildRequires: libgphoto2 >= %{libgphoto2_version}
10139N/A
10139N/A%description
10139N/AgPhoto (GNU Photo) is a commandline tool for previewing, retrieving, and
10139N/Acapturing images from a range of supported digital camerason to your
10139N/Alocal harddrive.
10139N/A
10139N/A(It does not support digital cameras based on the USB storage protocol,
10139N/Athose can be mounted by Linux directly.)
10139N/A
10139N/AAs of this time gPhoto supports around 200 cameras, listed on:
10139N/A
10139N/A http://www.gphoto.org/cameras.html
10139N/A
10139N/Aor by running
10139N/A
10139N/A gphoto2 --list-cameras
10139N/A
10139N/A%prep
10139N/A%setup -q -n gphoto2-%{version}
10139N/A%patch1 -p1
15153N/A
15153N/A%build
15153N/A%ifos linux
15153N/Aif [ -x /usr/bin/getconf ]; then
15153N/A CPUS=`getconf _NPROCESSORS_ONLN`
13551N/Afi
10139N/A%else
10139N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10139N/A%endif
10139N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10139N/A CPUS=1
10139N/Afi
10139N/A
10139N/A%ifos solaris
10139N/Aglib-gettextize -f
10139N/A%endif
10139N/Alibtoolize --copy --force
10139N/Aaclocal $ACLOCAL_FLAGS -I ./m4m
10139N/Aautomake -a -f
10139N/Aautoconf
12773N/APATH="/usr/X11R6/bin:$PATH" CFLAGS="$RPM_OPT_FLAGS" ./configure \
12773N/A --prefix=%{_prefix} \
12773N/A --mandir=%{_mandir} \
12773N/A --bindir=%{_bindir} \
12773N/A --libdir=%{_libdir} \
10139N/A --includedir=%{_includedir} \
10139N/A --with-cdk-prefix={_prefix} \
10139N/A --with-libintl-prefix=/usr \
10139N/A --with-doc-dir=%{_defaultdocdir}/%{name}
10139N/Amake -j $CPUS INTLLIBS=
10139N/A
10139N/A%install
10139N/Amake DESTDIR=$RPM_BUILD_ROOT install
10139N/A
10139N/A%clean
17483N/A[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
17483N/A
10139N/A%files
10139N/A%defattr(-,root,root)
10139N/A%{_bindir}/gphoto2
10139N/A%{_datadir}/locale/*/LC_MESSAGES/*.mo
17483N/A%{_mandir}/man1/*
17483N/A
10139N/A%changelog
10139N/A* Tue Feb 13 2007 - brian.cameron@sun.com
10139N/A- Bump to 2.3.1
10139N/A* Tue Dec 19 2006 - brian.cameron@sun.com
10139N/A- Bump to 2.3.0.
10139N/A* Mon Jul 24 2006 - irene.huang@sun.com
10139N/A- add option --with-libintl-prefix=/usr
10139N/A* Web Jul 21 2006 - dermot.mccluskey@sun.com
10139N/A- Bump to 2.2.0.
10139N/A* Tue Jan 03 2006 - damien.carbery@sun.com
10139N/A- Bump to 2.1.99.
10139N/A* Tue Sep 20 2005 - laca@sun.com
10139N/A- update patches forte-configure and forte-fixes and merge them into one
10139N/A* Mon Aug 15 2005 - damien.carbery@sun.com
10139N/A- Bump to 2.1.6.
10139N/A* Wed Jun 08 2005 - glynn.foster@sun.com
10139N/A- Bump to 2.1.5
10139N/A* Fri Nov 12 2004 - laca@sun.com
10139N/A- Added --bindir=%{_bindir} so it can be redirected on Solaris
10139N/A* Thu Oct 07 2004 - ciaran.mcdermott@sun.com
10139N/A- Backing out Patch4,only applies in linux
10139N/A- and not in Solaris for unknown reason.
10139N/A* Thu Oct 07 2004 - ciaran.mcdermott@sun.com
10139N/A- Recreated gphoto2-04-g11n-alllinguas.diff
10139N/A* Mon Sep 20 2004 - dermot.mccluskey@sun.com
10139N/A- Removed patch 04
18532N/A* Thu Sep 16 2004 - ciaran.mcdermott@sun.com
18532N/A- Added gphoto2-04-g11n-alllinguas.diff to add hu lingua.
17396N/A* Tue Aug 24 2004 - laszlo.kovacs@sun.com
17396N/A- fix man pge installation
17314N/A* Fri Aug 20 2004 - laszlo.kovacs@sun.com
17314N/A- added man page to pkg list
17314N/A* Thu Jul 08 2004 - damien.donlon@sun.com
17314N/A- Updated l10n content to gphoto2-l10n-po-1.2.tar.bz2
16896N/A* Wed Jul 07 2004 - dermot.mccluskey@sun.com
16896N/A- added "-j $CPUS" to make to speed up builds
16659N/A* Wed May 12 2004 - damien.donlon@sun.com
16659N/A- Updated l10n content to gphoto2-l10n-po-1.1.tar.bz2
16186N/A* Tue May 04 2004 - laca@sun.com
16186N/A- grrr... don't rm -rf $RPM_BUILD_ROOT in %install, do it in %clean
15864N/A* Mon May 03 2004 - dermot.mccluskey@sun.com
15864N/A- fixed %install cleanup error
15855N/A* Wed Apr 14 2004 - brian.cameron@sun.com
15855N/A- Added $ACLOCAL_FLAGS to aclocal call, needed for Solaris.
15153N/A* Wed Apr 07 2004 - brian.cameron@sun.com
15153N/A- Removed -n from %changelog. It breaks Solaris and Laca recommended
14475N/A removing it.
14475N/A* Mon Mar 29 2004 - damien.donlon@sun.com
13992N/A- Updated l10n content to gphoto2-l10n-po-1.0.tar.bz2
13992N/A* Wed Feb 04 2004 - matt.keenan@sun.com
13551N/A- Ported Patch 01 from QS
13551N/A* Wed Feb 04 2004 - matt.keenan@sun.com
12584N/A- New tarball 2.1.4 for Cinnabar
12584N/A* Tue Oct 14 2003 - matt.keenan@sun.com
12406N/A- New Tarball 2.1.2 for QS
12403N/A* Wed Jul 16 2003 - matt.keenan@sun.com
11900N/A- Initial version
11900N/A