]> git.pld-linux.org Git - packages/libgbinder.git/blob - libgbinder.spec
- new
[packages/libgbinder.git] / libgbinder.spec
1 Summary:        Android binder client library
2 Name:           libgbinder
3 Version:        1.1.30
4 Release:        0.1
5 License:        BSD
6 Group:          Libraries
7 Source0:        https://github.com/mer-hybris/libgbinder/archive/%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5:  ab55fd8341f8e36367299fc39810df4c
9 Patch0:         install.patch
10 URL:            https://github.com/mer-hybris/libgbinder
11 BuildRequires:  libglibutil-devel
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 C interfaces for Android binder.
16
17 %package devel
18 Summary:        Header files for %{name} library
19 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki %{name}
20 Group:          Development/Libraries
21 Requires:       %{name} = %{version}-%{release}
22
23 %description devel
24 Header files for %{name} library.
25
26 %description devel -l pl.UTF-8
27 Pliki nagłówkowe biblioteki %{name}.
28
29 %package tools
30 Summary:        Binder tools
31 Group:          Applications/System
32 Requires:       %{name} = %{version}-%{release}
33
34 %description tools
35 Binder command line utilities
36
37 %prep
38 %setup -q
39 %patch0 -p1
40
41 %build
42 %{__make} LIBDIR=%{_libdir} KEEP_SYMBOLS=1 release pkgconfig
43
44 for util in test/binder-bridge test/binder-list test/binder-ping test/binder-call; do
45         %{__make} -C ${util} KEEP_SYMBOLS=1 release
46 done
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} install-dev \
52         LIBDIR=%{_libdir} \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 for util in test/binder-bridge test/binder-list test/binder-ping test/binder-call; do
56         %{__make} -C ${util} DESTDIR=$RPM_BUILD_ROOT install
57 done
58
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %post   -p /sbin/ldconfig
64 %postun -p /sbin/ldconfig
65
66 %files
67 %defattr(644,root,root,755)
68 %doc AUTHORS README
69 %attr(755,root,root) %{_libdir}/%{name}.so.*.*.*
70 %attr(755,root,root) %ghost %{_libdir}/%{name}.so.1
71
72 %files devel
73 %defattr(644,root,root,755)
74 %attr(755,root,root) %{_libdir}/%{name}.so
75 %{_includedir}/gbinder
76 %{_pkgconfigdir}/%{name}.pc
77
78 %files tools
79 %defattr(644,root,root,755)
80 %attr(755,root,root) %{_bindir}/binder-bridge
81 %attr(755,root,root) %{_bindir}/binder-list
82 %attr(755,root,root) %{_bindir}/binder-ping
83 %attr(755,root,root) %{_bindir}/binder-call
This page took 0.100413 seconds and 3 git commands to generate.