]> git.pld-linux.org Git - packages/gphoto2.git/blob - gphoto2.spec
- merged from DEVEL
[packages/gphoto2.git] / gphoto2.spec
1 Summary:        Command-line frontend to libgphoto2
2 Summary(es):    Foto GNU (gphoto) Release 2
3 Summary(pl):    Dzia³aj±cy z linii poleceñ program obs³uguj±cy libgphoto2
4 Summary(pt_BR): GNU Photo - programa GNU para câmeras digitais
5 Summary(zh_CN): gPhoto - LinuxϵÄʹÓÃÊýÂëÏà»úµÄ³ÌÐò
6 Name:           gphoto2
7 Version:        2.1.99
8 Release:        1
9 License:        GPL
10 Group:          Applications/Graphics
11 Source0:        http://dl.sourceforge.net/gphoto/%{name}-%{version}.tar.gz
12 # Source0-md5:  1b36d2d62aab637ad88f334194a88c32
13 Source1:        %{name}-pl.po
14 Patch0:         %{name}-manpage_addon.patch
15 URL:            http://www.gphoto.org/
16 BuildRequires:  aalib-devel
17 BuildRequires:  autoconf >= 2.59
18 BuildRequires:  automake >= 1:1.8
19 BuildRequires:  cdk-devel >= 5.0_td20010421
20 BuildRequires:  gettext-devel >= 0.14.1
21 BuildRequires:  libexif-devel >= 0.6.9
22 BuildRequires:  libgphoto2-devel >= 2.1.99
23 BuildRequires:  libjpeg-devel
24 BuildRequires:  pkgconfig
25 BuildRequires:  popt-devel
26 BuildRequires:  readline-devel
27 Requires:       libgphoto2 >= 2.1.99
28 #Requires:      dcraw
29 Obsoletes:      gphoto2-progs
30 # these are not true (renamed to libgphoto2-{devel,static}) - we must have
31 # the way to just rename package which is not required by anything installed
32 Obsoletes:      gphoto2-devel
33 Obsoletes:      gphoto2-static
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %description
37 gphoto2 is a command-line frontend to libgphoto2.
38
39 %description -l es
40 Foto GNU (gphoto).
41
42 %description -l pl
43 gphoto2 to dzia³aj±cy z linii poleceñ program bêd±cy interfejsem
44 u¿ytkownika do libgphoto2.
45
46 %description -l pt_BR
47 O programa gphoto faz parte do projeto GNOME e é uma interface para
48 uma grande variedade de câmeras fotográficas digitais.
49
50 %prep
51 %setup -q
52 %patch0 -p1
53
54 cp %{SOURCE1} po/pl.po
55 sed -i -e 's/\(ALL_LINGUAS=.*\)"$/\1 pl"/' configure.ac
56 rm -f po/stamp-po
57
58 %build
59 CPPFLAGS="-I/usr/include/ncurses"
60 %{__aclocal} -I m4m
61 %{__autoconf}
62 %{__autoheader}
63 %{__automake}
64 %configure
65 %{__make}
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69
70 %{__make} install \
71         DESTDIR=$RPM_BUILD_ROOT
72
73 %find_lang %{name}
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %post   -p /sbin/ldconfig
79 %postun -p /sbin/ldconfig
80
81 %files -f %{name}.lang
82 %defattr(644,root,root,755)
83 %doc CHANGES ChangeLog README TODO
84 %attr(755,root,root) %{_bindir}/gphoto2
85 %{_mandir}/man1/*
This page took 0.102928 seconds and 4 git commands to generate.