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