From b4895e4af3e852a448607181ec8096635c110852 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Wed, 19 Aug 2009 10:14:08 +0000 Subject: [PATCH] - Use upstream udev rules instead of hal policy (bug #518172). --- hplip.fdi | 19 ------------------- hplip.spec | 16 +++++----------- 2 files changed, 5 insertions(+), 30 deletions(-) delete mode 100644 hplip.fdi diff --git a/hplip.fdi b/hplip.fdi deleted file mode 100644 index 93222f5..0000000 --- a/hplip.fdi +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - scanner - - - - - - access_control - linux.device_file - scanner - - - diff --git a/hplip.spec b/hplip.spec index 8023fa1..f2ce0a1 100644 --- a/hplip.spec +++ b/hplip.spec @@ -13,7 +13,6 @@ Conflicts: selinux-policy < 3.0.3-3 Url: http://hplip.sourceforge.net/ Source0: http://kent.dl.sourceforge.net/sourceforge/hplip/%{name}-%{version}.tar.gz -Source1: hplip.fdi Patch1: hplip-hpcups-reorder.patch Patch2: hplip-strstr-const.patch Patch3: hplip-ui-optional.patch @@ -111,7 +110,7 @@ rm -rf $RPM_BUILD_DIR/%{name}-%{version} --enable-scan-build --enable-gui-build --enable-fax-build \ --disable-foomatic-rip-hplip-install --enable-dbus \ --enable-qt4 --enable-hpcups-install --enable-cups-drv-install \ - --enable-hpijs-install + --enable-hpijs-install --enable-udev-acl-rules sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool @@ -126,7 +125,7 @@ make install DESTDIR=%{buildroot} # Remove unpackaged files rm -rf %{buildroot}%{_sysconfdir}/sane.d \ %{buildroot}%{_docdir} \ - %{buildroot}%{_sysconfdir}/udev/rules.d/* + %{buildroot}%{_datadir}/hal/fdi rm -f %{buildroot}%{_bindir}/foomatic-rip \ %{buildroot}%{_libdir}/cups/filter/foomatic-rip \ @@ -148,9 +147,6 @@ desktop-file-install --vendor HP \ --add-category Application \ hplip.desktop -mkdir -p %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor -install -p -m644 %{SOURCE1} %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor/10-hplip.fdi - # Images in docdir should not be executable (bug #440552). find doc/images -type f -exec chmod 644 {} \; @@ -164,16 +160,13 @@ rm -f %{buildroot}%{_datadir}/hplip/hpijs.drv.in.template # window), so don't ship the launcher yet. rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop -# Remove the hal preprobe rules as they were causing breakage (bug #479648). -rm -f %{buildroot}%{_datadir}/hal/fdi/preprobe/10osvendor/20-hplip-devices.fdi - %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc COPYING doc/* -%{_datadir}/hal/fdi/policy/10osvendor/10-hplip.fdi +%{_sysconfdir}/udev/rules.d/* %dir %{_sysconfdir}/hp %config(noreplace) %{_sysconfdir}/hp/hplip.conf %{_bindir}/hp-align @@ -313,7 +306,8 @@ fi exit 0 %changelog -* Tue Aug 18 2009 Tim Waugh 3.9.8-5 +* Wed Aug 19 2009 Tim Waugh 3.9.8-5 +- Use upstream udev rules instead of hal policy (bug #518172). - Removed unnecessary dependency on PyQt as we only use PyQt4 now. * Wed Aug 12 2009 Tim Waugh 3.9.8-4