summaryrefslogtreecommitdiff
path: root/packaging/dlt-daemon.spec
blob: 65cba493f3542b09a87664ada5a136cecf7b3ba4 (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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
Name:             dlt
License:          MPL-2.0
Group:            Automotive/GENIVI
Summary:          GENIVI Diagnostic Log and Trace
Version:          2.11.0
Release:          0
Source:           %{name}-%{version}.tar.bz2
BuildRequires:    cmake
BuildRequires:    pkg-config
BuildRequires:    pkgconfig(dbus-1)
BuildRequires:    pkgconfig(zlib)
BuildRequires:    pkgconfig(libsystemd-journal)
Requires(post):   /sbin/ldconfig
Requires(postun): /sbin/ldconfig

%description
GENIVI Diagnostic Log and Tracing Daemon and Tools

%package daemon
Summary:    GENIVI DLT Daemon

%description daemon
GENIVI Diagnostic Log and Tracing Daemon

%package bin
Summary:    GENIVI DLT utility binaries

%description bin
GENIVI DLT utility binaries

%package test
Summary:    GENIVI DLT test binaries

%description test
GENIVI DLT test binaries

%package -n libdlt
Summary:    GENIVI DLT library

%description -n libdlt
GENIVI DLT library

%package devel
Summary:         Automotive DLT Development Package
Requires:        libdlt = %{version}-%{release}

%description devel
Files needed for developing against the Automotive DLT

%prep
%setup -q -n %{name}-%{version}

%build
mkdir -p build
cd build

cmake -DWITH_SYSTEMD=ON -DWITH_SYSTEMD_JOURNAL=ON \
      -DWITH_MAN=OFF -DWITH_DLT_EXAMPLES=OFF ..
make %{?_smp_mflags}

%install
rm -rf "$RPM_BUILD_ROOT"
cd build
make install DESTDIR=$RPM_BUILD_ROOT

%post -n libdlt -p /sbin/ldconfig

%postun -n libdlt -p /sbin/ldconfig

%clean
rm -rf "$RPM_BUILD_ROOT"

%files daemon
%defattr(-,root,root,-)
%{_bindir}/dlt-daemon
%config %{_sysconfdir}/dlt.conf
%{_prefix}/lib/systemd/system/dlt.service
%license MPL.txt

%files test
%defattr(-,root,root,-)
%{_bindir}/dlt-test*
%{_datadir}/dlt-filetransfer/*

%files bin
%defattr(-,root,root,-)
%{_bindir}/dlt-adaptor*
%{_bindir}/dlt-convert
%{_bindir}/dlt-dbus
%{_bindir}/dlt-receive
%{_bindir}/dlt-system
%{_bindir}/dlt-control
%config %{_sysconfdir}/dlt-system.conf
%{_prefix}/lib/systemd/system/dlt-adaptor-udp.service
%{_prefix}/lib/systemd/system/dlt-receive.service
%{_prefix}/lib/systemd/system/dlt-system.service
%{_prefix}/lib/systemd/system/dlt-dbus.service
%config %{_sysconfdir}/dlt-dbus.conf

%files -n libdlt
%defattr(-,root,root,-)
%{_libdir}/*so.*

%files devel
%defattr(-,root,root,-)
%{_includedir}/dlt/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc