From 2ef89b155773f349e245d2c0f0d53f1a1e33fa47 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Thu, 21 Jul 2016 18:42:37 +0200 Subject: [PATCH] Install the rules into proper location --- usb_modeswitch-data.spec | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/usb_modeswitch-data.spec b/usb_modeswitch-data.spec index aa4d204..c5b44aa 100644 --- a/usb_modeswitch-data.spec +++ b/usb_modeswitch-data.spec @@ -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 - 20160612-2 +- Install the rules into proper location + * Wed Jun 22 2016 Lubomir Rintel - 20160612-1 - Update to a new release