From d415a4a606cffd52bbc54e67a570e1d4a494ee8e Mon Sep 17 00:00:00 2001 From: MyungJoo Ham Date: Wed, 23 May 2018 16:36:24 +0900 Subject: [PATCH] [DIST] Add .spec for gbs/obs builds Added .spec / .manifest for gbs/obs builds Fixes #10 Signed-off-by: MyungJoo Ham --- packaging/nnstreamer.manifest | 5 +++++ packaging/nnstreamer.spec | 50 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 packaging/nnstreamer.manifest create mode 100644 packaging/nnstreamer.spec diff --git a/packaging/nnstreamer.manifest b/packaging/nnstreamer.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/nnstreamer.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/nnstreamer.spec b/packaging/nnstreamer.spec new file mode 100644 index 0000000..2633bcd --- /dev/null +++ b/packaging/nnstreamer.spec @@ -0,0 +1,50 @@ +Name: nnstreamer +Summary: gstremaer plugins for neural networks +Version: 0.0.1 +Release: 1 +Group: Applications/Multimedia +Packager: MyungJoo Ham +License: LGPL-2.0 +Source0: nnstreamer-%{version}.tar.gz +Source1001: nnstreamer.manifest + +Requires: gstreamer >= 1.8.0 +Requires: libdlog +BuildRequires: gstreamer-devel +BuildRequires: gst-plugins-base-devel +BuildRequires: glib2-devel +BuildRequires: cmake +BuildRequires: libdlog-devel + +%description +NNStreamer is a set of gstreamer plugins to support general neural networks +and their plugins in a gstreamer stream. + +%prep +%setup -q + +%build + +mkdir -p build +pushd build +%cmake .. -DTIZEN=ON +make %{?_smp_mflags} +popd + +# DO THE TEST! + +pushd tensor_converter/test +./runTest.sh +popd + +%install +pushd build +%make_install +popd + +%files +%{_libdir}/* + +%changelog +* Fri May 25 2018 MyungJoo Ham +- Packaged tensor_convert plugin. -- 2.7.4