]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without aalib # AAlib support | |
4 | # | |
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下的使用数码相机的程序 | |
10 | Name: gphoto2 | |
11 | Version: 2.5.23 | |
12 | Release: 3 | |
13 | License: LGPL v2+ | |
14 | Group: Applications/Graphics | |
15 | Source0: http://downloads.sourceforge.net/gphoto/%{name}-%{version}.tar.bz2 | |
16 | # Source0-md5: 0abd5ae8315109ae66bf06ac37902678 | |
17 | Patch0: %{name}-manpage_addon.patch | |
18 | Patch1: automake-1.12.patch | |
19 | Patch2: %{name}-ac.patch | |
20 | Patch3: %{name}-cdk.patch | |
21 | Patch4: %{name}-pl.po-update.patch | |
22 | URL: http://www.gphoto.org/ | |
23 | %{?with_aalib:BuildRequires: aalib-devel} | |
24 | BuildRequires: autoconf >= 2.59 | |
25 | BuildRequires: automake >= 1:1.9 | |
26 | BuildRequires: cdk-devel >= 5.0_td20010421 | |
27 | BuildRequires: gettext-tools >= 0.14.1 | |
28 | BuildRequires: libexif-devel >= 1:0.6.9 | |
29 | BuildRequires: libgphoto2-devel >= 2.5.17 | |
30 | BuildRequires: libjpeg-devel | |
31 | BuildRequires: libtool | |
32 | BuildRequires: pkgconfig | |
33 | BuildRequires: popt-devel | |
34 | BuildRequires: readline-devel | |
35 | Requires: libexif >= 1:0.6.9 | |
36 | Requires: libgphoto2 >= 2.5.17 | |
37 | Obsoletes: gphoto2-progs | |
38 | # these are not true (renamed to libgphoto2-{devel,static}) - we must have | |
39 | # the way to just rename package which is not required by anything installed | |
40 | Obsoletes: gphoto2-devel | |
41 | Obsoletes: gphoto2-static | |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
43 | ||
44 | %description | |
45 | gphoto2 is a command-line frontend to libgphoto2. | |
46 | ||
47 | %description -l pl.UTF-8 | |
48 | gphoto2 to działający z linii poleceń program będący interfejsem | |
49 | użytkownika do libgphoto2. | |
50 | ||
51 | %description -l pt_BR.UTF-8 | |
52 | O programa gphoto faz parte do projeto GNOME e é uma interface para | |
53 | uma grande variedade de câmeras fotográficas digitais. | |
54 | ||
55 | %prep | |
56 | %setup -q | |
57 | %patch0 -p1 | |
58 | %patch1 -p1 | |
59 | %patch2 -p1 | |
60 | %patch3 -p1 | |
61 | %patch4 -p1 | |
62 | ||
63 | %{__rm} po/stamp-po | |
64 | ||
65 | %build | |
66 | %{__libtoolize} | |
67 | %{__aclocal} -I auto-m4 -I gphoto-m4 | |
68 | %{__autoconf} | |
69 | %{__autoheader} | |
70 | %{__automake} | |
71 | CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses" | |
72 | %configure \ | |
73 | %{?with_aalib:--with-aalib} | |
74 | %{__make} | |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %{__make} install \ | |
80 | DESTDIR=$RPM_BUILD_ROOT | |
81 | ||
82 | %find_lang %{name} | |
83 | ||
84 | %clean | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %post -p /sbin/ldconfig | |
88 | %postun -p /sbin/ldconfig | |
89 | ||
90 | %files -f %{name}.lang | |
91 | %defattr(644,root,root,755) | |
92 | %doc AUTHORS ChangeLog NEWS README TODO | |
93 | %attr(755,root,root) %{_bindir}/gphoto2 | |
94 | %{_mandir}/man1/gphoto2.1* |