]>
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 |
a9eb9987 | 11 | Version: 2.5.23 |
52d44cfe | 12 | Release: 3 |
bf64a1cd | 13 | License: LGPL v2+ |
80962125 | 14 | Group: Applications/Graphics |
8c3d1966 | 15 | Source0: http://downloads.sourceforge.net/gphoto/%{name}-%{version}.tar.bz2 |
a9eb9987 | 16 | # Source0-md5: 0abd5ae8315109ae66bf06ac37902678 |
f2ae3a69 | 17 | Patch0: %{name}-manpage_addon.patch |
84ed8bb7 JB |
18 | Patch1: automake-1.12.patch |
19 | Patch2: %{name}-ac.patch | |
c9d40746 | 20 | Patch3: %{name}-cdk.patch |
bd513086 | 21 | Patch4: %{name}-pl.po-update.patch |
b765e444 | 22 | URL: http://www.gphoto.org/ |
9e6b076b | 23 | %{?with_aalib:BuildRequires: aalib-devel} |
8b399cc4 | 24 | BuildRequires: autoconf >= 2.59 |
1cb0d656 | 25 | BuildRequires: automake >= 1:1.9 |
8b399cc4 | 26 | BuildRequires: cdk-devel >= 5.0_td20010421 |
2c141133 | 27 | BuildRequires: gettext-tools >= 0.14.1 |
c9d40746 | 28 | BuildRequires: libexif-devel >= 1:0.6.9 |
377d0a8b | 29 | BuildRequires: libgphoto2-devel >= 2.5.17 |
a079aef3 | 30 | BuildRequires: libjpeg-devel |
bf64a1cd | 31 | BuildRequires: libtool |
de0e6f43 | 32 | BuildRequires: pkgconfig |
80962125 JB |
33 | BuildRequires: popt-devel |
34 | BuildRequires: readline-devel | |
c9d40746 | 35 | Requires: libexif >= 1:0.6.9 |
377d0a8b | 36 | Requires: libgphoto2 >= 2.5.17 |
80962125 | 37 | Obsoletes: gphoto2-progs |
eb5c98af JB |
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 | |
ec091c6f | 40 | Obsoletes: gphoto2-devel |
41 | Obsoletes: gphoto2-static | |
a079aef3 | 42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
43 | ||
a079aef3 | 44 | %description |
80962125 | 45 | gphoto2 is a command-line frontend to libgphoto2. |
1aa2418f | 46 | |
31ae66fd JR |
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. | |
1aa2418f | 50 | |
31ae66fd JR |
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. | |
c533fa58 | 54 | |
a079aef3 | 55 | %prep |
56 | %setup -q | |
f2ae3a69 | 57 | %patch0 -p1 |
eb713785 | 58 | %patch1 -p1 |
69f3e97d | 59 | %patch2 -p1 |
c9d40746 | 60 | %patch3 -p1 |
bd513086 | 61 | %patch4 -p1 |
3a0e9433 | 62 | |
8c3d1966 | 63 | %{__rm} po/stamp-po |
9772e401 | 64 | |
a079aef3 | 65 | %build |
bf64a1cd | 66 | %{__libtoolize} |
d5183b37 | 67 | %{__aclocal} -I auto-m4 -I gphoto-m4 |
aeabd2c0 | 68 | %{__autoconf} |
8b399cc4 | 69 | %{__autoheader} |
009941d3 | 70 | %{__automake} |
8c3d1966 | 71 | CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses" |
9e6b076b JB |
72 | %configure \ |
73 | %{?with_aalib:--with-aalib} | |
a079aef3 | 74 | %{__make} |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
a079aef3 | 78 | |
c320e89e | 79 | %{__make} install \ |
80962125 | 80 | DESTDIR=$RPM_BUILD_ROOT |
a079aef3 | 81 | |
82 | %find_lang %{name} | |
a079aef3 | 83 | |
84 | %clean | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
c320e89e | 87 | %post -p /sbin/ldconfig |
88 | %postun -p /sbin/ldconfig | |
de0e6f43 | 89 | |
80962125 | 90 | %files -f %{name}.lang |
c320e89e | 91 | %defattr(644,root,root,755) |
8c3d1966 | 92 | %doc AUTHORS ChangeLog NEWS README TODO |
c320e89e | 93 | %attr(755,root,root) %{_bindir}/gphoto2 |
bf64a1cd | 94 | %{_mandir}/man1/gphoto2.1* |