]>
Commit | Line | Data |
---|---|---|
80962125 | 1 | Summary: Command-line frontend to libgphoto2 |
31ae66fd JR |
2 | Summary(es.UTF-8): Foto GNU (gphoto) Release 2 |
3 | Summary(pl.UTF-8): Działający z linii poleceń program obsługujący libgphoto2 | |
4 | Summary(pt_BR.UTF-8): GNU Photo - programa GNU para câmeras digitais | |
5 | Summary(zh_CN.UTF-8): gPhoto - Linux下的使用数码相机的程序 | |
a079aef3 | 6 | Name: gphoto2 |
782e65bd | 7 | Version: 2.3.1 |
8b399cc4 | 8 | Release: 1 |
a079aef3 | 9 | License: GPL |
80962125 | 10 | Group: Applications/Graphics |
7d89d377 | 11 | Source0: http://dl.sourceforge.net/gphoto/%{name}-%{version}.tar.bz2 |
782e65bd | 12 | # Source0-md5: 00da102280dd5743d8f8b80173b4dd26 |
f2ae3a69 | 13 | Patch0: %{name}-manpage_addon.patch |
eb713785 | 14 | Patch1: %{name}-pl.po-update.patch |
1cb0d656 | 15 | Patch2: %{name}-am.patch |
028d7d66 | 16 | Patch3: %{name}-version.patch |
b765e444 | 17 | URL: http://www.gphoto.org/ |
a079aef3 | 18 | BuildRequires: aalib-devel |
8b399cc4 | 19 | BuildRequires: autoconf >= 2.59 |
1cb0d656 | 20 | BuildRequires: automake >= 1:1.9 |
8b399cc4 JB |
21 | BuildRequires: cdk-devel >= 5.0_td20010421 |
22 | BuildRequires: gettext-devel >= 0.14.1 | |
23 | BuildRequires: libexif-devel >= 0.6.9 | |
a5f82c7d | 24 | BuildRequires: libgphoto2-devel >= 2.3.0 |
a079aef3 | 25 | BuildRequires: libjpeg-devel |
de0e6f43 | 26 | BuildRequires: pkgconfig |
80962125 JB |
27 | BuildRequires: popt-devel |
28 | BuildRequires: readline-devel | |
dbfb3e3b | 29 | #Requires: dcraw |
028d7d66 | 30 | Requires: libgphoto2 >= 2.3.0 |
80962125 | 31 | Obsoletes: gphoto2-progs |
eb5c98af JB |
32 | # these are not true (renamed to libgphoto2-{devel,static}) - we must have |
33 | # the way to just rename package which is not required by anything installed | |
ec091c6f | 34 | Obsoletes: gphoto2-devel |
35 | Obsoletes: gphoto2-static | |
a079aef3 | 36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
a079aef3 | 38 | %description |
80962125 | 39 | gphoto2 is a command-line frontend to libgphoto2. |
1aa2418f | 40 | |
31ae66fd | 41 | %description -l es.UTF-8 |
c533fa58 JB |
42 | Foto GNU (gphoto). |
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 |
1cb0d656 | 56 | %patch2 -p1 |
028d7d66 | 57 | %patch3 -p1 |
a079aef3 | 58 | |
9772e401 JB |
59 | rm -f po/stamp-po |
60 | ||
a079aef3 | 61 | %build |
80962125 | 62 | CPPFLAGS="-I/usr/include/ncurses" |
8b399cc4 | 63 | %{__aclocal} -I m4m |
aeabd2c0 | 64 | %{__autoconf} |
8b399cc4 | 65 | %{__autoheader} |
aeabd2c0 | 66 | %{__automake} |
c533fa58 | 67 | %configure |
a079aef3 | 68 | %{__make} |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
a079aef3 | 72 | |
c320e89e | 73 | %{__make} install \ |
80962125 | 74 | DESTDIR=$RPM_BUILD_ROOT |
a079aef3 | 75 | |
76 | %find_lang %{name} | |
a079aef3 | 77 | |
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
c320e89e | 81 | %post -p /sbin/ldconfig |
82 | %postun -p /sbin/ldconfig | |
de0e6f43 | 83 | |
80962125 | 84 | %files -f %{name}.lang |
c320e89e | 85 | %defattr(644,root,root,755) |
1cb0d656 | 86 | %doc ChangeLog NEWS README TODO |
c320e89e | 87 | %attr(755,root,root) %{_bindir}/gphoto2 |
c320e89e | 88 | %{_mandir}/man1/* |