diff --git a/sane-backends.spec b/sane-backends.spec index dee74fe..b3f7bd0 100644 --- a/sane-backends.spec +++ b/sane-backends.spec @@ -1,4 +1,4 @@ -# Disable gphoto2 backend by using --without gphoto2 +# Disable gphoto2 backend by using "--without gphoto2" %define gphoto2_support 0%{!?_without_gphoto2:1} Summary: Scanner access software @@ -45,6 +45,7 @@ also install the sane-backends-devel package. Summary: The SANE (a universal scanner interface) development toolkit. Group: Development/Libraries Requires: sane-backends = %{version}, libusb-devel, libieee1284-devel +Requires: pkgconfig %if %{gphoto2_support} Requires: gphoto2-devel %endif @@ -148,6 +149,8 @@ rm -rf %{buildroot} %{_includedir}/sane %{_libdir}/libsane*.so %{_libdir}/sane/*.so +%dir %{_libdir}/pkgconfig +%{_libdir}/pkgconfig/sane-backends.pc %files docs %defattr(-, root, root) @@ -159,7 +162,7 @@ rm -rf %{buildroot} %{_docdir}/%{name}-%{version}/sane.ps %changelog -* Tue May 16 2006 Nils Philippsen 1.0.17-10 +* Wed May 17 2006 Nils Philippsen 1.0.17-10 - add pkg-config support, re-write sane-config to use pkg-config to avoid multilib problems with conflicting sane-config scripts