Copying LICENSE file during installation
[profile/tv/apps/native/air_infosquare.git] / packaging / org.tizen.infosquare.spec
1 Name:      org.tizen.infosquare
2 Summary:   Info. Square application for Tizen TV
3 Version:   0.2
4 Release:   1
5 Group:     Applications
6 License:   Apache-2.0
7 Source0:   %{name}-%{version}.tar.gz
8 Source1:   %{name}.manifest
9
10 BuildRequires: cmake
11 BuildRequires: pkgconfig(capi-appfw-application)
12 BuildRequires: pkgconfig(elementary)
13 BuildRequires: pkgconfig(ecore)
14 BuildRequires: pkgconfig(edje)
15 BuildRequires: pkgconfig(app-utils)
16 BuildRequires: pkgconfig(notification)
17 BuildRequires: pkgconfig(vconf)
18 BuildRequires: gettext-devel
19 BuildRequires: edje-bin
20
21 %define _pkgdir %{_prefix}/apps/%{name}
22 %define _bindir %{_pkgdir}/bin
23 %define _resdir %{_pkgdir}/res
24 %define _datadir %{_pkgdir}/data
25 %define _edjedir %{_resdir}/edje
26 %define _manifestdir %{_datarootdir}/packages
27
28 %description
29 Info. Square application for Tizen TV.
30
31 %prep
32 %setup -q
33 cp %{SOURCE1} .
34
35 %build
36 cmake \
37         -DCMAKE_INSTALL_PREFIX=%{_pkgdir} \
38         -DPACKAGE_NAME=%{name} \
39         -DBINDIR=%{_bindir} \
40         -DEDJEDIR=%{_edjedir} \
41         -DMANIFESTDIR=%{_manifestdir} \
42         -DVERSION=%{version}
43
44 make %{?jobs:-j%jobs}
45
46 %install
47 %make_install
48 install --directory %{buildroot}/%{_datadir}
49
50 %clean
51 rm -rf %{buildroot}
52
53 %files
54 %manifest %{name}.manifest
55 %defattr(-,root,root,-)
56 %{_bindir}/*
57 %{_resdir}/*
58 %{_datadir}
59 %{_manifestdir}/%{name}.xml
60 %{_datarootdir}/license/*