spec: Add new tool package for debugging and testing 83/84183/1 accepted/tizen/ivi/20160818.042122 submit/tizen/20160818.012219
authorSangjung Woo <sangjung.woo@samsung.com>
Wed, 17 Aug 2016 06:56:31 +0000 (15:56 +0900)
committerSangjung Woo <sangjung.woo@samsung.com>
Wed, 17 Aug 2016 07:13:45 +0000 (16:13 +0900)
In order to remove python dependency from automotive-message-broker
package, this creates new tool package for debugging and testing tools
such as ambctl, amb-get, amb-listen, amb-set and amb-get-history.
This tool package would not be installed in normal case.

Change-Id: I934929cc031d016e2d145a26eebd0ac553771462
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
packaging/automotive-message-broker.spec

index 4244626..2b5db96 100644 (file)
@@ -15,9 +15,6 @@ Requires: automotive-message-broker-plugins-murphy
 Requires(post): /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
 Requires: default-ac-domains
-Requires: dbus-python
-Requires: python-curses
-Requires: python-gobject
 BuildRequires:  cmake
 BuildRequires:  boost-devel
 BuildRequires:  pkgconfig(json-c)
@@ -64,10 +61,23 @@ Development files for the automotive-message-broker
 Summary:    Documentation for the automotive-message-broker API
 Group:      Automotive/Documentation
 Requires:   %{name} = %{version}-%{release}
+BuildRequires: python
 
 %description doc
 Document files that describe the D-Bus API exposed by automotive-message-broker
 
+%package    tool
+Summary:    Command line tools to make debugging and testing
+Group:      Automotive/Libraries
+Requires:   %{name} = %{version}-%{release}
+Requires:   dbus-python
+Requires:   python-curses
+Requires:   python-gobject
+
+%description tool
+Command line tools to make debugging and testing
+This package includes ambctl, amb-get, amb-listen, amb-set and amb-get-history.
+
 %if %{with qt5}
 %package plugins-qtmainloop
 Summary:    qt5 mainloop plugin
@@ -198,6 +208,7 @@ Group:     Automotive/Libraries
 Requires:  %{name} = %{version}-%{release}
 Requires: qt5-qtdeclarative
 Requires: %{name}-plugins-qtmainloop
+BuildRequires: python
 
 %description plugins-bluemonkey
 Engine for creating scriptable plugins for AMB
@@ -227,6 +238,7 @@ Summary:  crosswalk vehicle API extension
 Group:    Automotive/Libraries
 Requires:  %{name} = %{version}-%{release}
 Requires: crosswalk
+BuildRequires: python
 
 %description xwalk-vehicle-extension
 Crosswalk vehicle API extension based on the W3C Automotive Business Group Vehicle and Data API Specification
@@ -288,11 +300,6 @@ cp packaging/config.tizen %{buildroot}%{_sysconfdir}/ambd/
 %{_unitdir}/ambd.service
 %{_unitdir}/network.target.wants/ambd.service
 %{_unitdir}/multi-user.target.wants/ambd.service
-%{_bindir}/amb-get
-%{_bindir}/amb-get-history
-%{_bindir}/amb-set
-%{_bindir}/amb-listen
-%{_bindir}/ambctl
 %{_sysconfdir}/init.d/ambd
 
 
@@ -383,6 +390,15 @@ cp packaging/config.tizen %{buildroot}%{_sysconfdir}/ambd/
 %manifest packaging.in/amb.manifest.plugins
 %doc %{_docdir}/%{name}/*
 
+%files tool
+%defattr(-,root,root,-)
+%manifest packaging.in/amb.manifest.plugins
+%{_bindir}/amb-get
+%{_bindir}/amb-get-history
+%{_bindir}/amb-set
+%{_bindir}/amb-listen
+%{_bindir}/ambctl
+
 %files plugins-test
 %defattr(-,root,root,-)
 %manifest packaging.in/amb.manifest.plugins