123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252 |
- Summary: Library for accessing digital cameras
- Summary(ja): デジタルカメラにアクセスするためのライブラリ
- Name: libgphoto2
- Version: 2.5.7
- Release: 1%{?_dist_release}
- # GPLV2+ for the main lib (due to exif.c) and most plugins, some plugins GPLv2
- License: GPLv2+ and GPLv2
- Group: System Environment/Libraries
- URL: http://www.gphoto.org/
- Source0: http://downloads.sourceforge.net/gphoto/libgphoto2-%{version}.tar.bz2
- Patch1: gphoto2-pkgcfg.patch
- Patch2: gphoto2-storage.patch
- Patch3: gphoto2-ixany.patch
- Patch5: gphoto2-device-return.patch
- BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
- #BuildRequires: libusb-devel >= 0.1.6a
- BuildRequires: libusb1-devel
- BuildRequires: libexif-devel
- BuildRequires: libjpeg-devel
- BuildRequires: pkgconfig, sharutils
- BuildRequires: libtool-ltdl-devel >= 2.2.6a
- BuildRequires: popt-devel
- BuildRequires: dbus-devel
- BuildRequires: gd-devel
- # we run autoreconf:
- #BuildRequires: autoconf, automake, libtool, gettext, cvs
- Obsoletes: gphoto2 < 2.4.0
- Obsoletes: gphoto2-devel < 2.4.0
- Vendor: Project Vine
- Distribution: Vine Linux
- %description
- libgphoto2 is a library that can be used by applications to access
- various digital cameras. libgphoto2 itself is not a GUI application,
- opposed to gphoto. There are GUI frontends for the gphoto2 library,
- however, such as gtkam for example.
- %package devel
- Summary: Headers and links to compile against the libgphoto2 library
- Group: Development/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires: pkgconfig
- #Requires: libusb-devel >= 0.1.6a
- #Requires: libusb1-devel
- Requires: libexif-devel
- Obsoletes: gphoto2 < 2.4.0-11
- Obsoletes: gphoto2-devel < 2.4.0-11
- Provides: gphoto2-devel = %{version}-%{release}
- %description devel
- libgphoto2 is a library that can be used by applications to access
- various digital cameras. libgphoto2 itself is not a GUI application,
- opposed to gphoto. There are GUI frontends for the gphoto2 library,
- however, such as gtkam for example.
- This package contains files needed to compile applications that
- use libgphoto2.
- %prep
- %setup -q
- %patch1 -p1 -b .pkgcfg
- %patch2 -p1 -b .storage
- %patch3 -p1 -b .ixany
- %patch5 -p1 -b .device-return
- for i in AUTHORS ChangeLog COPYING libgphoto2_port/AUTHORS libgphoto2_port/COPYING.LIB `find -name 'README.*'`; do
- mv ${i} ${i}.old
- iconv -f ISO-8859-1 -t UTF-8 < ${i}.old > ${i}
- touch -r ${i}.old ${i} || :
- rm -f ${i}.old
- done
- %build
- export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
- %configure \
- udevscriptdir='/lib/udev' \
- --with-drivers=all \
- --with-doc-dir=%{_docdir}/%{name} \
- --disable-static \
- --disable-rpath \
- --without-aalib \
- --without-hal
- # Don't use rpath!
- sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
- sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
- sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libgphoto2_port/libtool
- sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libgphoto2_port/libtool
- make %{?_smp_mflags}
- %install
- rm -rf "${RPM_BUILD_ROOT}"
- make mandir=%{_mandir} DESTDIR=$RPM_BUILD_ROOT install
- pushd packaging/linux-hotplug/
- install -d -m755 %{buildroot}/usr/share/hal/fdi/information/20thirdparty/
- export LIBDIR=$RPM_BUILD_ROOT%{_libdir}
- export CAMLIBS=$RPM_BUILD_ROOT%{_libdir}/%{name}/%{version}
- export LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}
- #$RPM_BUILD_ROOT%{_libdir}/%{name}/print-camera-list hal-fdi | \
- #grep -v "<!-- This file was generated" > $RPM_BUILD_ROOT/%{_datadir}/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi
- # Output udev rules for device identification; this is used by GVfs gphoto2
- # backend and others.
- #
- # Btw, since it's /lib/udev, never e.g. /lib64/udev, we hardcode the path
- #
- mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d
- $RPM_BUILD_ROOT%{_libdir}/%{name}/print-camera-list udev-rules version 136 > $RPM_BUILD_ROOT/lib/udev/rules.d/40-libgphoto2.rules
- popd
- # remove circular symlink in /usr/include/gphoto2 (#460807)
- rm -f $RPM_BUILD_ROOT%{_includedir}/gphoto2/gphoto2
- # remove unneeded print-camera-list from libdir (#745081)
- rm -f $RPM_BUILD_ROOT%{_libdir}/libgphoto2/print-camera-list
- rm -rf $RPM_BUILD_ROOT%{_libdir}/libgphoto2/*/*a
- rm -rf $RPM_BUILD_ROOT%{_libdir}/libgphoto2_port/*/*a
- rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a
- rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
- rm -f libgphoto.lang
- %find_lang %{name}-6
- %find_lang %{name}_port-12
- cat %{name}*.lang >> libgphoto.lang
- # https://fedoraproject.org/wiki/Packaging_tricks#With_.25doc
- rm -rf __doc
- mkdir -p __doc
- mv $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/* __doc
- rm -rf $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
- %clean
- rm -rf "${RPM_BUILD_ROOT}"
- %post -p /sbin/ldconfig
- %postun -p /sbin/ldconfig
- %files -f libgphoto.lang
- %defattr(-,root,root)
- %doc AUTHORS COPYING README NEWS
- %dir %{_libdir}/libgphoto2_port
- %dir %{_libdir}/libgphoto2_port/*
- %dir %{_libdir}/libgphoto2
- %dir %{_libdir}/libgphoto2/*
- %{_libdir}/libgphoto2_port/*/*.so
- %{_libdir}/libgphoto2/*/*.so
- %{_libdir}/*.so.*
- #{_datadir}/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi
- /lib/udev/rules.d/40-libgphoto2.rules
- /lib/udev/check-ptp-camera
- %files devel
- %defattr(-,root,root)
- %doc __doc/*
- %{_datadir}/libgphoto2
- %{_bindir}/gphoto2-config*
- %{_bindir}/gphoto2-port-config
- %{_includedir}/gphoto2
- %{_libdir}/*.so
- %{_libdir}/pkgconfig/*
- %{_mandir}/man3/*
- %changelog
- * Sun Feb 8 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.5.7-1
- - updated to 2.5.7
- * Wed Oct 02 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.5.0-2
- - rebuilt with gd-2.1.0.
- * Fri Jan 11 2013 IWAI, Masaharu <iwai@alib.jp> 2.5.0-1
- - update to 2.5.0
- - drop MAX_ENTRIES patch (Patch4): obsolete
- - update libusb version: 0.1.5 -> 0.1.6a
- - add BuildRequires: libusb1-devel
- - add Requires: libusb1
- - add Vendor and Distribution tags
- * Fri Jun 10 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.11-2
- - add BR: dbus-devel, gd-devel
- - add --without-hal
- * Fri Jun 10 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.11-1
- - update to 2.4.11
- - install udev script to /lib/udev
- - add udev rules
- * Thu Sep 23 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.5-2
- - rebuild with rpm-4.8.1 for pkg-config file
- * Wed Apr 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.5-1
- - new upstream release
- - build with libtool-2.2.6a
- * Sat Mar 7 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.4-1
- - new upstream release
- - dropped Patch6
- - changed Group to System Environment/Libraries
- - added BuildRequires: popt-devel instead of popt
- - added BuildRequires: cvs
- * Thu Jul 03 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.1-1
- - initial build for Vine Linux
- * Fri Jun 20 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 2.4.1-5
- - fix pkgcfg patch to match actual .pc file names (fixes kdegraphics build)
- * Thu Jun 12 2008 Jindrich Novy <jnovy@redhat.com> 2.4.1-3
- - libgphoto2-devel requires libusb-devel and libexif-devel for
- pkgconfig
- * Wed Jun 04 2008 Jindrich Novy <jnovy@redhat.com> 2.4.1-2
- - fix obsoletes
- - workaround problem with coreutils-6.12 and RHEL5-xen kernels
- what prevents libgphoto2 koji build
- * Mon Jun 02 2008 Jindrich Novy <jnovy@redhat.com> 2.4.1-1
- - update to 2.4.1 (#443515, #436138)
- * Thu May 29 2008 Stepan Kasal <skasal@redhat.com> 2.4.0-3
- - drop gphoto2-norpath.patch
- - use quoted here-document in %%prep
- - fix some typos in m4 sources
- - run autoreconf to get autotools right
- * Mon Apr 21 2008 Jindrich Novy <jnovy@redhat.com> 2.4.0-2
- - apply patch to fix build with libusb
- * Fri Apr 18 2008 Jindrich Novy <jnovy@redhat.com> 2.4.0-1
- - backport patch from upstream to avoid segfault when
- data phase is skipped for certain devices (#435413)
- - initial build
- * Mon Apr 14 2008 Jindrich Novy <jnovy@redhat.com> 2.4.0-0.2
- - review fixes, thanks to Hans de Goede: (#437285)
- - remove unused macro
- - don't exclude s390/s390x
- - preserve timestamps
- - fix license
- * Thu Mar 13 2008 Jindrich Novy <jnovy@redhat.com> 2.4.0-0.1
- - initial libgphoto2 packaging
|