separate devel package and main package
authorJihoon Jung <jh8801.jung@samsung.com>
Mon, 4 Dec 2017 04:09:01 +0000 (13:09 +0900)
committersaerome.kim <saerome.kim@samsung.com>
Mon, 2 Jul 2018 10:38:37 +0000 (19:38 +0900)
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
packaging/d2d-manager-devel.manifest [moved from packaging/d2dd.manifest with 100% similarity]
packaging/d2d-manager.manifest [new file with mode: 0644]
packaging/d2d-manager.service [moved from packaging/d2dd.service with 100% similarity]
packaging/d2d-manager.spec
src/subownerclient/main.c [new file with mode: 0755]

diff --git a/packaging/d2d-manager.manifest b/packaging/d2d-manager.manifest
new file mode 100644 (file)
index 0000000..a76fdba
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+       <request>
+               <domain name="_" />
+       </request>
+</manifest>
index 7f7bab2..a166031 100644 (file)
@@ -5,20 +5,19 @@ Release:    0
 Group:      Network & Connectivity/Other
 License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
-Source2:    d2dd.service
-Source3:    d2dd.manifest
-Source4:    net.d2d.manager.service
+Source2:    %{name}.service
+Source3:    %{name}.manifest
+Source4:    %{name}-devel.manifest
+Source5:    net.d2d.manager.service
 #Source5:    d2dpt.manifest
 
 BuildRequires: cmake
-BuildRequires: boost-devel
 BuildRequires: pkgconfig(iotivity)
 BuildRequires: pkgconfig(glib-2.0)
 BuildRequires: pkgconfig(gio-2.0)
 BuildRequires: pkgconfig(gio-unix-2.0)
 BuildRequires: pkgconfig(dlog)
 BuildRequires: pkgconfig(dbus-1)
-BuildRequires: pkgconfig(iotivity)
 BuildRequires: pkgconfig(json-glib-1.0)
 BuildRequires: pkgconfig(uuid)
 BuildRequires: pkgconfig(capi-base-common)
@@ -27,6 +26,14 @@ BuildRequires: pkgconfig(libtzplatform-config)
 %description
 D2D Manager
 
+%package devel
+Summary:  D2D Manager (Development)
+Group:    Network & Connectivity/Other
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+This package contains the development files for %{name}.
+
 %prep
 %setup -q
 chmod 644 %{SOURCE0}
@@ -63,19 +70,20 @@ rm -rf %{buildroot}/BUILD/%{name}*
 mkdir -p %{buildroot}%{_datadir}/dbus-1/system-services/
 cp %{SOURCE4} %{buildroot}%{_datadir}/dbus-1/system-services/net.d2d.manager.service
 mkdir -p %{buildroot}%{_unitdir}
-cp %{SOURCE2} %{buildroot}%{_unitdir}/d2dd.service
+cp %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service
 
 cp test/oic_svr_db_client.dat oic_svr_db_subowner_client.dat
 
 %files
-%manifest d2dd.manifest
+%manifest %{name}.manifest
 %license LICENSE
 %defattr(-,root,root,-)
 #%{_bindir}/%{name}-daemon
 %attr(644,root,root) %{_datadir}/dbus-1/system-services/*
-%attr(644,root,root) %{_unitdir}/d2dd.service
+%attr(644,root,root) %{_unitdir}/%{name}.service
 
-# The following should be separated into different packages.
+%files devel
+%manifest %{name}-devel.manifest
 %defattr(-,root,root,-)
 %{NETWORK_FW_DATADIR}/oic_amss_db.dat
 %{NETWORK_FW_DATADIR}/oic_svr_db_client_devowner.dat
diff --git a/src/subownerclient/main.c b/src/subownerclient/main.c
new file mode 100755 (executable)
index 0000000..604677f
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+ * Copyright (c) 2012, 2013 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <stdio.h>
+#include <stdint.h>
+#include <glib.h>
+
+int main()
+{
+       return 0;
+}