822ab2077dd8f2d6d67dbe6c8605c7204ad28592
[framework/api/radio.git] / packaging / capi-media-radio.spec
1 #sbs-git:slp/api/radio capi-media-radio 0.1.0 59dddd8ea3de373c44c66ce2a298ca81240305a8
2 Name:       capi-media-radio
3 Summary:    A Radio library in Tizen Native API
4 Version: 0.1.0
5 Release:    11
6 Group:      TO_BE_FILLED
7 License:    TO_BE_FILLED
8 Source0:    %{name}-%{version}.tar.gz
9 BuildRequires:  pkgconfig(dbus-glib-1)
10 BuildRequires:  pkgconfig(dlog)
11 BuildRequires:  pkgconfig(vconf)
12 BuildRequires:  pkgconfig(mm-radio)
13 BuildRequires:  pkgconfig(capi-base-common)
14 BuildRequires:  cmake
15 BuildRequires:  gettext-devel
16
17 %description
18 A Radio library in Tizen Native API
19
20
21 %package devel 
22 Summary:    A Radio library in Tizen Native API (Developement)
23 Group:      TO_BE_FILLED 
24 Requires:   %{name} = %{version}-%{release}
25
26 %description devel
27 A Radio library in Tizen Native API (Developement)
28
29 %prep
30 %setup -q
31
32 %build
33 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
34 cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
35
36
37 make %{?jobs:-j%jobs}
38
39 %install
40 rm -rf %{buildroot}
41 mkdir -p %{buildroot}/usr/share/license
42 cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
43 %make_install
44
45 %post
46
47 %postun
48
49
50 %files
51 %manifest capi-media-radio.manifest
52 %defattr(-,root,root,-)
53 /usr/lib/libcapi-media-radio.so.*
54 %{_datadir}/license/%{name}
55
56 %files devel 
57 %defattr(-,root,root,-)
58 /usr/include/media/radio.h
59 /usr/lib/pkgconfig/capi-media-radio.pc
60 /usr/lib/libcapi-media-radio.so