diff options
author | Mikko Ylinen <mikko.ylinen@intel.com> | 2013-10-18 15:14:56 +0300 |
---|---|---|
committer | Mikko Ylinen <mikko.ylinen@intel.com> | 2014-08-08 14:47:54 +0300 |
commit | 92d6df5266948282d7ce74a6f009b8fc3af25756 (patch) | |
tree | c72a7e7b6f2b55c53c3ef10dc6b954bab7734a78 | |
parent | 312e8742c7a650a113180bf0564a49de03dc29c8 (diff) | |
download | dlt-daemon-92d6df5266948282d7ce74a6f009b8fc3af25756.tar.gz dlt-daemon-92d6df5266948282d7ce74a6f009b8fc3af25756.tar.bz2 dlt-daemon-92d6df5266948282d7ce74a6f009b8fc3af25756.zip |
Add tizen packaging files
Change-Id: Ic548724277658515ea29ed0076d8a1fd0da2244f
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
-rw-r--r-- | packaging/dlt-daemon.spec | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/packaging/dlt-daemon.spec b/packaging/dlt-daemon.spec new file mode 100644 index 0000000..3f0e490 --- /dev/null +++ b/packaging/dlt-daemon.spec @@ -0,0 +1,102 @@ +Name: dlt +License: MPL-2.0 +Group: Automotive/GENIVI +Summary: GENIVI Diagnostic Log and Trace +Version: 2.9.1 +Release: 1 +Source: %{name}-%{version}.tar.bz2 +BuildRequires: cmake +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 build +cd build + +cmake -DWITH_SYSTEMD=ON -DWITH_SYSTEMD_JOURNAL=ON \ + -DWITH_MAN=OFF -DWITH_DLT_EXAMPLES=OFF .. +make %{?jobs:-j %jobs} + +%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 + +%files test +%defattr(-,root,root,-) +%{_bindir}/dlt-test* +%{_datadir}/dlt-filetransfer/* + +%files bin +%defattr(-,root,root,-) +%{_bindir}/dlt-adaptor* +%{_bindir}/dlt-convert +%{_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 + +%files -n libdlt +%defattr(-,root,root,-) +%{_libdir}/*so.* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/dlt/* +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc |