gphoto2.spec revision 17177
10139N/A#
10139N/A# spec file for package gphoto2
10139N/A#
10139N/A# Copyright (c) 2008 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
12636N/A# package are under the same license as the package itself.
10139N/A#
10139N/A# Owner: mattman
10139N/A# bugdb: http://sourceforge.net/tracker/index.php?func=detail&group_id=8874&atid=108874&aid=
17185N/A#
10139N/A
10139N/A%define OSR 2306:2.1.4
10139N/A
17176N/AName: gphoto2
17176N/ALicense: GPL
10139N/AGroup: Hardware/Other
10139N/AVersion: 2.4.5
10139N/ARelease: 1
10139N/ADistribution: Java Desktop System
10139N/AVendor: Sun Microsystems, Inc.
18688N/ASummary: Digital camera utility
18688N/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
18593N/A# date:2008-08-01 type:branding owner:mattman
18593N/APatch2: gphoto2-02-man.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}
14143N/A
14143N/A%description
14143N/AgPhoto (GNU Photo) is a commandline tool for previewing, retrieving, and
16770N/Acapturing images from a range of supported digital camerason to your
16770N/Alocal harddrive.
16770N/A
17134N/A(It does not support digital cameras based on the USB storage protocol,
17134N/Athose can be mounted by Linux directly.)
18417N/A
18417N/AAs of this time gPhoto supports around 200 cameras, listed on:
18417N/A
10139N/A http://www.gphoto.org/cameras.html
12636N/A
10139N/Aor by running
10139N/A
10139N/A gphoto2 --list-cameras
10139N/A
10139N/A%prep
16584N/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
10532N/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
14143N/Afi
16770N/A
17134N/A%ifos solaris
18417N/Aglib-gettextize -f
10139N/A%endif
10139N/Alibtoolize --copy --force
10139N/Aaclocal-1.9 $ACLOCAL_FLAGS -I ./m4m -I ./auto-m4
10139N/Aautoheader
17049N/Aautomake-1.9 -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
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
10139N/A- Bump to 2.4.2.
10139N/A* Sat Mar 29 2008 - brian.cameron@sun.com
10139N/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
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
10139N/A