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