po malej modernizacji speca (latka w zalczaniku)
sypie sie przy skladaniu paczki w calosc:
# rpmbuild -bb -v sane-backends --short-circuit
# RPM build errors:
# File not found:
# /tmp/sane-backends-1.0.12-root-root/etc/sane.d/gphoto2.conf
# File not found by glob:
# /tmp/sane-backends-1.0.12-root-root/usr/lib/sane/libsane-gphoto2.so.*
wszystkie potrzebne devele mam.
--
The only thing necessary for the triumph of evil
is for good men to do nothing.
- Edmund Burke
--- sane-backends.spec.orig 2003-11-21 17:08:35.000000000 +0000
+++ sane-backends.spec 2003-11-24 18:56:42.000000000 +0000
@@ -1,9 +1,10 @@
# $Revision: 1.86 $, $Date: 2003/10/17 16:57:14 $
#
# Conditional build:
-# _without_gphoto - no gphoto backend (which requires libgphoto2)
-# _without_lpt - no parallel port backends (only those which require libieee1284)
-# _without_usb - without USB scanners support (which requires libusb)
+%bcond_without gphoto # no gphoto backend (which requires libgphoto2)
+%bcond_without lpt # no parallel port backends
+ # (only those which require libieee1284)
+%bcond_without usb # without USB scanners support (which requires libusb)
#
# TODO:
# - separate usb drivers (which depend on libusb)?
@@ -35,14 +36,14 @@
BuildRequires: autoconf >= 2.54
BuildRequires: automake
BuildRequires: gettext-devel
-%{!?_without_gphoto:BuildRequires: libgphoto2-devel >= 2.0.1}
+%{?_with_gphoto:BuildRequires: libgphoto2-devel >= 2.0.1}
%ifarch %{ix86}
-%{!?_without_lpt:BuildRequires: libieee1284-devel}
+%{?_with_lpt:BuildRequires: libieee1284-devel}
%endif
BuildRequires: libjpeg-devel
BuildRequires: libtool
%ifnarch sparc sparc64 sparcv9
-%{!?_without_usb:BuildRequires: libusb-devel}
+%{?_with_usb:BuildRequires: libusb-devel}
%endif
BuildRequires: tetex-dvips
BuildRequires: tetex-latex
@@ -248,7 +249,7 @@
--enable-static \
--enable-pnm-backend \
--enable-translations \
- %{!?_without_gphoto:--with-gphoto2}
+ %{?_with_gphoto:--with-gphoto2}
%{__make}
@@ -392,7 +393,7 @@
%endif
%ifarch %{ix86}
-%if 0%{!?_without_lpt:1}
+%if %{with lpt}
%files canon_pp
%defattr(644,root,root,755)
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sane.d/canon_pp.conf
@@ -401,7 +402,7 @@
%endif
%endif
-%if 0%{!?_without_gphoto:1}
+%if %{with gphoto}
%files gphoto2
%defattr(644,root,root,755)
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sane.d/gphoto2.conf
@@ -410,7 +411,7 @@
%endif
%ifarch %{ix86}
-%if 0%{!?_without_lpt:1}
+%if %{with lpt}
%files hpsj5s
%defattr(644,root,root,755)
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sane.d/hpsj5s.conf
@@ -425,7 +426,7 @@
%attr(755,root,root) %{_libdir}/sane/libsane-plustek.so.*
%{_mandir}/man5/sane-plustek.5*
-%if 0%{!?_without_usb:1}
+%if %{with usb}
%files sm3600
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/sane/libsane-sm3600.so.*
__________________________________________________________
nie pytaj co inni zrobili dla pld, pomysl ile sam zrobiles