54 lines
1.0 KiB
RPMSpec
54 lines
1.0 KiB
RPMSpec
Name: libgbinder
|
|
Version: 1.0.42
|
|
Release: 0
|
|
Summary: Binder client library
|
|
License: BSD
|
|
URL: https://github.com/mer-hybris/libgbinder
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
%define libglibutil_version 1.0.35
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
BuildRequires: pkgconfig(libglibutil) >= %{libglibutil_version}
|
|
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}
|
|
Requires: pkgconfig
|
|
|
|
%description devel
|
|
This package contains the development library for %{name}.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
make LIBDIR=%{_libdir} KEEP_SYMBOLS=1 release pkgconfig
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
make LIBDIR=%{_libdir} DESTDIR=%{buildroot} install-dev
|
|
|
|
%check
|
|
make -C unit 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
|