3 %bcond_without aalib # AAlib support
5 Summary: Command-line frontend to libgphoto2
6 Summary(es.UTF-8): Foto GNU (gphoto) Release 2
7 Summary(pl.UTF-8): Działający z linii poleceń program obsługujący libgphoto2
8 Summary(pt_BR.UTF-8): GNU Photo - programa GNU para câmeras digitais
9 Summary(zh_CN.UTF-8): gPhoto - Linux下的使用数码相机的程序
14 Group: Applications/Graphics
15 Source0: http://downloads.sourceforge.net/gphoto/%{name}-%{version}.tar.bz2
16 # Source0-md5: 55e062dfb09a9589b4f9d6d545724c60
17 Patch0: %{name}-manpage_addon.patch
18 Patch1: automake-1.12.patch
19 Patch2: %{name}-ac.patch
20 Patch3: %{name}-pl.po-update.patch
21 URL: http://www.gphoto.org/
22 %{?with_aalib:BuildRequires: aalib-devel}
23 BuildRequires: autoconf >= 2.59
24 BuildRequires: automake >= 1:1.9
25 BuildRequires: cdk-devel >= 5.0_td20010421
26 BuildRequires: gettext-devel >= 0.14.1
27 BuildRequires: libexif-devel >= 0.6.9
28 BuildRequires: libgphoto2-devel >= 2.5.4
29 BuildRequires: libjpeg-devel
30 BuildRequires: libtool
31 BuildRequires: pkgconfig
32 BuildRequires: popt-devel
33 BuildRequires: readline-devel
34 Requires: libgphoto2 >= 2.5.4
35 Obsoletes: gphoto2-progs
36 # these are not true (renamed to libgphoto2-{devel,static}) - we must have
37 # the way to just rename package which is not required by anything installed
38 Obsoletes: gphoto2-devel
39 Obsoletes: gphoto2-static
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 gphoto2 is a command-line frontend to libgphoto2.
45 %description -l pl.UTF-8
46 gphoto2 to działający z linii poleceń program będący interfejsem
47 użytkownika do libgphoto2.
49 %description -l pt_BR.UTF-8
50 O programa gphoto faz parte do projeto GNOME e é uma interface para
51 uma grande variedade de câmeras fotográficas digitais.
68 CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses"
70 %{?with_aalib:--with-aalib}
74 rm -rf $RPM_BUILD_ROOT
77 DESTDIR=$RPM_BUILD_ROOT
82 rm -rf $RPM_BUILD_ROOT
84 %post -p /sbin/ldconfig
85 %postun -p /sbin/ldconfig
87 %files -f %{name}.lang
88 %defattr(644,root,root,755)
89 %doc AUTHORS ChangeLog NEWS README TODO
90 %attr(755,root,root) %{_bindir}/gphoto2
91 %{_mandir}/man1/gphoto2.1*