gphoto2.spec
author dcarbery
Fri, 24 Nov 2006 16:37:59 +0000
branch217update
changeset 19096 d542fc2c823e
parent 8564 df62c23d2955
child 8756 4ca44ad2b521
child 19010 e42e2a66fa57
permissions -rw-r--r--
Merged trunk changes r9797:9829 into 217update branch.

#
# spec file for package gphoto2
#
# Copyright (c) 2005 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Owner: mattman
#
Name:         gphoto2
License:      GPL
Group:        Hardware/Other
Version:      2.2.0
Release:      1
Distribution: Java Desktop System
Vendor:       Sun Microsystems, Inc.
Summary:      Digital camera utility
Source:       http://heanet.dl.sourceforge.net/sourceforge/gphoto/%{name}-%{version}.tar.bz2
Patch1:       gphoto2-01-build.diff
URL:          http://www.gphoto.org
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
DocDir:       %{_defaultdocdir}/gphoto2
Autoreqprov:  on

%define libgphoto2_version 2.1.2

Requires:      libgphoto2 >= %{libgphoto2_version}
BuildRequires: libgphoto2 >= %{libgphoto2_version}

%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

%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 $ACLOCAL_FLAGS -I ./m4m
automake -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 Jul 24 2006 - [email protected]
- add option --with-libintl-prefix=/usr
* Web Jul 21 2006 - [email protected]
- Bump to 2.2.0.
* Tue Jan 03 2006 - [email protected]
- Bump to 2.1.99.
* Tue Sep 20 2005 - [email protected]
- update patches forte-configure and forte-fixes and merge them into one
* Mon Aug 15 2005 - [email protected]
- Bump to 2.1.6.
* Wed Jun 08 2005 - [email protected]
- Bump to 2.1.5
* Fri Nov 12 2004 - [email protected]
- Added --bindir=%{_bindir} so it can be redirected on Solaris
* Thu Oct 07 2004 - [email protected]
- Backing out Patch4,only applies in linux
- and not in Solaris for unknown reason.
* Thu Oct 07 2004 - [email protected]
- Recreated gphoto2-04-g11n-alllinguas.diff
* Mon Sep 20 2004 - [email protected]
- Removed patch 04
* Thu Sep 16 2004 - [email protected]
- Added gphoto2-04-g11n-alllinguas.diff to add hu lingua.
* Tue Aug 24 2004 - [email protected]
- fix man pge installation
* Fri Aug 20 2004 - [email protected]
- added man page to pkg list
* Thu Jul 08 2004 - [email protected]
- Updated l10n content to gphoto2-l10n-po-1.2.tar.bz2
* Wed Jul 07 2004 - [email protected]
- added "-j $CPUS" to make to speed up builds
* Wed May 12 2004 - [email protected]
- Updated l10n content to gphoto2-l10n-po-1.1.tar.bz2
* Tue May 04 2004 - [email protected]
- grrr... don't rm -rf $RPM_BUILD_ROOT in %install, do it in %clean
* Mon May 03 2004 - [email protected]
- fixed %install cleanup error
* Wed Apr 14 2004 - [email protected]
- Added $ACLOCAL_FLAGS to aclocal call, needed for Solaris.
* Wed Apr 07 2004 - [email protected]
- Removed -n from %changelog.  It breaks Solaris and Laca recommended
  removing it.
* Mon Mar 29 2004 - [email protected]
- Updated l10n content to gphoto2-l10n-po-1.0.tar.bz2
* Wed Feb 04 2004 - [email protected]
- Ported Patch 01 from QS
* Wed Feb 04 2004 - [email protected]
- New tarball 2.1.4 for Cinnabar
* Tue Oct 14 2003 - [email protected]
- New Tarball 2.1.2 for QS
* Wed Jul 16 2003 - [email protected]
- Initial version