2 # make --enable-docs work.
3 # library should be installed in /usr/lib.
4 Summary: Digital camera software
5 Summary(pl): Oprogramowanie dla kamer cyfrowych
10 Group: X11/Applications
11 Source0: http://www.gphoto.net/dist/gphoto2-2.0.tar.gz
12 Patch0: %{name}-ncurses.patch
13 URL: http://www.gphoto.net/
14 BuildRequires: aalib-devel
16 BuildRequires: cdk-devel
17 BuildRequires: findutils
18 BuildRequires: gettext-devel
19 BuildRequires: gtk-doc
20 BuildRequires: libexif-devel
21 BuildRequires: libjpeg-devel
22 BuildRequires: libusb-devel
23 BuildRequires: pkgconfig
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define _prefix /usr/X11R6
29 Digital camera software.
32 Oprogramowanie dla kamer cyfrowych.
35 Summary: Libraries for digital cameras
36 Summary(pl): Biblioteki obs³ugi kamer cyfrowych
40 Libraries for digital cameras.
42 %description lib -l pl
43 Biblioteki obs³ugi kamer cyfrowych.
46 Summary: Static version of gphoto2-lib
47 Summary(pl): Statyczna wersja gphoto2-lib
48 Group: Development/Libraries
51 Static version of gphoto2-lib.
53 %description static -l pl
54 Statyczna wersja gphoto2-lib.
57 Summary: Header files for gphoto2-lib
58 Summary(pl): Pliki nag³ówkowe dla gphoto2-lib
59 Group: Development/Libraries
60 Requires: %{name}-lib = %{version}
61 Requires: libexif-devel
63 %description lib-devel
64 Header files for gphoto2-lib.
66 %description lib-devel -l pl
67 Pliki nag³ówkowe dla gphoto2-lib.
80 #--enable-docs --- doesn't build.
83 # avoid relinking to allow build without openldap-devel already installed
84 for d in `find -name '*.la'`; do
85 echo "--- Fixing gile '$d'"
86 perl -pi -e 's/^relink_command.*//' $d
90 rm -rf $RPM_BUILD_ROOT
91 install -d $RPM_BUILD_ROOT
93 %{__make} install DESTDIR=$RPM_BUILD_ROOT
95 install -d "$RPM_BUILD_ROOT/%{_pkgconfigdir}"
96 mv $RPM_BUILD_ROOT{/usr/X11R6/lib/pkgconfig,%{_pkgconfigdir}}
98 gzip -9nf README ChangeLog
101 %find_lang libgphoto2_port
103 %post lib -p /sbin/ldconfig
104 %postun lib -p /sbin/ldconfig
107 rm -rf $RPM_BUILD_ROOT
109 %files -f %{name}.lang
110 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_bindir}/gphoto2
116 %files lib -f libgphoto2_port
117 %defattr(644,root,root,755)
119 %{_libdir}/*.so.*.*.*
120 %{_libdir}/gphoto2/2.0/libgphoto2_*.??
121 %{_libdir}/gphoto2_port/0.0.4/libgphoto2_port_*.??
124 %defattr(644,root,root,755)
126 %{_libdir}/gphoto2/2.0/libgphoto2_*.a
127 %{_libdir}/gphoto2_port/0.0.4/libgphoto2_port_*.a
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_bindir}/gphoto2-*
132 %{_includedir}/gphoto2