Accepting request 539824 from home:mnhauke:sdr-devel

- Split udev rules to separate package

OBS-URL: https://build.opensuse.org/request/show/539824
OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/libmirisdr?expand=0&rev=6
This commit is contained in:
Martin Hauke 2017-11-08 10:41:54 +00:00 committed by Git OBS Bridge
parent 865530b432
commit 2ceba5c972
2 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Nov 8 10:23:50 UTC 2017 - mardnh@gmx.de
- Split udev rules to separate package
-------------------------------------------------------------------
Wed Nov 8 08:33:45 UTC 2017 - jengelh@inai.de

View File

@ -42,6 +42,7 @@ it can be used as a SDR receiver.
Summary: SDR driver for MRi2500
Group: System/Libraries
Provides: %{name} = %{version}
Requires: mirisdr-udev
%description -n %{libname}
Library to run Mirics MRi2500 based DVB dongle as a SDR receiver.
@ -62,6 +63,14 @@ Requires: %{name} = %{version}-%{release}
%description devel
Library headers and other development files for mirisdr driver.
%package -n mirisdr-udev
Summary: Udev rules for Mirics MRi2500 based DVB dongles
Group: Hardware/Other
%description -n mirisdr-udev
Udev rules for Mirics MRi2500 based DVB dongles.
%prep
%setup -q
%patch0 -p1
@ -80,6 +89,12 @@ install -D -p -m 0644 mirisdr.rules %{buildroot}%{_udevrulesdir}/10-mirisdr.rule
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%post -n mirisdr-udev
%udev_rules_update
%postun -n mirisdr-udev
%udev_rules_update
%files -n mirisdr
%defattr(-,root,root)
%doc AUTHORS COPYING README
@ -89,6 +104,9 @@ install -D -p -m 0644 mirisdr.rules %{buildroot}%{_udevrulesdir}/10-mirisdr.rule
%defattr(-,root,root)
%doc AUTHORS COPYING README
%{_libdir}/libmirisdr.so.%{sover}*
%files -n mirisdr-udev
%defattr(-,root,root)
%{_udevrulesdir}/10-mirisdr.rules
%files devel