summaryrefslogtreecommitdiffstats
path: root/packaging/rpm/agl-cmake-apps-module.spec
blob: 3124f975a5777c6d5f66585c9999bb0944d506ab (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
51
52
53
54
55
#
# spec file for package cmake-apps-module
#

%define __cmake cmake

%if 0%{?fedora_version}
%global debug_package %{nil}
%endif

Name:           agl-cmake-apps-module
# WARNING {name} is not used for tar file name in source nor for setup
#         Check hard coded values required to match git directory naming
BuildArchitectures: noarch
Version:        6.90
Release:        0
License:        Apache-2.0
Summary:        AGL cmake-apps-module
Group:          Development/Libraries/C and C++
Url:            https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/cmake-apps-module
Source:         cmake-apps-module-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This is a CMake module made to ease development of binding and application
framework binder apps.

%prep
%setup -q -n cmake-apps-module-%{version}

%build
[ ! -d build ] && mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..

%install
[ -d build ] && cd build
%make_install

%files
%defattr(-,root,root)
%dir %{_datadir}/cmake/Modules/
%dir %{_defaultdocdir}/CMakeAfbTemplates/
%{_datadir}/cmake/Modules/*
%{_defaultdocdir}/CMakeAfbTemplates/*

%changelog
* Wed Dec 12 2018 Romain
- Separation of docs files at installation
- Fix the install prefix at build time

* Thu Nov 5 2018 Romain
- initial creation