Commit 924f632d authored by Philippe Coval's avatar Philippe Coval Committed by Mats Wichmann

rpm: Also support OS without manifest

This was needed for ARTIK7 on fedora-24

Change-Id: I9a5081fe78299ca57dd2fbfa4efb70b051e4ad28
Bug: https://jira.iotivity.org/browse/IOT-524Signed-off-by: default avatarPhilippe Coval <philippe.coval@osg.samsung.com>
parent 9c17a285
......@@ -6,8 +6,11 @@ Group: Network & Connectivity / IoT Connectivity
License: Apache-2.0 and BSD-2-Clause and (MIT or BSL-1.0) and MIT
URL: https://www.iotivity.org/
Source0: http://mirrors.kernel.org/%{name}/%{version}/%{name}-%{version}.tar.gz
%if 0%{?manifest:1}
Source1001: %{name}.manifest
Source1002: %{name}-test.manifest
%endif
%if 0%{?tizen:1}
%define TARGET_OS tizen
......@@ -67,10 +70,6 @@ BuildRequires: python-accel-aarch64-cross-aarch64
%define license %doc
%endif
%if ! 0%{?manifest:0}
%define manifest %doc
%endif
# Default values to be eventually overiden BEFORE or as gbs params:
%{!?ES_TARGET_ENROLLEE: %define ES_TARGET_ENROLLEE %{TARGET_OS}}
%{!?LOGGING: %define LOGGING 1}
......@@ -180,12 +179,14 @@ find . \
cat LICENSE
%if 0%{?manifest:1}
cp %{SOURCE1001} .
%if 0%{?tizen_version_major} < 3
cp %{SOURCE1002} .
%else
cp %{SOURCE1001} ./%{name}-test.manifest
%endif
%endif
%build
scons %{?_smp_mflags} --prefix=%{_prefix} \
......@@ -292,7 +293,9 @@ rm -rfv out %{buildroot}/out %{buildroot}/${HOME} ||:
%postun -p /sbin/ldconfig
%files
%if 0%{?manifest:1}
%manifest %{name}.manifest
%endif
%defattr(-,root,root,-)
%license LICENSE
%{_libdir}/liboc.so
......@@ -308,7 +311,9 @@ rm -rfv out %{buildroot}/out %{buildroot}/${HOME} ||:
%endif
%files service
%if 0%{?manifest:1}
%manifest %{name}.manifest
%endif
%defattr(-,root,root,-)
%license LICENSE
%{_libdir}/libBMISensorBundle.so
......@@ -330,7 +335,9 @@ rm -rfv out %{buildroot}/out %{buildroot}/${HOME} ||:
%endif
%files test
%if 0%{?manifest:1}
%manifest %{name}-test.manifest
%endif
%defattr(-,root,root,-)
%license LICENSE
%{_bindir}/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment