summaryrefslogtreecommitdiff
path: root/automotive-dlt.spec.cmake
blob: 1056da1891cf4831088d547054d0ef555cb31d4d (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
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
Name: @PROJECT_NAME@
Summary: %{name} - Diagnostic Log and Trace
Version: @PRINT_MAJOR_VERSION@.@PRINT_MINOR_VERSION@.@PRINT_PATCH_LEVEL@
Release: @GENIVI_RPM_RELEASE@
License: @LICENSE@
Group: System Environment/Base
Vendor: BMW Group AG
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: %{name} = %{version}-%{release}, pkgconfig

%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}, pkgconfig

%description devel
This component provides the development libraries and includes for %{name}.

%prep
%setup
echo "building package automotive-dlt"

%build
%configure
make

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/etc/init.d
/usr/bin/install -c -m 755 testscripts/Ubuntu/dlt-daemon $RPM_BUILD_ROOT/etc/init.d

%clean
rm -rf $RPM_BUILD_ROOT

%files
/etc/init.d/dlt-daemon
%{_libdir}/libdlt.so.2
%{_libdir}/libdlt.so.2.2.0
%{_libdir}/libdlt.so
%{_bindir}/dlt-convert
%{_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-internal
%attr(0755,root,root) %{_bindir}/dlt-daemon
%{_bindir}/dlt-example-user
%{_bindir}/dlt-example-user-func



%files doc
%{_usr}/doc/dlt2/LICENSE.txt


%files devel
%{_libdir}/pkgconfig/*.pc
%{_includedir}/dlt/*.h
%{_libdir}/pkgconfig/automotive-dlt.pc

%pre

%post

%changelog
* Wed Nov 24 2010 dlt_maintainer <dlt_maintainer@genivi.org> 2.2.0
- Creation