Proper udev rules

This commit is contained in:
Linus Walleij 2010-11-30 01:23:08 +01:00
parent fa9abd0b81
commit d31a1d1369

View File

@ -3,7 +3,7 @@
Name: libmtp
Version: 1.0.3
Release: 5%{?dist}
Release: 6%{?dist}
Summary: A software library for MTP media players
URL: http://libmtp.sourceforge.net/
@ -56,7 +56,7 @@ library for MTP media players.
%configure --disable-static --program-prefix=mtp-
make %{?_smp_mflags}
# Remove permissions from udev rules, but register for ACL management
examples/hotplug -a"SYMLINK+=\"libmtp-%k\" ENV{ACL_MANAGE}=\"0\" TAG+=\"udev-acl\"" > libmtp.rules
examples/hotplug -a"SYMLINK+=\"libmtp-%k\" ENV{ID_MTP_DEVICE}=\"1\", ENV{ID_MEDIA_PLAYER}=\"1\" TAG+=\"udev-acl\"" > libmtp.rules
%install
rm -rf $RPM_BUILD_ROOT
@ -127,6 +127,11 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Tue Nov 30 2010 Linus Walleij <triad@df.lth.se> 1.0.3-6
- It appears adding ENV{ID_MTP_DEVICE}="1",
ENV{ID_MEDIA_PLAYER}="1" is the way forward so testing this
before pushing a new libmtp release.
* Thu Jun 17 2010 Bastien Nocera <bnocera@redhat.com> 1.0.3-5
- Split out hal sub-package