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