cleanup specfile for packaging
[profile/ivi/automotive-dlt.git] / automotive-dlt.spec.cheetah
1 Name: automotive-dlt
2 Summary: %{name} - Diagnostic Log and Trace
3 Version: 2.2.0
4 Release: 1
5 License: LGPLv2.1 with special exception
6 Group: System Environment/Base
7 Vendor: BMW Group AG
8 Source: %{name}-%{version}.tar.gz
9 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
10 Requires: %{name} = %{version}-%{release}, pkgconfig
11
12 %description
13 This component provides a standardised log and trace interface, based on the
14 standardised protocol specified in the AUTOSAR standard 4.0 DLT.
15 This component can be used by GENIVI components and other applications as
16 logging facility providing
17 - the DLT shared library
18 - the DLT daemon, including startup scripts
19 - the DLT daemon adaptors
20 - the DLT client console utilities
21 - the DLT test applications
22
23 %package doc
24 Summary:        %{name} - Diagnostic Log and Trace: Documentation
25 Group:          Documentation
26
27 %description doc
28 This component provides the documentation for %{name}.
29
30 %package devel
31 Summary:        %{name} - Diagnostic Log and Trace: Development files
32 Group:          Development/Libraries
33 Requires:       %{name} = %{version}-%{release}, pkgconfig
34
35 %description devel
36 This component provides the development libraries and includes for %{name}.
37
38 %prep
39 %setup
40 echo "building package automotive-dlt"
41
42 %build
43 #if $BUILD_DOC == "ON"
44 %configure --enable-build-doc
45 #else
46 %configure
47 #end if
48 make
49
50 %install
51 rm -rf \$RPM_BUILD_ROOT
52 make install DESTDIR=\$RPM_BUILD_ROOT
53 mkdir -p \$RPM_BUILD_ROOT/etc/init.d
54 /usr/bin/install -c -m 755 testscripts/dltdaemon \$RPM_BUILD_ROOT/etc/init.d
55
56 %clean
57 rm -rf \$RPM_BUILD_ROOT
58
59 %files
60 /etc/init.d/dltdaemon
61 %{_libdir}/libdlt.so.2
62 %{_libdir}/libdlt.so.2.2.0
63 %{_libdir}/libdlt.so
64 %attr(0755,root,root) %{_bindir}/dltinfo.sh
65 %{_bindir}/dlt-convert
66 %{_bindir}/dlt-receive
67 %{_bindir}/dlt-adaptor-stdin
68 %{_bindir}/dlt-adaptor-udp
69 %{_bindir}/dlt-test-client
70 %{_bindir}/dlt-test-user
71 %{_bindir}/dlt-test-stress
72 %{_bindir}/dlt-test-internal
73 %attr(0755,root,root) %{_bindir}/dlt-daemon
74 %{_bindir}/dlt-example-user
75 %{_bindir}/dlt-example-user-func
76 %{_bindir}/dltdaemon
77
78
79 %files doc
80 %{_usr}/doc/dlt2/LICENSE.txt
81 #if $BUILD_DOC == "ON"
82 /usr/local/doc/%{name}/GENIVI_UserManual_DLT_Daemon.odt
83 /usr/local/doc/%{name}/GENIVI_UserManual_DLT_Daemon.pdf
84 /usr/local/doc/%{name}/GENIVI_Specification_DLT_Daemon.odt
85 /usr/local/doc/%{name}/GENIVI_Specification_DLT_Daemon.pdf
86 /usr/local/doc/%{name}/GENIVI_UserManual_DLT_Client.odt
87 /usr/local/doc/%{name}/GENIVI_UserManual_DLT_Client.pdf
88 /usr/local/doc/%{name}/GENIVI_Specification_DLT_Daemon.vsd
89 #end if
90
91
92 %files devel
93 %{_libdir}/pkgconfig/*.pc
94 %{_includedir}/dlt/*.h
95 %{_libdir}/pkgconfig/automotive-dlt.pc
96
97 %pre
98
99 %post
100
101 %changelog
102 * Wed Nov 24 2010 dlt_maintainer <dlt_maintainer@genivi.org> 2.2.0
103 - Creation