From 7a998b8e2b29cf033328dbcc1e0e1d034bc27809 Mon Sep 17 00:00:00 2001 From: tigro Date: Mon, 4 Sep 2023 16:38:10 +0300 Subject: [PATCH] import libgbinder-1.1.34-1.el9 --- .gitignore | 1 + .libgbinder.metadata | 1 + SPECS/libgbinder.spec | 147 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 149 insertions(+) create mode 100644 .gitignore create mode 100644 .libgbinder.metadata create mode 100644 SPECS/libgbinder.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..90aa5b6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/1.1.34.tar.gz diff --git a/.libgbinder.metadata b/.libgbinder.metadata new file mode 100644 index 0000000..eab1b12 --- /dev/null +++ b/.libgbinder.metadata @@ -0,0 +1 @@ +fc9c8c3b7f46d0e065d237ecf09d442e24ed6dd0 SOURCES/1.1.34.tar.gz diff --git a/SPECS/libgbinder.spec b/SPECS/libgbinder.spec new file mode 100644 index 0000000..51ebf8d --- /dev/null +++ b/SPECS/libgbinder.spec @@ -0,0 +1,147 @@ +Name: libgbinder +Version: 1.1.34 +Release: 1%{?dist} +Summary: Binder client library +License: BSD +URL: https://github.com/mer-hybris/libgbinder +Source0: %{url}/archive/refs/tags/%{version}.tar.gz + +%global libglibutil_version 1.0.52 + +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(libglibutil) >= %{libglibutil_version} +BuildRequires: pkgconfig +BuildRequires: make +BuildRequires: gcc +BuildRequires: bison flex +Requires: libglibutil >= %{libglibutil_version} + +%description +GLib-style interface to binder (Android IPC mechanism) + +Key features: +1. Integration with GLib event loop +2. Detection of 32 vs 64 bit kernel at runtime +3. Asynchronous transactions that don't block the event thread +4. Stable service manager and low-level transaction APIs + +Android keeps changing both low-level RPC and service manager +protocols from version to version. To counter that, libgbinder +implements configirable backends for different variants of those, +and yet keeping its own API unchanged. + +%package devel +Summary: Development library for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package contains the development library for %{name}. + +%prep +%setup -q + +%build +%{make_build} LIBDIR=%{_libdir} KEEP_SYMBOLS=1 release pkgconfig +%{make_build} -C test/binder-bridge KEEP_SYMBOLS=1 release +%{make_build} -C test/binder-list KEEP_SYMBOLS=1 release +%{make_build} -C test/binder-ping KEEP_SYMBOLS=1 release +%{make_build} -C test/binder-call KEEP_SYMBOLS=1 release + +%install +%{make_build} LIBDIR=%{_libdir} DESTDIR=%{buildroot} install-dev +%{make_build} -C test/binder-bridge DESTDIR=%{buildroot} install +%{make_build} -C test/binder-list DESTDIR=%{buildroot} install +%{make_build} -C test/binder-ping DESTDIR=%{buildroot} install +%{make_build} -C test/binder-call DESTDIR=%{buildroot} install + +%check +%{make_build} -C unit test + +%files +%{_libdir}/%{name}.so.* +%license LICENSE + +%files devel +%{_libdir}/pkgconfig/*.pc +%{_libdir}/%{name}.so +%{_includedir}/gbinder + +# Tools +# Missing manpages: https://github.com/mer-hybris/libgbinder/issues/107 +%package tools +Summary: Binder tools +Requires: %{name} >= %{version} + +%description tools +Binder command line utilities + +%files tools +%{_bindir}/binder-bridge +%{_bindir}/binder-list +%{_bindir}/binder-ping +%{_bindir}/binder-call + +%changelog +* Mon Sep 04 2023 Arkady L. Shane - 1.1.34-1 +- Rebuilt for MSVSphere 9.2 + +* Tue May 23 2023 Alessandro Astone - 1.1.34-1 +- Update to 1.1.34 + +* Mon Feb 27 2023 Alessandro Astone - 1.1.33-1 +- Update to 1.1.33 + +* Mon Jan 23 2023 Alessandro Astone - 1.1.32-1 +- Update to 1.1.32 + +* Thu Jan 19 2023 Fedora Release Engineering - 1.1.31-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jan 06 2023 Alessandro Astone - 1.1.31-1 +- Update to 1.1.31 +- Re-enable s390x builds + +* Mon Dec 05 2022 Alessandro Astone - 1.1.30-1 +- Update to 1.1.30 + +* Sat Nov 26 2022 Alessandro Astone - 1.1.29-1 +- Update to 1.1.29 +- Build binder-call tool + +* Sat Oct 29 2022 Alessandro Astone - 1.1.26-1 +- Update to 1.1.26 + +* Tue Jul 19 2022 Alessandro Astone - 1.1.25-1 +- Handle RPC protocol change at run time + +* Wed Jul 06 2022 Alessandro Astone - 1.1.23-1 +- Support API 31 + +* Mon Jun 20 2022 Alessandro Astone - 1.1.21-1 +- Tests pass again! + +* Sat Jun 11 2022 Alessandro Astone - 1.1.20-1 +- Make RPC protocol selectable at runtime + +* Tue Feb 22 2022 Mo 森 - 1.1.19-1 +- Added reader and writer for aidl parcelables + +* Wed Jan 19 2022 Mo 森 - 1.1.18-1 +- Make sure stale object pointers don't hang around +- Properly shut down remote object inside the proxy +- Read ref_count from GObject atomically +- Don't release remote proxy handle too early (sometimes never) +- Disassociate auto-created proxies to stop them from piling up + +* Tue Dec 28 2021 Mo 森 - 1.1.15-1 +- Added readers and writers for int8 and int16 + +* Sun Nov 28 2021 Mo 森 - 1.1.14-2 +- Support for FMQ (Fast Message Queues) +- Support for Android 11 (API level 30) +- Made GBinderReader API slightly more NULL tolerant +- Added gbinder_client_rpc_header() +- Added gbinder_reader_get_data() +- Added gbinder_writer_get_data() +- Added gbinder_servicemanager_device() +- Added gbinder_local_reply_append_fd()