Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > bcb61d15f628fcdcc296bca23ea549ed > files > 4

capture-1.0.4-4mdv2009.0.src.rpm

%define cvsversion 20071123

Summary:	Command line tools to remote control Canon digital cameras
Name:		capture
Version:	1.0.4
Release:	%mkrel 4
License:	GPL
Group:		Graphics
URL:		http://capture.sourceforge.net/
Source0:	http://heanet.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}-cvs-%{cvsversion}.tar.gz
Patch0:		capture-gcc4.patch
Patch1:		capture-no-Werror.diff
#Patch0:		ptp-utils.patch
#Patch1:		viewfinder.patch
BuildRequires:	libptp2-devel
BuildRequires:  libusb-devel
BuildRequires:  libreadline-devel
BuildRequires:  ncurses-devel
BuildRequires:	gtk+2-devel
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
Canon's digital cameras can all be remote-controlled by a PC via
USB. The camera comes only with Windows software for that. To
remote-capture with free software, you can use this utility. It is
based on libptp and does not only capture but also gives access to all
camera settings and it opens a live viewfinder window on the PC
screen.

The tool is command-line based, either for doing actions with shell
commands (out of scripts for example) or in an interactive command
mode (start "capture" without arguments and on the "capture>" prompt,
type "help" to know the commands and its arguments.

Should work with all compact digital cameras from Canon, most probably
does not work with all Canon EOS DSLRs. Tested with Canon PowerShot
A60, A70, S50, S60, S400 (Digital IXUS 400), they all work. Also
tested with the Canon EOS 300D (Digital Rebel) and 10D, these cameras
do not work (error on the "start" command). Note that you have to
switch your camera into PTP mode if it has an appropriate entry in its
"Setup" menu. If there is no such menu entry, the camera switches
automatically.

%prep

%setup -q -n %{name}-%{version}-cvs-%{cvsversion}
%patch0 -p1 -b .gcc4
%patch1 -p0

%build
%make RPM_OPT_FLAGS="%{optflags}"

%install
rm -rf %buildroot

install -m755 capture -D %buildroot%{_bindir}/capture
install -m755 job -D %buildroot%{_bindir}/capture-job
install -m755 example.sh -D %buildroot%{_bindir}/capture-example.sh

%find_lang %{name}

%clean
rm -rf %buildroot

%files -f %{name}.lang
%defattr(-,root,root)
%doc README ChangeLog
%{_bindir}/*


%changelog
* Tue Jul 29 2008 Oden Eriksson <oeriksson@mandriva.com> 1.0.4-4mdv2009.0
+ Revision: 252787
- "new" snap (20071123)
- fix build (P1)

  + Thierry Vignaud <tvignaud@mandriva.com>
    - rebuild
    - kill re-definition of %%buildroot on Pixel's request

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Fri May 04 2007 Funda Wang <fundawang@mandriva.org> 1.0.4-1mdv2008.0
+ Revision: 22587
- BuildRequires gtk+2
- Import capture



* Fri May 04 2007 hajma <tropikhajma@gmail.com> 1.0.4-mdv2008.0
- new version

* Fri Oct 21 2005 Nicolas Lécureuil <neoclust@mandriva.org> 1.0.3-2mdk
- Fix BuildRequires
- %%mkrel

* Wed Apr 13 2005 Till Kamppeter <till@mandrakesoft.com> 1.0.3-1mdk
- Updated to version 1.0.3.
- New URL.

* Thu Jan 20 2005 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 1.0.2-2mdk
- rebuild for new readline

* Wed Jan 12 2005 Till Kamppeter <till@mandrakesoft.com> 1.0.2-1mdk
- Updated to version 1.0.2.

* Tue Aug 17 2004 Till Kamppeter <till@mandrakesoft.com> 1.0.1-2mdk
- Description/Summary text fixes.

* Tue Aug 17 2004 Till Kamppeter <till@mandrakesoft.com> 1.0.1-1mdk
- Initial release