[521] | 1 | Summary: Library for accessing digital cameras |
---|
| 2 | Summary(ja): デジタルカメラにアクセスするためのライブラリ |
---|
| 3 | Name: libgphoto2 |
---|
[7334] | 4 | Version: 2.5.0 |
---|
[7856] | 5 | Release: 2%{?_dist_release} |
---|
[4100] | 6 | |
---|
[521] | 7 | # GPLV2+ for the main lib (due to exif.c) and most plugins, some plugins GPLv2 |
---|
| 8 | License: GPLv2+ and GPLv2 |
---|
| 9 | Group: System Environment/Libraries |
---|
[4100] | 10 | URL: http://www.gphoto.org/ |
---|
| 11 | |
---|
[521] | 12 | Source0: http://downloads.sourceforge.net/gphoto/libgphoto2-%{version}.tar.bz2 |
---|
| 13 | Patch1: gphoto2-pkgcfg.patch |
---|
| 14 | Patch2: gphoto2-storage.patch |
---|
| 15 | Patch3: gphoto2-ixany.patch |
---|
[4100] | 16 | Patch5: gphoto2-device-return.patch |
---|
[521] | 17 | |
---|
| 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
[7334] | 19 | BuildRequires: libusb-devel >= 0.1.6a |
---|
| 20 | BuildRequires: libusb1-devel |
---|
[521] | 21 | BuildRequires: libexif-devel |
---|
| 22 | BuildRequires: libjpeg-devel |
---|
| 23 | BuildRequires: pkgconfig, sharutils |
---|
| 24 | BuildRequires: libtool-ltdl-devel >= 2.2.6a |
---|
| 25 | BuildRequires: popt-devel |
---|
[4101] | 26 | BuildRequires: dbus-devel |
---|
| 27 | BuildRequires: gd-devel |
---|
[521] | 28 | # we run autoreconf: |
---|
| 29 | BuildRequires: autoconf, automake, libtool, gettext, cvs |
---|
| 30 | Obsoletes: gphoto2 < 2.4.0 |
---|
| 31 | Obsoletes: gphoto2-devel < 2.4.0 |
---|
| 32 | |
---|
[7334] | 33 | Vendor: Project Vine |
---|
| 34 | Distribution: Vine Linux |
---|
| 35 | |
---|
[521] | 36 | %description |
---|
| 37 | libgphoto2 is a library that can be used by applications to access |
---|
| 38 | various digital cameras. libgphoto2 itself is not a GUI application, |
---|
| 39 | opposed to gphoto. There are GUI frontends for the gphoto2 library, |
---|
| 40 | however, such as gtkam for example. |
---|
| 41 | |
---|
| 42 | %package devel |
---|
| 43 | Summary: Headers and links to compile against the libgphoto2 library |
---|
| 44 | Group: Development/Libraries |
---|
| 45 | Requires: %{name} = %{version}-%{release} |
---|
[7334] | 46 | Requires: pkgconfig |
---|
| 47 | Requires: libusb-devel >= 0.1.6a |
---|
| 48 | Requires: libusb1 |
---|
| 49 | Requires: libexif-devel |
---|
[521] | 50 | Obsoletes: gphoto2 < 2.4.0-11 |
---|
| 51 | Obsoletes: gphoto2-devel < 2.4.0-11 |
---|
| 52 | Provides: gphoto2-devel = %{version}-%{release} |
---|
| 53 | |
---|
| 54 | %description devel |
---|
| 55 | libgphoto2 is a library that can be used by applications to access |
---|
| 56 | various digital cameras. libgphoto2 itself is not a GUI application, |
---|
| 57 | opposed to gphoto. There are GUI frontends for the gphoto2 library, |
---|
| 58 | however, such as gtkam for example. |
---|
| 59 | |
---|
| 60 | This package contains files needed to compile applications that |
---|
| 61 | use libgphoto2. |
---|
| 62 | |
---|
| 63 | %prep |
---|
| 64 | %setup -q |
---|
| 65 | %patch1 -p1 -b .pkgcfg |
---|
| 66 | %patch2 -p1 -b .storage |
---|
| 67 | %patch3 -p1 -b .ixany |
---|
[4100] | 68 | %patch5 -p1 -b .device-return |
---|
[521] | 69 | |
---|
[4100] | 70 | for i in AUTHORS COPYING libgphoto2_port/AUTHORS libgphoto2_port/COPYING.LIB $(find -name 'README.*'); do |
---|
| 71 | mv ${i} ${i}.old |
---|
| 72 | iconv -f ISO-8859-1 -t UTF-8 < ${i}.old > ${i} |
---|
| 73 | touch -r ${i}.old ${i} || : |
---|
| 74 | rm -f ${i}.old |
---|
| 75 | done |
---|
| 76 | |
---|
[521] | 77 | # FIXME: These .pc.in files aren't actually being installed? |
---|
| 78 | cat > gphoto2.pc.in << \EOF |
---|
| 79 | prefix=@prefix@ |
---|
| 80 | exec_prefix=@exec_prefix@ |
---|
| 81 | libdir=@libdir@ |
---|
| 82 | includedir=@includedir@ |
---|
| 83 | VERSION=@VERSION@ |
---|
| 84 | |
---|
| 85 | Name: gphoto2 |
---|
| 86 | Description: Library for easy access to digital cameras |
---|
| 87 | Requires: |
---|
| 88 | Version: @VERSION@ |
---|
| 89 | Libs: -L${libdir} -lgphoto2 -lgphoto2_port -lm |
---|
| 90 | Cflags: -I${includedir} -I${includedir}/gphoto2 |
---|
| 91 | EOF |
---|
| 92 | sed 's/Name: gphoto2/Name: gphoto2-port/' < gphoto2.pc.in > gphoto2-port.pc.in |
---|
| 93 | |
---|
| 94 | %build |
---|
| 95 | export CFLAGS=$RPM_OPT_FLAGS |
---|
| 96 | %configure \ |
---|
[4100] | 97 | udevscriptdir='/lib/udev' \ |
---|
[521] | 98 | --with-drivers=all \ |
---|
| 99 | --with-doc-dir=%{_docdir}/%{name} \ |
---|
| 100 | --disable-static \ |
---|
| 101 | --disable-rpath \ |
---|
[4101] | 102 | --without-aalib \ |
---|
| 103 | --without-hal |
---|
[521] | 104 | make %{?_smp_mflags} |
---|
| 105 | |
---|
| 106 | %install |
---|
| 107 | rm -rf "${RPM_BUILD_ROOT}" |
---|
| 108 | |
---|
| 109 | make mandir=%{_mandir} DESTDIR=$RPM_BUILD_ROOT install |
---|
| 110 | |
---|
| 111 | pushd packaging/linux-hotplug/ |
---|
| 112 | install -d -m755 %{buildroot}/usr/share/hal/fdi/information/20thirdparty/ |
---|
| 113 | export LIBDIR=$RPM_BUILD_ROOT%{_libdir} |
---|
| 114 | export CAMLIBS=$RPM_BUILD_ROOT%{_libdir}/%{name}/%{version} |
---|
| 115 | export LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} |
---|
| 116 | $RPM_BUILD_ROOT%{_libdir}/%{name}/print-camera-list hal-fdi | \ |
---|
| 117 | grep -v "<!-- This file was generated" > $RPM_BUILD_ROOT/%{_datadir}/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi |
---|
[4100] | 118 | |
---|
| 119 | # Output udev rules for device identification; this is used by GVfs gphoto2 |
---|
| 120 | # backend and others. |
---|
| 121 | # |
---|
| 122 | # Btw, since it's /lib/udev, never e.g. /lib64/udev, we hardcode the path |
---|
| 123 | # |
---|
| 124 | mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d |
---|
| 125 | $RPM_BUILD_ROOT%{_libdir}/%{name}/print-camera-list udev-rules version 136 > $RPM_BUILD_ROOT/lib/udev/rules.d/40-libgphoto2.rules |
---|
[521] | 126 | popd |
---|
| 127 | |
---|
| 128 | rm -rf %{buildroot}%{_libdir}/libgphoto2/*/*a |
---|
| 129 | rm -rf %{buildroot}%{_libdir}/libgphoto2_port/*/*a |
---|
| 130 | rm -rf %{buildroot}%{_libdir}/*.a |
---|
| 131 | rm -rf %{buildroot}%{_libdir}/*.la |
---|
| 132 | |
---|
[7334] | 133 | %find_lang %{name}-6 |
---|
| 134 | %find_lang %{name}_port-10 |
---|
[521] | 135 | cat libgphoto2*.lang >> %{name}.lang |
---|
| 136 | |
---|
| 137 | %clean |
---|
| 138 | rm -rf "${RPM_BUILD_ROOT}" |
---|
| 139 | |
---|
| 140 | %files -f %{name}.lang |
---|
| 141 | %defattr(-,root,root) |
---|
| 142 | %doc AUTHORS COPYING README NEWS |
---|
| 143 | %dir %{_libdir}/libgphoto2_port |
---|
| 144 | %dir %{_libdir}/libgphoto2_port/* |
---|
| 145 | %dir %{_libdir}/libgphoto2 |
---|
| 146 | %dir %{_libdir}/libgphoto2/* |
---|
| 147 | %{_libdir}/libgphoto2_port/*/*.so |
---|
| 148 | %{_libdir}/libgphoto2/*/*.so |
---|
| 149 | %{_libdir}/*.so.* |
---|
| 150 | %{_datadir}/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi |
---|
[4100] | 151 | /lib/udev/rules.d/40-libgphoto2.rules |
---|
| 152 | /lib/udev/check-ptp-camera |
---|
[521] | 153 | |
---|
| 154 | %post -p /sbin/ldconfig |
---|
| 155 | |
---|
| 156 | %postun -p /sbin/ldconfig |
---|
| 157 | |
---|
| 158 | %files devel |
---|
| 159 | %defattr(-,root,root) |
---|
| 160 | %doc %{_docdir}/%{name} |
---|
| 161 | %{_datadir}/libgphoto2 |
---|
| 162 | %{_bindir}/gphoto2-config* |
---|
| 163 | %{_bindir}/gphoto2-port-config |
---|
| 164 | %{_includedir}/gphoto2 |
---|
| 165 | %{_libdir}/*.so |
---|
| 166 | %{_libdir}/pkgconfig/* |
---|
| 167 | %{_mandir}/man3/* |
---|
| 168 | |
---|
[3735] | 169 | |
---|
[521] | 170 | %changelog |
---|
[7856] | 171 | * Wed Oct 02 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.5.0-2 |
---|
| 172 | - rebuilt with gd-2.1.0. |
---|
| 173 | |
---|
[7334] | 174 | * Fri Jan 11 2013 IWAI, Masaharu <iwai@alib.jp> 2.5.0-1 |
---|
| 175 | - update to 2.5.0 |
---|
| 176 | - drop MAX_ENTRIES patch (Patch4): obsolete |
---|
| 177 | - update libusb version: 0.1.5 -> 0.1.6a |
---|
| 178 | - add BuildRequires: libusb1-devel |
---|
| 179 | - add Requires: libusb1 |
---|
| 180 | - add Vendor and Distribution tags |
---|
| 181 | |
---|
[4101] | 182 | * Fri Jun 10 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.11-2 |
---|
| 183 | - add BR: dbus-devel, gd-devel |
---|
| 184 | - add --without-hal |
---|
| 185 | |
---|
[4100] | 186 | * Fri Jun 10 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.11-1 |
---|
| 187 | - update to 2.4.11 |
---|
| 188 | - install udev script to /lib/udev |
---|
| 189 | - add udev rules |
---|
| 190 | |
---|
[3735] | 191 | * Thu Sep 23 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.5-2 |
---|
| 192 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
| 193 | |
---|
[521] | 194 | * Wed Apr 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.5-1 |
---|
| 195 | - new upstream release |
---|
| 196 | - build with libtool-2.2.6a |
---|
| 197 | |
---|
| 198 | * Sat Mar 7 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.4-1 |
---|
| 199 | - new upstream release |
---|
| 200 | - dropped Patch6 |
---|
| 201 | - changed Group to System Environment/Libraries |
---|
| 202 | - added BuildRequires: popt-devel instead of popt |
---|
| 203 | - added BuildRequires: cvs |
---|
| 204 | |
---|
| 205 | * Thu Jul 03 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.1-1 |
---|
| 206 | - initial build for Vine Linux |
---|
| 207 | |
---|
| 208 | * Fri Jun 20 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 2.4.1-5 |
---|
| 209 | - fix pkgcfg patch to match actual .pc file names (fixes kdegraphics build) |
---|
| 210 | |
---|
| 211 | * Thu Jun 12 2008 Jindrich Novy <jnovy@redhat.com> 2.4.1-3 |
---|
| 212 | - libgphoto2-devel requires libusb-devel and libexif-devel for |
---|
| 213 | pkgconfig |
---|
| 214 | |
---|
| 215 | * Wed Jun 04 2008 Jindrich Novy <jnovy@redhat.com> 2.4.1-2 |
---|
| 216 | - fix obsoletes |
---|
| 217 | - workaround problem with coreutils-6.12 and RHEL5-xen kernels |
---|
| 218 | what prevents libgphoto2 koji build |
---|
| 219 | |
---|
| 220 | * Mon Jun 02 2008 Jindrich Novy <jnovy@redhat.com> 2.4.1-1 |
---|
| 221 | - update to 2.4.1 (#443515, #436138) |
---|
| 222 | |
---|
| 223 | * Thu May 29 2008 Stepan Kasal <skasal@redhat.com> 2.4.0-3 |
---|
| 224 | - drop gphoto2-norpath.patch |
---|
| 225 | - use quoted here-document in %%prep |
---|
| 226 | - fix some typos in m4 sources |
---|
| 227 | - run autoreconf to get autotools right |
---|
| 228 | |
---|
| 229 | * Mon Apr 21 2008 Jindrich Novy <jnovy@redhat.com> 2.4.0-2 |
---|
| 230 | - apply patch to fix build with libusb |
---|
| 231 | |
---|
| 232 | * Fri Apr 18 2008 Jindrich Novy <jnovy@redhat.com> 2.4.0-1 |
---|
| 233 | - backport patch from upstream to avoid segfault when |
---|
| 234 | data phase is skipped for certain devices (#435413) |
---|
| 235 | - initial build |
---|
| 236 | |
---|
| 237 | * Mon Apr 14 2008 Jindrich Novy <jnovy@redhat.com> 2.4.0-0.2 |
---|
| 238 | - review fixes, thanks to Hans de Goede: (#437285) |
---|
| 239 | - remove unused macro |
---|
| 240 | - don't exclude s390/s390x |
---|
| 241 | - preserve timestamps |
---|
| 242 | - fix license |
---|
| 243 | |
---|
| 244 | * Thu Mar 13 2008 Jindrich Novy <jnovy@redhat.com> 2.4.0-0.1 |
---|
| 245 | - initial libgphoto2 packaging |
---|