rpms/sane-backends/F-12 sane-backends-1.0.20-udev.patch, NONE, 1.1 sane-backends-1.0.20-rpath.patch, 1.2, 1.3 sane-backends.spec, 1.132, 1.133
Nils Philippsen
nphilipp at fedoraproject.org
Thu Oct 22 10:19:14 UTC 2009
- Previous message (by thread): rpms/sane-backends/devel sane-backends-1.0.20-udev.patch, NONE, 1.1 sane-backends-1.0.20-rpath.patch, 1.2, 1.3 sane-backends.spec, 1.132, 1.133
- Next message (by thread): rpms/gnomecatalog/F-12 gnomecatalog-fstypes.patch, NONE, 1.1 gnomecatalog.spec, 1.7, 1.8 import.log, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: nphilipp
Update of /cvs/pkgs/rpms/sane-backends/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv13776
Modified Files:
sane-backends-1.0.20-rpath.patch sane-backends.spec
Added Files:
sane-backends-1.0.20-udev.patch
Log Message:
ship adapted udev rules from F-12 on (#512516)
don't require pam anymore
sane-backends-1.0.20-udev.patch:
sane-desc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- NEW FILE sane-backends-1.0.20-udev.patch ---
commit 5e153e8354ee1cba5d7cd4a532f671810186a6a1
Author: Nils Philippsen <nils at redhat.com>
Date: Thu Oct 22 11:19:22 2009 +0200
patch: udev
Squashed commit of the following:
commit fe874d6f9873598e8bcd9201508bc2c89365e821
Author: Nils Philippsen <nils at redhat.com>
Date: Thu Oct 22 11:16:16 2009 +0200
adapt generated udev rules for Fedora
diff --git a/tools/sane-desc.c b/tools/sane-desc.c
index c317700..b6638a4 100644
--- a/tools/sane-desc.c
+++ b/tools/sane-desc.c
@@ -3488,7 +3488,7 @@ print_udev (void)
printf ("SUBSYSTEMS!=\"scsi\", GOTO=\"libsane_scsi_rules_end\"\n\n");
printf ("LABEL=\"libsane_scsi_rules_begin\"\n");
printf ("# Generic: SCSI device type 6 indicates a scanner\n");
- printf ("KERNEL==\"sg[0-9]*\", NAME=\"%%k\", ATTRS{type}==\"6\", MODE=\"%s\", GROUP=\"%s\"\n", DEVMODE, DEVGROUP);
+ printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"6\", ENV{libsane_matched}=\"yes\"\n");
printf ("# Some scanners advertise themselves as SCSI device type 3\n");
while (scsiid)
@@ -3521,8 +3521,8 @@ print_udev (void)
}
}
printf ("\n");
- printf ("KERNEL==\"sg[0-9]*\", NAME=\"%%k\", ATTRS{type}==\"3\", ATTRS{vendor}==\"%s\", ATTRS{model}==\"%s\", MODE=\"%s\", GROUP=\"%s\"\n",
- scsiid->scsi_vendor_id, scsiid->scsi_product_id, DEVMODE, DEVGROUP);
+ printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"3\", ATTRS{vendor}==\"%s\", ATTRS{model}==\"%s\", ENV{libsane_matched}=\"yes\"\n",
+ scsiid->scsi_vendor_id, scsiid->scsi_product_id);
scsiid = scsiid->next;
}
printf ("LABEL=\"libsane_scsi_rules_end\"\n\n");
sane-backends-1.0.20-rpath.patch:
acinclude.m4 | 36 +++++++++++++++++++++++-------------
1 file changed, 23 insertions(+), 13 deletions(-)
Index: sane-backends-1.0.20-rpath.patch
===================================================================
RCS file: /cvs/pkgs/rpms/sane-backends/F-12/sane-backends-1.0.20-rpath.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- sane-backends-1.0.20-rpath.patch 31 Aug 2009 16:04:19 -0000 1.2
+++ sane-backends-1.0.20-rpath.patch 22 Oct 2009 10:19:14 -0000 1.3
@@ -1,8 +1,8 @@
-commit 1249be5ecbd635feeb880b2c60582b34bc04a798
+commit fe1456e2431a3b8bd27aadc5bbc6998ebc8cd00c
Author: Nils Philippsen <nils at redhat.com>
Date: Mon Aug 31 16:38:23 2009 +0200
- path: rpath
+ patch: rpath
Squashed commit of the following:
Index: sane-backends.spec
===================================================================
RCS file: /cvs/pkgs/rpms/sane-backends/F-12/sane-backends.spec,v
retrieving revision 1.132
retrieving revision 1.133
diff -u -p -r1.132 -r1.133
--- sane-backends.spec 31 Aug 2009 16:04:19 -0000 1.132
+++ sane-backends.spec 22 Oct 2009 10:19:14 -0000 1.133
@@ -1,7 +1,21 @@
+# Use the following --with/--without <option> switches to control how the
+# package will be built:
+#
+# udev: ship rules for udev (default for Fedora >= 12, RHEL >= 6)
+# hal: ship rules for hal (default for Fedora < 12, RHEL < 6)
+
+%if 0%{?fedora}%{?rhel} == 0 || 0%{?fedora} >= 12 || 0%{?rhel} >= 6
+%bcond_without udev
+%bcond_with hal
+%else
+%bcond_with udev
+%bcond_without hal
+%endif
+
Summary: Scanner access software
Name: sane-backends
Version: 1.0.20
-Release: 7%{?dist}
+Release: 8%{?dist}
# lib/ is LGPLv2+, backends are GPLv2+ with exceptions
# Tools are GPLv2+, docs are public domain
# see LICENSE for details
@@ -14,8 +28,9 @@ Patch0: sane-backends-1.0.20-rpath.patch
Patch1: sane-backends-1.0.20-pkgconfig.patch
Patch2: sane-backends-1.0.20-open-macro.patch
Patch3: sane-backends-1.0.20-hal.patch
-Patch4: sane-backends-1.0.20-man-utf8.patch
-Patch5: sane-backends-1.0.20-epson-expression800.patch
+Patch4: sane-backends-1.0.20-udev.patch
+Patch5: sane-backends-1.0.20-man-utf8.patch
+Patch6: sane-backends-1.0.20-epson-expression800.patch
Patch10: sane-backends-1.0.20-autoreconf.patch.bz2
URL: http://www.sane-project.org
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%__id_u -n)
@@ -26,8 +41,12 @@ BuildRequires: libjpeg-devel
BuildRequires: libtiff-devel
BuildRequires: gettext
BuildRequires: gphoto2-devel
-Requires: pam >= 0.78-2
+%if %{with udev}
+Requires: udev >= 143
+%endif
+%if %{with hal}
Requires: hal >= 0.4.0
+%endif
%description
Scanner Access Now Easy (SANE) is a universal scanner interface. The
@@ -80,8 +99,9 @@ want to access digital cameras.
%patch1 -p1 -b .pkgconfig
%patch2 -p1 -b .open-macro
%patch3 -p1 -b .hal
-%patch4 -p1 -b .man-utf8
-%patch5 -p1 -b .epson-expression800
+%patch4 -p1 -b .udev
+%patch5 -p1 -b .man-utf8
+%patch6 -p1 -b .epson-expression800
%patch10 -p1 -b .autoreconf
%build
@@ -103,12 +123,19 @@ rm -f %{buildroot}%{_mandir}/man1/gamma4
rm -f %{buildroot}%{_libdir}/sane/*.a %{buildroot}%{_libdir}/*.a
rm -f %{buildroot}%{_libdir}/libsane*.la %{buildroot}%{_libdir}/sane/*.la
+%if %{with udev}
+mkdir -p %{buildroot}/lib/udev/rules.d
+install -m 0644 tools/udev/libsane.rules %{buildroot}/lib/udev/rules.d/65-libsane.rules
+%endif
+
+%if %{with hal}
mkdir -p %{buildroot}/%{_datadir}/hal/fdi/information/20thirdparty
mkdir -p %{buildroot}/%{_datadir}/hal/fdi/policy/20thirdparty
install -m 0644 tools/hal/libsane.fdi %{buildroot}/%{_datadir}/hal/fdi/information/20thirdparty/19-libsane.fdi
install -m 0644 tools/hal/libsane-policy.fdi %{buildroot}/%{_datadir}/hal/fdi/policy/20thirdparty/19-libsane.fdi
mkdir -p %{buildroot}/%{_libexecdir}
install -m 0755 %{SOURCE2} %{buildroot}/%{_libexecdir}/hal-usb-scanner-add
+%endif
%find_lang %name
@@ -124,9 +151,14 @@ rm -rf %{buildroot}
%dir /etc/sane.d
%dir /etc/sane.d/dll.d
%config(noreplace) /etc/sane.d/*.conf
+%if %{with udev}
+/lib/udev/rules.d/65-libsane.rules
+%endif
+%if %{with hal}
%{_datadir}/hal/fdi/information/20thirdparty/*.fdi
%{_datadir}/hal/fdi/policy/20thirdparty/*.fdi
%{_libexecdir}/hal-usb-scanner-add
+%endif
%{_mandir}/*/*
%{_datadir}/pixmaps/sane.png
@@ -157,6 +189,10 @@ rm -rf %{buildroot}
%{_libdir}/pkgconfig/sane-backends.pc
%changelog
+* Thu Oct 22 2009 Nils Philippsen <nils at redhat.com> - 1.0.20-8
+- ship adapted udev rules from F-12 on (#512516)
+- don't require pam anymore
+
* Fri Aug 31 2009 Nils Philippsen <nils at redhat.com> - 1.0.20-7
- fix --enable-rpath
- Previous message (by thread): rpms/sane-backends/devel sane-backends-1.0.20-udev.patch, NONE, 1.1 sane-backends-1.0.20-rpath.patch, 1.2, 1.3 sane-backends.spec, 1.132, 1.133
- Next message (by thread): rpms/gnomecatalog/F-12 gnomecatalog-fstypes.patch, NONE, 1.1 gnomecatalog.spec, 1.7, 1.8 import.log, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list