10139N/A#
10139N/A# spec file for package gphoto2
10139N/A#
18180N/A# Copyright (c) 2010 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#
17765N/A%define owner wangke
10139N/A# bugdb: http://sourceforge.net/tracker/index.php?func=detail&group_id=8874&atid=108874&aid=
10139N/A#
17177N/A
17177N/A%define OSR 2306:2.1.4
17177N/A
10139N/AName: gphoto2
18219N/ALicense: GPLv2
10139N/AGroup: Hardware/Other
19064N/AVersion: 2.4.10
12705N/ARelease: 1
10139N/ADistribution: Java Desktop System
18615N/AVendor: Sourcforge
10139N/ASummary: Digital camera utility
18180N/ASource: %{sf_download}/gphoto/gphoto2-%{version}.tar.bz2
13733N/A# date:2008-08-01 type:branding owner:mattman
17548N/APatch1: gphoto2-01-man.diff
17626N/A# date:2009-10-27 type:feature owner:funix
17626N/APatch2: gphoto2-02-gettext.diff
10139N/AURL: http://www.gphoto.org
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/ADocDir: %{_defaultdocdir}/gphoto2
10139N/AAutoreqprov: on
10139N/A
10139N/A%define libgphoto2_version 2.1.2
10139N/A
10139N/ARequires: libgphoto2 >= %{libgphoto2_version}
10139N/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
17626N/A%patch2 -p1
10139N/A
10139N/A%build
10139N/A%ifos linux
10139N/Aif [ -x /usr/bin/getconf ]; then
10139N/A CPUS=`getconf _NPROCESSORS_ONLN`
10139N/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
19064N/Aaclocal $ACLOCAL_FLAGS -I ./m4m -I ./auto-m4
10990N/Aautoheader
19064N/Aautomake -a -f
10139N/Aautoconf
10139N/APATH="/usr/X11R6/bin:$PATH" CFLAGS="$RPM_OPT_FLAGS" ./configure \
10139N/A --prefix=%{_prefix} \
10139N/A --mandir=%{_mandir} \
10139N/A --bindir=%{_bindir} \
10139N/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
10139N/A[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
10139N/A
10139N/A%files
10139N/A%defattr(-,root,root)
10139N/A%{_bindir}/gphoto2
10139N/A%{_datadir}/locale/*/LC_MESSAGES/*.mo
10139N/A%{_mandir}/man1/*
10139N/A
10139N/A%changelog
19064N/A* Wed Oct 27 2010 - brian.cameron@oracle.com
19064N/A- Bump to 2.4.10.
18636N/A* Tue Apr 20 2010 - brian.cameron@sun.com
18180N/A- Bump to 2.4.9.
18636N/A* Mon Jan 25 2009 - brian.cameron@sun.com
18636N/A- Bump to 2.4.8.
17626N/A* Wed Oct 28 2009 - harry.fu@sun.com
17626N/A- Add patch gphoto2-02-gettext.diff.
17548N/A* Sat Oct 17 2009 - brian.cameron@sun.com
17548N/A- Bump to 2.4.7.
16311N/A* Fri Apr 03 2009 - brian.cameron@sun.com
16311N/A- Bump to 2.4.5.
15703N/A* Wed Jan 21 2009 - brian.cameron@sun.com
15703N/A- Bump to 2.4.4.
15236N/A* Tue Oct 21 2008 - brian.cameron@sun.com
15236N/A- Bump to 2.4.3.
13733N/A* Fri Aug 01 2008 - matt.keenan@sun.com
13733N/A- Add man page attributes patch
13614N/A* Mon Jul 21 2008 - brian.cameron@sun.com
13614N/A- Bump to 2.4.2.
12705N/A* Sat Mar 29 2008 - brian.cameron@sun.com
12705N/A- Bump to 2.4.1.
12004N/A* Wed Nov 28 2007 - brian.cameron@sun.com
12004N/A- Bump to 2.4.0 and add back patch gphoto2-02-fixbuild.diff
11046N/A* Mon Aug 13 2007 - brian.cameron@sun.com
11046N/A- Bump back to 2.3.1, since 2.4.0 depends on libltdl which is not
11046N/A yet in Nevada (it is a part of libtool). Will bump back to 2.4.0 once
11046N/A libtool is in Nevada.
10990N/A* Tue Jul 31 2007 - brian.cameron@sun.com
10990N/A- Bump to 2.4.0.
10392N/A* Mon Apr 2 2007 - laca@sun.com
10392N/A- force using automake 1.9
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
10139N/A* Thu Sep 16 2004 - ciaran.mcdermott@sun.com
10139N/A- Added gphoto2-04-g11n-alllinguas.diff to add hu lingua.
10139N/A* Tue Aug 24 2004 - laszlo.kovacs@sun.com
10139N/A- fix man pge installation
10139N/A* Fri Aug 20 2004 - laszlo.kovacs@sun.com
10139N/A- added man page to pkg list
10139N/A* Thu Jul 08 2004 - damien.donlon@sun.com
10139N/A- Updated l10n content to gphoto2-l10n-po-1.2.tar.bz2
10139N/A* Wed Jul 07 2004 - dermot.mccluskey@sun.com
10139N/A- added "-j $CPUS" to make to speed up builds
10139N/A* Wed May 12 2004 - damien.donlon@sun.com
10139N/A- Updated l10n content to gphoto2-l10n-po-1.1.tar.bz2
10139N/A* Tue May 04 2004 - laca@sun.com
10139N/A- grrr... don't rm -rf $RPM_BUILD_ROOT in %install, do it in %clean
10139N/A* Mon May 03 2004 - dermot.mccluskey@sun.com
10139N/A- fixed %install cleanup error
10139N/A* Wed Apr 14 2004 - brian.cameron@sun.com
10139N/A- Added $ACLOCAL_FLAGS to aclocal call, needed for Solaris.
10139N/A* Wed Apr 07 2004 - brian.cameron@sun.com
10139N/A- Removed -n from %changelog. It breaks Solaris and Laca recommended
10139N/A removing it.
10139N/A* Mon Mar 29 2004 - damien.donlon@sun.com
10139N/A- Updated l10n content to gphoto2-l10n-po-1.0.tar.bz2
10139N/A* Wed Feb 04 2004 - matt.keenan@sun.com
10139N/A- Ported Patch 01 from QS
10139N/A* Wed Feb 04 2004 - matt.keenan@sun.com
10139N/A- New tarball 2.1.4 for Cinnabar
10139N/A* Tue Oct 14 2003 - matt.keenan@sun.com
10139N/A- New Tarball 2.1.2 for QS
10139N/A* Wed Jul 16 2003 - matt.keenan@sun.com
10139N/A- Initial version