mirror of
https://github.com/mer-hybris/ofono-ril-binder-plugin
synced 2025-11-03 22:25:38 +08:00
[rilbinder] Install LICENSE file. JB#55991
This commit is contained in:
4
LICENSE
4
LICENSE
@@ -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:
|
||||
|
||||
|
||||
@@ -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,-)
|
||||
|
||||
Reference in New Issue
Block a user