##### GENERAL STUFF ##### Summary: Command line utilities to access digital cameras Name: gphoto2 Version: 2.1.1 Release: 0.4mdk License: LGPL Group: Graphics ##### SOURCE FILES ##### Source: http://sourceforge.net/projects/gphoto/gphoto2-cvs20020808.tar.bz2 ##### ADDITIONAL DEFINITIONS ##### Url: http://sourceforge.net/projects/gphoto/ BuildRoot: %{_tmppath}/%{name}-buildroot Requires: libusb0.1_4 >= 0.1.6 libgpio0 libexif7 Obsoletes: hackgphoto2 Provides: hackgphoto2 Conflicts: libgphoto2 < 2.1.1 PreReq: hotplug >= 2001_04_24-13 PreReq: /sbin/ldconfig, grep, fileutils BuildRequires: glib-devel libusb-devel >= 0.1.6 zlib-devel findutils perl BuildRequires: libexif7-devel ##### SUB-PACKAGES ##### %description The gPhoto2 project is a universal, free application and library framework that lets you download images from several different digital camera models, including the newer models with USB connections. Note that a) for some older camera models you must use the old "gphoto" package. b) for USB mass storage models you must use the driver in the kernel This package contains the command-line utility gphoto2. ##### PREP ##### %prep #rm -rf ${RPM_BUILD_DIR}/%{name}-%{version} #%setup -q -n %{name}-%{version} rm -rf ${RPM_BUILD_DIR}/%{name} %setup -q -n %{name} # Remove zh_CN locale, it is broken rm -f po/zh_CN.po perl -p -i -e "s/zh_CN//" configure.in ##### BUILD ##### %build # CVS version needs "./autogen.sh" ./autogen.sh #configure --enable-docs --with-docs-dir=%{buildroot}%{_docdir}/%{name} --with-doc-formats="man html" %configure --with-docs-dir=%{buildroot}%{_docdir}/%{name} --with-doc-formats="man html" #configure --without-fig2dev --with-docs-dir=%{buildroot}%{_docdir}/%{name} %make ##### INSTALL ##### %install rm -rf ${RPM_BUILD_ROOT} # Let all documentation go into /usr/share/doc/gphoto2-%{version}/ mkdir -p %{buildroot}/usr/share/doc/gphoto2-%{version}/ ln -s %{buildroot}/usr/share/doc/gphoto2-%{version}/ %{buildroot}/usr/share/doc/gphoto2 %makeinstall # Remove the link, we don't need it any more. rm -f %{buildroot}/usr/share/doc/gphoto2 %find_lang %{name} # Install documentation cp ABOUT-NLS README COPYING ChangeLog %{buildroot}/usr/share/doc/gphoto2-%{version}/ ##### PRE/POST INSTALL SCRIPTS ##### ##### CLEAN UP ##### %clean rm -rf $RPM_BUILD_ROOT ##### FILE LISTS FOR ALL BINARY PACKAGES ##### ##### gphoto2 %files -f %{name}.lang %defattr(-,root,root) %{_bindir}/* %docdir %{_docdir}/gphoto2-%{version} %{_docdir}/gphoto2-%{version} ##### CHANGELOG ##### %changelog * Wed Aug 8 2002 Till Kamppeter <till@mandrakesoft.com> 2.1.1-0.4mdk - Updated to CVS of 08/08/2002 (Filename template support in "--filename" option, %n for image number, %C for file name extension, %f for original file name, and for the capturing date all placeholders as used by the date(1) command, example "--filename LinuxTag2002_%n.%C"). * Wed Aug 7 2002 Till Kamppeter <till@mandrakesoft.com> 2.1.1-0.3mdk - Fixed "Conflicts:"/"Obsoletes:"/"Provides:" for 8.2 -> 9.0 update. * Mon Aug 5 2002 Till Kamppeter <till@mandrakesoft.com> 2.1.1-0.2mdk - Rebuilt, previous version did not recognize ports. * Mon Aug 5 2002 Till Kamppeter <till@mandrakesoft.com> 2.1.1-0.1mdk - Separate gphoto2 and libgphoto2 packages. * Tue Jul 23 2002 Till Kamppeter <till@mandrakesoft.com> 2.1.0-6mdk - Rebuilt for new readline (4.3). * Fri Jul 19 2002 Till Kamppeter <till@mandrakesoft.com> 2.1.0-5mdk - Fixed typo in description. - Added missing "%%config(noreplace)" * Thu Jul 18 2002 Stefan van der Eijk <stefan@eijk.nu> 2.1.0-4mdk - fix conflicting directory (owned by pkgconfig) * Thu Jul 4 2002 Till Kamppeter <till@mandrakesoft.com> 2.1.0-3mdk - Activated some more documentation, a GhostScript problem (missing "png16m" driver) which prevented the documentation from building is fixed. - Cleaned up the documentation mess. * Wed Jul 3 2002 Till Kamppeter <till@mandrakesoft.com> 2.1.0-2mdk - Added EXIF JPEG extension support via libexif. * Tue Jul 2 2002 Till Kamppeter <till@mandrakesoft.com> 2.1.0-1mdk - Updated to 2.1.0 (contributed by Aaron Peromsik <aperomsik@mail.com>). * Tue Mar 19 2002 David BAUDENS <baudens@mandrakesoft.com> 2.0-3mdk - Revert hack for documentation on PPC (no longer needed) * Fri Mar 8 2002 Stew Benedict <sbenedict@mandrakesoft.com> 2.0-2mdk - docdir detection gives different result on PPC (redhat vs. default) - don't cp README on PPC, makeinstall already does it * Wed Mar 6 2002 Till Kamppeter <till@mandrakesoft.com> 2.0-1mdk - Updated to GPhoto2 2.0 final. * Mon Jan 28 2002 Till Kamppeter <till@mandrakesoft.com> 2.0-0.beta3.5mdk - Rebuilt for libusb 0.1.4. * Tue Dec 4 2001 Till Kamppeter <till@mandrakesoft.com> 2.0-0.beta3.4mdk - Updated to the CVS snapshot from 04/12/2001. * Fri Nov 30 2001 Till Kamppeter <till@mandrakesoft.com> 2.0-0.beta3.3mdk - Let preview of "gphoto2" not use aalib. * Fri Nov 30 2001 Till Kamppeter <till@mandrakesoft.com> 2.0-0.beta3.2mdk - Broken the BuildRequires in previous release, fixed. * Fri Nov 30 2001 Till Kamppeter <till@mandrakesoft.com> 2.0-0.beta3.1mdk - Updated to a CVS snapshot after 2.0-beta3. * Mon Oct 01 2001 Stefan van der Eijk <stefan@eijk.nu> 2.0-0.beta1.3mdk - BuildRequires: glib-devel zlib-devel * Mon Aug 6 2001 Till Kamppeter <till@mandrakesoft.com> 2.0-0.beta1.2mdk - Corrected "Requires:" * Mon Aug 6 2001 Till Kamppeter <till@mandrakesoft.com> 2.0-0.beta1.1mdk - Initial release