Install the rules into proper location
This commit is contained in:
parent
8b714fff15
commit
2ef89b1557
@ -2,7 +2,7 @@
|
||||
|
||||
Name: usb_modeswitch-data
|
||||
Version: 20160612
|
||||
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
|
||||
@ -40,11 +40,9 @@ um zu funktionieren.
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/usb_modeswitch.d/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_udevrulesdir}
|
||||
|
||||
install -p -m 644 usb_modeswitch.d/* $RPM_BUILD_ROOT%{_sysconfdir}/usb_modeswitch.d/
|
||||
install -p -m 644 40-usb_modeswitch.rules $RPM_BUILD_ROOT%{_udevrulesdir}
|
||||
make install \
|
||||
DESTDIR=$RPM_BUILD_ROOT \
|
||||
RULESDIR=$RPM_BUILD_ROOT%{_udevrulesdir}
|
||||
|
||||
%post
|
||||
%udev_rules_update
|
||||
@ -54,11 +52,14 @@ install -p -m 644 40-usb_modeswitch.rules $RPM_BUILD_ROOT%{_udevrulesdir}
|
||||
|
||||
%files
|
||||
%{_udevrulesdir}/40-usb_modeswitch.rules
|
||||
%config(noreplace) %{_sysconfdir}/usb_modeswitch.d/
|
||||
%{_datadir}/usb_modeswitch
|
||||
%license COPYING
|
||||
%doc ChangeLog README REFERENCE
|
||||
|
||||
%changelog
|
||||
* Thu Jul 21 2016 Lubomir Rintel <lkundrak@v3.sk> - 20160612-2
|
||||
- Install the rules into proper location
|
||||
|
||||
* Wed Jun 22 2016 Lubomir Rintel <lkundrak@v3.sk> - 20160612-1
|
||||
- Update to a new release
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user