From 394c8bf49980b55501f0ce1e2962f0c26f25be2f Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 26 Aug 2013 10:37:20 -0500 Subject: [PATCH] Fix udev helper path --- usb_modeswitch.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 5b8f7c4..ed79431 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -2,7 +2,7 @@ Name: usb_modeswitch Version: 1.2.7 -Release: 1%{?dist} +Release: 2%{?dist} Summary: USB Modeswitch gets mobile broadband cards in operational mode Summary(de): USB Modeswitch aktiviert UMTS-Karten Group: Applications/System @@ -34,6 +34,7 @@ cp -f %{SOURCE1} device_reference.txt # convert device_reference.txt encoding to UTF-8 iconv --from=ISO-8859-1 --to=UTF-8 device_reference.txt > device_reference.txt.new && \ touch -r device_reference.txt device_reference.txt.new && \ +chmod 644 device_reference.txt && \ mv device_reference.txt.new device_reference.txt %build @@ -42,7 +43,7 @@ CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags} static %install rm -rf $RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT%{_libdir}/udev/rules.d/ +mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/udev mkdir -p $RPM_BUILD_ROOT%{_sbindir} mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir} @@ -51,7 +52,7 @@ install -p -m 755 usb_modeswitch $RPM_BUILD_ROOT%{_sbindir}/ install -p -m 755 usb_modeswitch_dispatcher $RPM_BUILD_ROOT%{_sbindir}/usb_modeswitch_dispatcher install -p -m 644 usb_modeswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}/ gzip -9c usb_modeswitch.1 > usb_modeswitch.1.gz && install -m 644 usb_modeswitch.1.gz $RPM_BUILD_ROOT%{_datadir}/man/man1 -install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_libdir}/udev/usb_modeswitch +install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_prefix}/lib/udev/usb_modeswitch @@ -60,12 +61,15 @@ install -p -m 755 usb_modeswitch.sh $RPM_BUILD_ROOT%{_libdir}/udev/usb_modeswitc %{_sbindir}/usb_modeswitch %{_sbindir}/usb_modeswitch_dispatcher %{_mandir}/man1/usb_modeswitch.1.gz -%{_libdir}/udev/usb_modeswitch +%{_prefix}/lib/udev/usb_modeswitch %config(noreplace) %{_sysconfdir}/usb_modeswitch.conf %doc COPYING README ChangeLog device_reference.txt %changelog +* Fri Aug 26 2013 Dan Williams - 1.2.7-2 +- Fix udev helper path + * Fri Aug 16 2013 Dan Williams - 1.2.7-1 - New upstream release