# Arches on which we need to prevent arch conflicts in gphoto2-config %define multilib_arches %{ix86} ia64 ppc ppc64 s390 s390x x86_64 Summary: Software for accessing digital cameras Name: libgphoto2 Version: 2.4.0 Release: 4%{?dist} License: GPLv2 and LGPLv2+ Group: Applications/Multimedia BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source: http://prdownloads.sourceforge.net/gphoto/%{name}-%{version}.tar.bz2 Source1: 90-gphoto-camera-policy.fdi Source2: gphoto-set-procperm Url: http://www.gphoto.org/ ExcludeArch: s390 s390x Requires: lockdev BuildRequires: libusb-devel >= 0.1.5 BuildRequires: lockdev-devel BuildRequires: libexif-devel BuildRequires: libjpeg-devel, readline-devel BuildRequires: libtool, pkgconfig, sharutils BuildRequires: libtool-ltdl-devel, popt %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 library that digital camera applications can use. Other (GUI) frontends are available separately. %package devel Summary: Headers and links to compile against the libgphoto2 library Requires: %{name} = %{version} Requires: pkgconfig Requires: libexif-devel libusb-devel Group: Development/Libraries %description devel 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 for some older camera models you must use the old "gphoto" package. This package contains the files needed to compile applications that use libgphoto2. %prep %setup -q %build export CFLAGS=$RPM_OPT_FLAGS %configure \ --with-drivers=all \ --with-doc-dir=%{_docdir}/%{name} \ --disable-static \ --without-aalib make %install rm -rf %{buildroot} make mandir=%{_mandir} DESTDIR=%{buildroot} install install -d -m755 %{buildroot}/usr/share/hal/fdi/information/20thirdparty/ %{buildroot}%{_libdir}/%{name}/print-camera-list hal-fdi | \ grep -v "