[packages/libgbinder] - new

baggins baggins at pld-linux.org
Sat Dec 31 18:50:12 CET 2022


commit 81e774f29ada12cd7b52eb8d253f3a7e059c77a5
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Dec 31 18:49:37 2022 +0100

    - new

 install.patch   | 53 ++++++++++++++++++++++++++++++++++++
 libgbinder.spec | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 136 insertions(+)
---
diff --git a/libgbinder.spec b/libgbinder.spec
new file mode 100644
index 0000000..f972ae7
--- /dev/null
+++ b/libgbinder.spec
@@ -0,0 +1,83 @@
+Summary:	Android binder client library
+Name:		libgbinder
+Version:	1.1.30
+Release:	0.1
+License:	BSD
+Group:		Libraries
+Source0:	https://github.com/mer-hybris/libgbinder/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	ab55fd8341f8e36367299fc39810df4c
+Patch0:		install.patch
+URL:		https://github.com/mer-hybris/libgbinder
+BuildRequires:	libglibutil-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+C interfaces for Android binder.
+
+%package devel
+Summary:	Header files for %{name} library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki %{name}
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for %{name} library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki %{name}.
+
+%package tools
+Summary:	Binder tools
+Group:		Applications/System
+Requires:	%{name} = %{version}-%{release}
+
+%description tools
+Binder command line utilities
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__make} LIBDIR=%{_libdir} KEEP_SYMBOLS=1 release pkgconfig
+
+for util in test/binder-bridge test/binder-list test/binder-ping test/binder-call; do
+	%{__make} -C ${util} KEEP_SYMBOLS=1 release
+done
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install-dev \
+	LIBDIR=%{_libdir} \
+	DESTDIR=$RPM_BUILD_ROOT
+
+for util in test/binder-bridge test/binder-list test/binder-ping test/binder-call; do
+	%{__make} -C ${util} DESTDIR=$RPM_BUILD_ROOT install
+done
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS README
+%attr(755,root,root) %{_libdir}/%{name}.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/%{name}.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}.so
+%{_includedir}/gbinder
+%{_pkgconfigdir}/%{name}.pc
+
+%files tools
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/binder-bridge
+%attr(755,root,root) %{_bindir}/binder-list
+%attr(755,root,root) %{_bindir}/binder-ping
+%attr(755,root,root) %{_bindir}/binder-call
diff --git a/install.patch b/install.patch
new file mode 100644
index 0000000..afb7aa4
--- /dev/null
+++ b/install.patch
@@ -0,0 +1,53 @@
+--- libgbinder-1.1.30/Makefile~	2022-12-04 18:51:04.000000000 +0100
++++ libgbinder-1.1.30/Makefile	2022-12-31 18:47:52.068519308 +0100
+@@ -64,9 +64,7 @@
+ NAME = gbinder
+ LIB_NAME = lib$(NAME)
+ LIB_DEV_SYMLINK = $(LIB_NAME).so
+-LIB_SYMLINK1 = $(LIB_DEV_SYMLINK).$(VERSION_MAJOR)
+-LIB_SYMLINK2 = $(LIB_SYMLINK1).$(VERSION_MINOR)
+-LIB_SONAME = $(LIB_SYMLINK1)
++LIB_SONAME = $(LIB_DEV_SYMLINK).$(VERSION_MAJOR)
+ LIB_SO = $(LIB_SONAME).$(VERSION_MINOR).$(VERSION_RELEASE)
+ LIB = $(LIB_NAME).a
+ 
+@@ -162,8 +160,8 @@
+ 
+ DEBUG_SO = $(DEBUG_BUILD_DIR)/$(LIB_SO)
+ RELEASE_SO = $(RELEASE_BUILD_DIR)/$(LIB_SO)
+-DEBUG_LINK = $(DEBUG_BUILD_DIR)/$(LIB_SYMLINK1)
+-RELEASE_LINK = $(RELEASE_BUILD_DIR)/$(LIB_SYMLINK1)
++DEBUG_LINK = $(DEBUG_BUILD_DIR)/$(LIB_SONAME)
++RELEASE_LINK = $(RELEASE_BUILD_DIR)/$(LIB_SONAME)
+ DEBUG_DEV_LINK = $(DEBUG_BUILD_DIR)/$(LIB_DEV_SYMLINK)
+ RELEASE_DEV_LINK = $(RELEASE_BUILD_DIR)/$(LIB_DEV_SYMLINK)
+ DEBUG_LIB = $(DEBUG_BUILD_DIR)/$(LIB)
+@@ -293,10 +291,10 @@
+ 	ln -sf $(LIB_SO) $@
+ 
+ $(DEBUG_DEV_LINK):
+-	ln -sf $(LIB_SYMLINK1) $@
++	ln -sf $(LIB_SONAME) $@
+ 
+ $(RELEASE_DEV_LINK):
+-	ln -sf $(LIB_SYMLINK1) $@
++	ln -sf $(LIB_SONAME) $@
+ 
+ $(COVERAGE_LIB): $(COVERAGE_OBJS)
+ 	$(AR) rc $@ $?
+@@ -332,13 +330,12 @@
+ 
+ install: $(INSTALL_LIB_DIR)
+ 	$(INSTALL) -m 755 $(RELEASE_SO) $(INSTALL_LIB_DIR)
+-	ln -sf $(LIB_SO) $(INSTALL_LIB_DIR)/$(LIB_SYMLINK2)
+-	ln -sf $(LIB_SYMLINK2) $(INSTALL_LIB_DIR)/$(LIB_SYMLINK1)
++	ln -sf $(LIB_SO) $(INSTALL_LIB_DIR)/$(LIB_SONAME)
+ 
+ install-dev: install $(INSTALL_INCLUDE_DIR) $(INSTALL_PKGCONFIG_DIR)
+ 	$(INSTALL_FILES) $(INCLUDE_DIR)/*.h $(INSTALL_INCLUDE_DIR)
+ 	$(INSTALL_FILES) $(PKGCONFIG) $(INSTALL_PKGCONFIG_DIR)
+-	ln -sf $(LIB_SYMLINK1) $(INSTALL_LIB_DIR)/$(LIB_DEV_SYMLINK)
++	ln -sf $(LIB) $(INSTALL_LIB_DIR)/$(LIB_DEV_SYMLINK)
+ 
+ $(INSTALL_LIB_DIR):
+ 	$(INSTALL_DIRS) $@
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libgbinder.git/commitdiff/81e774f29ada12cd7b52eb8d253f3a7e059c77a5



More information about the pld-cvs-commit mailing list