gphoto2.spec revision 16311
10139N/A#
10139N/A# spec file for package gphoto2
10139N/A#
12309N/A# Copyright (c) 2008 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#
17835N/A# Owner: mattman
17835N/A# bugdb: http://sourceforge.net/tracker/index.php?func=detail&group_id=8874&atid=108874&aid=
10139N/A#
17177N/AName: gphoto2
17177N/ALicense: GPL
17177N/AGroup: Hardware/Other
10139N/AVersion: 2.4.5
10139N/ARelease: 1
10139N/ADistribution: Java Desktop System
18532N/AVendor: Sun Microsystems, Inc.
10139N/ASummary: Digital camera utility
10139N/ASource: http://kent.dl.sourceforge.net/sourceforge/gphoto/gphoto2-%{version}.tar.bz2
10139N/A# date:2005-09-30 type:bug owner:dcarbery bugster:6570425
10139N/APatch1: gphoto2-01-gettext.diff
18532N/A# date:2008-08-01 type:branding owner:mattman
12773N/APatch2: gphoto2-02-man.diff
12773N/AURL: http://www.gphoto.org
12773N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
11187N/ADocDir: %{_defaultdocdir}/gphoto2
10139N/AAutoreqprov: on
11963N/A
14083N/A%define libgphoto2_version 2.1.2
15505N/A
15505N/ARequires: libgphoto2 >= %{libgphoto2_version}
16116N/ABuildRequires: libgphoto2 >= %{libgphoto2_version}
16116N/A
18370N/A%description
18370N/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
10139N/A%patch2 -p1
10139N/A
10139N/A%build
10139N/A%ifos linux
10139N/Aif [ -x /usr/bin/getconf ]; then
11129N/A CPUS=`getconf _NPROCESSORS_ONLN`
11129N/Afi
15505N/A%else
16116N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
18370N/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-1.9 $ACLOCAL_FLAGS -I ./m4m -I ./auto-m4
10139N/Aautoheader
10139N/Aautomake-1.9 -a -f
10139N/Aautoconf
16227N/APATH="/usr/X11R6/bin:$PATH" CFLAGS="$RPM_OPT_FLAGS" ./configure \
16227N/A --prefix=%{_prefix} \
16227N/A --mandir=%{_mandir} \
10139N/A --bindir=%{_bindir} \
10139N/A --libdir=%{_libdir} \
10139N/A --includedir=%{_includedir} \
10139N/A --with-cdk-prefix={_prefix} \
12773N/A --with-libintl-prefix=/usr \
12773N/A --with-doc-dir=%{_defaultdocdir}/%{name}
12773N/Amake -j $CPUS INTLLIBS=
12773N/A
12773N/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
16310N/A%{_mandir}/man1/*
10139N/A
10139N/A%changelog
10139N/A* Fri Apr 03 2009 - brian.cameron@sun.com
10139N/A- Bump to 2.4.5.
10139N/A* Wed Jan 21 2009 - brian.cameron@sun.com
10139N/A- Bump to 2.4.4.
10139N/A* Tue Oct 21 2008 - brian.cameron@sun.com
10139N/A- Bump to 2.4.3.
10139N/A* Fri Aug 01 2008 - matt.keenan@sun.com
10139N/A- Add man page attributes patch
10139N/A* Mon Jul 21 2008 - brian.cameron@sun.com
16227N/A- Bump to 2.4.2.
16227N/A* Sat Mar 29 2008 - brian.cameron@sun.com
16227N/A- Bump to 2.4.1.
10139N/A* Wed Nov 28 2007 - brian.cameron@sun.com
10139N/A- Bump to 2.4.0 and add back patch gphoto2-02-fixbuild.diff
10139N/A* Mon Aug 13 2007 - brian.cameron@sun.com
10139N/A- Bump back to 2.3.1, since 2.4.0 depends on libltdl which is not
10139N/A yet in Nevada (it is a part of libtool). Will bump back to 2.4.0 once
10139N/A libtool is in Nevada.
10139N/A* Tue Jul 31 2007 - brian.cameron@sun.com
10139N/A- Bump to 2.4.0.
10139N/A* Mon Apr 2 2007 - laca@sun.com
10139N/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
11131N/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.
18532N/A* Thu Oct 07 2004 - ciaran.mcdermott@sun.com
18532N/A- Recreated gphoto2-04-g11n-alllinguas.diff
17396N/A* Mon Sep 20 2004 - dermot.mccluskey@sun.com
17396N/A- Removed patch 04
17299N/A* Thu Sep 16 2004 - ciaran.mcdermott@sun.com
17299N/A- Added gphoto2-04-g11n-alllinguas.diff to add hu lingua.
16650N/A* Tue Aug 24 2004 - laszlo.kovacs@sun.com
16650N/A- fix man pge installation
16227N/A* Fri Aug 20 2004 - laszlo.kovacs@sun.com
16227N/A- added man page to pkg list
16160N/A* Thu Jul 08 2004 - damien.donlon@sun.com
16160N/A- Updated l10n content to gphoto2-l10n-po-1.2.tar.bz2
16116N/A* Wed Jul 07 2004 - dermot.mccluskey@sun.com
16116N/A- added "-j $CPUS" to make to speed up builds
16116N/A* Wed May 12 2004 - damien.donlon@sun.com
16116N/A- Updated l10n content to gphoto2-l10n-po-1.1.tar.bz2
15864N/A* Tue May 04 2004 - laca@sun.com
15864N/A- grrr... don't rm -rf $RPM_BUILD_ROOT in %install, do it in %clean
15505N/A* Mon May 03 2004 - dermot.mccluskey@sun.com
15505N/A- fixed %install cleanup error
15505N/A* Wed Apr 14 2004 - brian.cameron@sun.com
15448N/A- Added $ACLOCAL_FLAGS to aclocal call, needed for Solaris.
15448N/A* Wed Apr 07 2004 - brian.cameron@sun.com
14477N/A- Removed -n from %changelog. It breaks Solaris and Laca recommended
14477N/A removing it.
14477N/A* Mon Mar 29 2004 - damien.donlon@sun.com
14477N/A- Updated l10n content to gphoto2-l10n-po-1.0.tar.bz2
14087N/A* Wed Feb 04 2004 - matt.keenan@sun.com
14087N/A- Ported Patch 01 from QS
14083N/A* Wed Feb 04 2004 - matt.keenan@sun.com
14083N/A- New tarball 2.1.4 for Cinnabar
14083N/A* Tue Oct 14 2003 - matt.keenan@sun.com
14083N/A- New Tarball 2.1.2 for QS
14083N/A* Wed Jul 16 2003 - matt.keenan@sun.com
14079N/A- Initial version
14079N/A