blob: 111d0a7b5a4105ea8a26c850dcf41ddd60237741 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
Name: org.tizen.$(projectName)
Version: 0.0.1
Release: 1
License: To be filled
Summary: Hello EFL Application
Group: Application
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: pkgconfig(capi-appfw-application)
BuildRequires: pkgconfig(elementary)
BuildRequires: gettext-devel
%description
$(description)
%define _pkgdir /opt/apps/%{name}
%define _bindir %{_pkgdir}/bin
%define _resdir %{_pkgdir}/res
%define _localedir %{_resdir}/locale
%define _manifestdir /opt/share/packages
%define _desktop_icondir /opt/share/icons/default/small
%prep
%setup -q
%build
cmake \
-DCMAKE_INSTALL_PREFIX=%{_pkgdir} \
-DPACKAGE_NAME=%{name} \
-DBINDIR=%{_bindir} \
-DLOCALEDIR=%{_localedir} \
-DMANIFESTDIR=%{_manifestdir} \
-DDESKTOP_ICONDIR=%{_desktop_icondir} \
-DDESKTOP_ICON=%{name}.png \
-DVERSION=%{version}
make %{?jobs:-j%jobs}
%install
%make_install
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/*
%{_resdir}/*
%{_manifestdir}/%{name}.xml
%{_desktop_icondir}/%{name}.png
|