[libunicap] Use ATTRS rather SYSFS for udev where appropriate (#643729)

Robert Scheck robert at fedoraproject.org
Fri Oct 29 21:52:55 UTC 2010


commit ceb772948e737793bdbe34ca39f9adc14ec89b60
Author: Robert Scheck <robert at fedoraproject.org>
Date:   Fri Oct 29 23:52:52 2010 +0200

    Use ATTRS rather SYSFS for udev where appropriate (#643729)

 libunicap.spec |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/libunicap.spec b/libunicap.spec
index a9dcc31..90a9c8e 100644
--- a/libunicap.spec
+++ b/libunicap.spec
@@ -7,7 +7,7 @@
 Summary:	Library to access different kinds of (video) capture devices
 Name:		libunicap
 Version:	0.9.12
-Release:	4%{?dist}
+Release:	5%{?dist}
 License:	GPLv2+
 Group:		System Environment/Libraries
 URL:		http://www.unicap-imaging.org/
@@ -78,6 +78,14 @@ make DESTDIR=$RPM_BUILD_ROOT install
 # Don't install any static .a and libtool .la files
 rm -f $RPM_BUILD_ROOT%{_libdir}/{,unicap2/cpi/}*.{a,la}
 
+# Use ATTRS rather SYSFS for udev where appropriate
+%if 0%{?rhel}%{?fedora} >= 6
+sed -e 's/\(SYSFS\|ATTRS\)/ATTRS/g' -i $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/50-euvccam.rules
+%else
+sed -e 's/\(SYSFS\|ATTRS\)/SYSFS/g' -i $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/50-euvccam.rules
+%endif
+touch -c -r {data,$RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d}/50-euvccam.rules
+
 %find_lang unicap
 
 %clean
@@ -102,6 +110,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/gtk-doc/html/%{name}
 
 %changelog
+* Fri Oct 29 2010 Robert Scheck <robert at fedoraproject.org> 0.9.12-5
+- Use ATTRS rather SYSFS for udev where appropriate (#643729)
+
 * Tue Oct 12 2010 Kamil Dudka <kdudka at redhat.com> 0.9.12-4
 - do not use "private" as identifier in a public header (#642118)
 


More information about the scm-commits mailing list