]> git.pld-linux.org Git - packages/gtkam.git/blob - gtkam.spec
- release 3 (by relup.sh)
[packages/gtkam.git] / gtkam.spec
1 #
2 # Conditional build:
3 %bcond_without  bonobo  # don't use bonobo
4 %bcond_without  gnome   # don't use GNOME to display documentation
5 %bcond_without  gimp    # don't build GIMP plugin
6 #
7 Summary:        GTKam - graphical frontend for gphoto2
8 Summary(pl.UTF-8):      GTKam - graficzny interfejs do gphoto2
9 Name:           gtkam
10 Version:        0.1.18
11 Release:        3
12 License:        LGPL v2+
13 Group:          X11/Applications/Graphics
14 Source0:        http://downloads.sourceforge.net/gphoto/%{name}-%{version}.tar.bz2
15 # Source0-md5:  ae37003f1f2a8f66e9a03e221d73060c
16 Patch0:         %{name}-paths.patch
17 Patch1:         %{name}-link.patch
18 URL:            http://www.gphoto.org/proj/gtkam/
19 BuildRequires:  autoconf >= 2.59
20 BuildRequires:  automake >= 1:1.9
21 BuildRequires:  gettext-devel >= 0.14.1
22 %{?with_gimp:BuildRequires:     gimp-devel >= 1:2.0}
23 BuildRequires:  gnome-common
24 BuildRequires:  gtk+2-devel >= 2.0.0
25 BuildRequires:  intltool
26 %{?with_bonobo:BuildRequires:   libbonoboui-devel}
27 BuildRequires:  libexif-devel >= 0.3.2
28 BuildRequires:  libexif-gtk-devel
29 %{?with_gnome:BuildRequires:    libgnomeui-devel}
30 BuildRequires:  libgphoto2-devel >= 2.4.0
31 BuildRequires:  libtool
32 %{?with_gimp:BuildRequires:     libusb-compat-devel}
33 BuildRequires:  pkgconfig
34 BuildRequires:  rpmbuild(find_lang) >= 1.23
35 BuildRequires:  scrollkeeper
36 Requires:       libgphoto2 >= 2.4.1
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %if %{with gimp}
40 %define         gimpplugindir   %(gimptool --gimpplugindir)/plug-ins
41 %endif
42
43 %description
44 The gtkam package provides a GTK+-based frontend to gphoto2.
45
46 %description -l pl.UTF-8
47 Pakiet gtkam udostępnia oparty o GTK+ graficzny interfejs do gphoto2.
48
49 %package -n gimp-plugin-gtkam
50 Summary:        GIMP plug-in for direct digital camera through gphoto2
51 Summary(pl.UTF-8):      Wtyczka GIMPa pozwalająca na dostęp do aparatów cyfrowych przez gphoto2
52 Group:          X11/Applications/Graphics
53 Requires:       %{name} = %{version}-%{release}
54 Requires:       gimp >= 1:2.0
55
56 %description -n gimp-plugin-gtkam
57 GIMP plug-in for direct digital camera through gphoto2.
58
59 %description -n gimp-plugin-gtkam -l pl.UTF-8
60 Wtyczka GIMPa pozwalająca na dostęp do aparatów cyfrowych przez
61 gphoto2.
62
63 %prep
64 %setup -q
65 %patch0 -p1
66 %patch1 -p1
67
68 %build
69 %{__gettextize}
70 %{__intltoolize}
71 %{__gnome_doc_common}
72 %{__libtoolize}
73 %{__aclocal} -I m4m
74 %{__autoconf}
75 %{__automake}
76 %configure \
77         %{!?with_bonobo:--without-bonobo} \
78         %{!?with_gnome:--without-gnome} \
79         %{!?with_gimp:--without-gimp}
80
81 %{__make}
82
83 %install
84 rm -rf $RPM_BUILD_ROOT
85
86 %{__make} install \
87         DESTDIR=$RPM_BUILD_ROOT
88
89 %find_lang %{name} --with-gnome --with-omf
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %post   -p /usr/bin/scrollkeeper-update
95 %postun -p /usr/bin/scrollkeeper-update
96
97 %files -f %{name}.lang
98 %defattr(644,root,root,755)
99 %doc AUTHORS ChangeLog NEWS README TODO
100 %attr(755,root,root) %{_bindir}/gtkam
101 %{_datadir}/%{name}
102 %{_mandir}/man1/gtkam.1*
103 %{_desktopdir}/gtkam.desktop
104 %{_pixmapsdir}/gtkam*.png
105 %{_omf_dest_dir}/%{name}
106
107 %if %{with gimp}
108 %files -n gimp-plugin-gtkam
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{gimpplugindir}/gtkam-gimp
111 %endif
This page took 0.114935 seconds and 3 git commands to generate.