forked from COVESA/dlt-daemon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
automotive-dlt.spec.in
152 lines (119 loc) · 3.66 KB
/
automotive-dlt.spec.in
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
#######
# SPDX license identifier: MPL-2.0
#
# Copyright (C) 2011-2015, BMW AG
#
# This file is part of GENIVI Project DLT - Diagnostic Log and Trace.
#
# This Source Code Form is subject to the terms of the
# Mozilla Public License (MPL), v. 2.0.
# If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# For further information see http://www.genivi.org/.
#######
Name: @PROJECT_NAME@
Version: @PROJECT_VERSION@
Release: @GENIVI_RPM_RELEASE@
Summary: %{name} - Diagnostic Log and Trace
Group: System Environment/Base
Vendor: BMW Group AG
License: @LICENSE@
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: pkg-configure
BuildRequires: cmake
%description
This component provides a standardised log and trace interface, based on the
standardised protocol specified in the AUTOSAR standard 4.0 DLT.
This component can be used by GENIVI components and other applications as
logging facility providing
- the DLT shared library
- the DLT daemon, including startup scripts
- the DLT daemon adaptors
- the DLT client console utilities
- the DLT test applications
%package doc
Summary: %{name} - Diagnostic Log and Trace: Documentation
Group: Documentation
%description doc
This component provides the documentation for %{name}.
%package devel
Summary: %{name} - Diagnostic Log and Trace: Development files
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Provides: pkgconfig(%{name})
%description devel
This component provides the development libraries and includes for %{name}.
%package c++-devel
Summary: %{name} - Diagnostic Log and Trace: Development files
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}-devel
Provides: pkgconfig(%{name}-c++)
%description c++devel
This component adds a C++ extension for %{name}.
%prep
%setup -q
%build
rm -rf build
mkdir -p build
cd build
#../configure --host=@HOST_TYPE@ --prefix=%{_prefix}
#make
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
%install
rm -rf $RPM_BUILD_ROOT
cd build
mkdir -p $RPM_BUILD_ROOT%{_bindir}
make install DESTDIR=$RPM_BUILD_ROOT
#/usr/bin/install -c -m 755 testscripts/Meego/dlt-daemon $RPM_BUILD_ROOT/etc/init.d
%pre
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
#/etc/init.d/dlt-daemon
/etc/dlt-system.conf
/etc/dlt.conf
/usr/share/dlt-filetransfer/dlt-test-filetransfer-file
/usr/share/dlt-filetransfer/dlt-test-filetransfer-image.png
%{_libdir}/libdlt.so.@PROJECT_VERSION_MAJOR@
%{_libdir}/libdlt.so.@PROJECT_VERSION@
%{_libdir}/libdlt.so
%{_bindir}/dlt-system
%{_bindir}/dlt-convert
%{_bindir}/dlt-sortbytimestamp
%{_bindir}/dlt-receive
%{_bindir}/dlt-adaptor-stdin
%{_bindir}/dlt-adaptor-udp
%{_bindir}/dlt-test-client
%{_bindir}/dlt-test-user
%{_bindir}/dlt-test-stress
%{_bindir}/dlt-test-stress-client
%{_bindir}/dlt-test-stress-user
%{_bindir}/dlt-test-filetransfer
%{_bindir}/dlt-test-multi-process
%{_bindir}/dlt-test-multi-process-client
%attr(0755,root,root)
%{_bindir}/dlt-daemon
%{_bindir}/dlt-example-user
%{_bindir}/dlt-example-user-func
%{_bindir}/dlt-example-filetransfer
%files doc
@PACKAGE_DOC@%{_mandir}/man1/dlt-convert.1.gz
@PACKAGE_DOC@%{_mandir}/man1/dlt-sortbytimestamp.1.gz
@PACKAGE_DOC@%{_mandir}/man1/dlt-daemon.1.gz
@PACKAGE_DOC@%{_mandir}/man1/dlt-receive.1.gz
@PACKAGE_DOC@%{_mandir}/man1/dlt-system.1.gz
@PACKAGE_DOC@%{_mandir}/man5/dlt-system.conf.5.gz
@PACKAGE_DOC@%{_mandir}/man5/dlt.conf.5.gz
%files devel
%{_includedir}/dlt/*.h
%{_libdir}/pkgconfig/@[email protected]
%files c++-devel
%{_includedir}/dlt/*.hpp
%{_libdir}/pkgconfig/@PROJECT_NAME@-c++.pc