Release version 1.3.2
[platform/core/appfw/rpc-port.git] / packaging / rpc-port.spec
1 Name:       rpc-port
2 Summary:    RPC Port library
3 Version:        1.3.2
4 Release:    0
5 Group:          Application Framework/Libraries
6 License:    Apache-2.0
7 Source0:    %{name}-%{version}.tar.gz
8 Source1001:     %{name}.manifest
9 BuildRequires:  cmake
10 BuildRequires:  pkgconfig(dlog)
11 BuildRequires:  pkgconfig(bundle)
12 BuildRequires:  pkgconfig(glib-2.0)
13 BuildRequires:  pkgconfig(aul)
14 BuildRequires:  pkgconfig(pkgmgr)
15 BuildRequires:  pkgconfig(pkgmgr-info)
16 BuildRequires:  pkgconfig(gmock)
17 BuildRequires:  pkgconfig(cynara-client)
18 BuildRequires:  pkgconfig(cynara-creds-gdbus)
19 BuildRequires:  pkgconfig(uuid)
20
21 Requires(post): /sbin/ldconfig
22 Requires(post): coreutils
23 Requires(postun): /sbin/ldconfig
24
25 Requires: amd-mod-rpc-port
26
27 %description
28 RPC Port library package.
29
30 %package devel
31 Summary:  RPC Port library (Development)
32 Group:    Application Framework/Development
33 Requires: %{name} = %{version}-%{release}
34
35 %description devel
36 RPC Port library (Development) package.
37
38 %prep
39 %setup -q
40 cp %{SOURCE1001} .
41
42 %build
43 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
44 %cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
45 # Call make instruction with smp support
46 %__make %{?jobs:-j%jobs}
47
48 %install
49 rm -rf %{buildroot}
50
51 %make_install
52
53
54 %post -p /sbin/ldconfig
55
56 %postun -p /sbin/ldconfig
57
58 %files
59 %manifest %{name}.manifest
60 %attr(0644,root,root) %{_libdir}/lib%{name}.so.*
61 %license LICENSE.APLv2
62
63 %files devel
64 %{_includedir}/rpc-port/*.h
65 %{_libdir}/pkgconfig/*.pc
66 %{_libdir}/lib%{name}.so
67
68 #################################################
69 # gtest-rpc-port
70 #################################################
71 %package -n gtest-rpc-port
72 Summary:    GTest for rpc-port
73 Group:      Development/Libraries
74 Requires:   %{name}
75
76 %description -n gtest-rpc-port
77 GTest for rpc-port
78
79 %files -n gtest-rpc-port
80 %{_bindir}/gtest-rpc-port