Name: libgbinder Version: 1.1.13 Release: 0 Summary: Binder client library License: BSD URL: https://github.com/mer-hybris/libgbinder Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz %define libglibutil_version 1.0.52 BuildRequires: gcc BuildRequires: make BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(libglibutil) >= %{libglibutil_version} BuildRequires: pkgconfig BuildRequires: bison BuildRequires: flex # Possibly required? BuildRequires: valgrind lcov Requires: libglibutil >= %{libglibutil_version} Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig %description C interfaces for Android binder %package devel Summary: Development library for %{name} Requires: %{name} = %{version} %description devel This package contains the development library for %{name}. %prep %setup -q %build make %{_make_output_sync} %{_smp_mflags} %{_make_verbose} LIBDIR=%{_libdir} KEEP_SYMBOLS=1 release pkgconfig make -C test/binder-bridge %{_make_output_sync} %{_smp_mflags} %{_make_verbose} KEEP_SYMBOLS=1 release make -C test/binder-list %{_make_output_sync} %{_smp_mflags} %{_make_verbose} KEEP_SYMBOLS=1 release make -C test/binder-ping %{_make_output_sync} %{_smp_mflags} %{_make_verbose} KEEP_SYMBOLS=1 release make -C test/binder-call %{_make_output_sync} %{_smp_mflags} %{_make_verbose} KEEP_SYMBOLS=1 release %install rm -rf %{buildroot} make %{_make_output_sync} %{_smp_mflags} %{_make_verbose} LIBDIR=%{_libdir} DESTDIR=%{buildroot} install-dev make -C test/binder-bridge %{_make_output_sync} %{_smp_mflags} %{_make_verbose} DESTDIR=%{buildroot} install make -C test/binder-list %{_make_output_sync} %{_smp_mflags} %{_make_verbose} DESTDIR=%{buildroot} install make -C test/binder-ping %{_make_output_sync} %{_smp_mflags} %{_make_verbose} DESTDIR=%{buildroot} install make -C test/binder-call %{_make_output_sync} %{_smp_mflags} %{_make_verbose} DESTDIR=%{buildroot} install %check make -C unit %{_make_output_sync} %{_smp_mflags} %{_make_verbose} test %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %{_libdir}/%{name}.so.* %files devel %defattr(-,root,root,-) %{_libdir}/pkgconfig/*.pc %{_libdir}/%{name}.so %{_includedir}/gbinder/*.h # Tools %package tools Summary: Binder tools Requires: %{name} >= %{version} %description tools Binder command line utilities %files tools %defattr(-,root,root,-) %{_bindir}/binder-bridge %{_bindir}/binder-list %{_bindir}/binder-ping %{_bindir}/binder-call