[rilbinder] Install LICENSE file. JB#55991

This commit is contained in:
Slava Monich
2022-01-10 04:38:12 +02:00
parent b5050bc79f
commit 351328ea04
2 changed files with 17 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
Copyright (C) 2018-2021 Jolla Ltd.
Copyright (C) 2018-2021 Slava Monich <slava.monich@jolla.com>
Copyright (C) 2018-2022 Jolla Ltd.
Copyright (C) 2018-2022 Slava Monich <slava.monich@jolla.com>
You may use this file under the terms of the BSD license as follows:

View File

@@ -10,12 +10,18 @@ Source: %{name}-%{version}.tar.bz2
%define libgbinder_version 1.0.23
%define libgbinder_radio_version 1.4.1
Requires: ofono-ril-plugin
Requires: libgrilio >= %{libgrilio_version}
BuildRequires: pkgconfig
BuildRequires: ofono-devel >= %{ofono_version}
BuildRequires: pkgconfig(libgrilio) >= %{libgrilio_version}
%define plugin_dir %{_libdir}/ofono/plugins
# license macro requires rpm >= 4.11
BuildRequires: pkgconfig(rpm)
%define license_support %(pkg-config --exists 'rpm >= 4.11'; echo $?)
Requires: ofono-ril-plugin
Requires: libgrilio >= %{libgrilio_version}
%define plugin_dir %(pkg-config ofono --variable=plugindir)
%description
This package contains ofono plugin which implements binder transport for RIL
@@ -37,6 +43,9 @@ mkdir -p %{buildroot}/%{plugin_dir}
%dir %{plugin_dir}
%defattr(-,root,root,-)
%{plugin_dir}/rilbinderplugin.so
%if %{license_support} == 0
%license LICENSE
%endif
#############################################################################
@@ -59,7 +68,6 @@ Requires: pkgconfig(libgrilio) >= %{libgrilio_version}
Requires: pkgconfig(libgbinder) >= %{libgbinder_version}
Requires: pkgconfig(libgbinder-radio) >= %{libgbinder_radio_version}
Requires: libgrilio-binder = %{version}
Requires: pkgconfig
%post -n libgrilio-binder -p /sbin/ldconfig
@@ -71,6 +79,9 @@ This package contains the development library for libgrilio-binder.
%files -n libgrilio-binder
%defattr(-,root,root,-)
%{_libdir}/libgrilio-binder.so.*
%if %{license_support} == 0
%license LICENSE
%endif
%files -n libgrilio-binder-devel
%defattr(-,root,root,-)