Fix udev helper path
This commit is contained in:
parent
c4f2c36b70
commit
394c8bf499
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: usb_modeswitch
|
Name: usb_modeswitch
|
||||||
Version: 1.2.7
|
Version: 1.2.7
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: USB Modeswitch gets mobile broadband cards in operational mode
|
Summary: USB Modeswitch gets mobile broadband cards in operational mode
|
||||||
Summary(de): USB Modeswitch aktiviert UMTS-Karten
|
Summary(de): USB Modeswitch aktiviert UMTS-Karten
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@ -34,6 +34,7 @@ cp -f %{SOURCE1} device_reference.txt
|
|||||||
# convert device_reference.txt encoding to UTF-8
|
# convert device_reference.txt encoding to UTF-8
|
||||||
iconv --from=ISO-8859-1 --to=UTF-8 device_reference.txt > device_reference.txt.new && \
|
iconv --from=ISO-8859-1 --to=UTF-8 device_reference.txt > device_reference.txt.new && \
|
||||||
touch -r 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
|
mv device_reference.txt.new device_reference.txt
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -42,7 +43,7 @@ CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags} static
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
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%{_sbindir}
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
|
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 755 usb_modeswitch_dispatcher $RPM_BUILD_ROOT%{_sbindir}/usb_modeswitch_dispatcher
|
||||||
install -p -m 644 usb_modeswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}/
|
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
|
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
|
||||||
%{_sbindir}/usb_modeswitch_dispatcher
|
%{_sbindir}/usb_modeswitch_dispatcher
|
||||||
%{_mandir}/man1/usb_modeswitch.1.gz
|
%{_mandir}/man1/usb_modeswitch.1.gz
|
||||||
%{_libdir}/udev/usb_modeswitch
|
%{_prefix}/lib/udev/usb_modeswitch
|
||||||
%config(noreplace) %{_sysconfdir}/usb_modeswitch.conf
|
%config(noreplace) %{_sysconfdir}/usb_modeswitch.conf
|
||||||
%doc COPYING README ChangeLog device_reference.txt
|
%doc COPYING README ChangeLog device_reference.txt
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 26 2013 Dan Williams <dcbw@redhat.com> - 1.2.7-2
|
||||||
|
- Fix udev helper path
|
||||||
|
|
||||||
* Fri Aug 16 2013 Dan Williams <dcbw@redhat.com> - 1.2.7-1
|
* Fri Aug 16 2013 Dan Williams <dcbw@redhat.com> - 1.2.7-1
|
||||||
- New upstream release
|
- New upstream release
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user