summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Coval <philippe.coval@osg.samsung.com>2016-10-20 09:54:13 +0200
committerPhilippe Coval <philippe.coval@osg.samsung.com>2016-10-20 12:00:40 +0200
commitcb36bbf7cf0f653480f8c26384497561586c2375 (patch)
treeb583628db4395f46d45c671c7694626640cbcf38
parentd1893c63648c4ede7bb9e9a976c4b740b771ee56 (diff)
downloadiotcon-cb36bbf7cf0f653480f8c26384497561586c2375.tar.gz
iotcon-cb36bbf7cf0f653480f8c26384497561586c2375.tar.bz2
iotcon-cb36bbf7cf0f653480f8c26384497561586c2375.zip
tizen: Add license file for devel subpackage
Change-Id: I0a7fd5ece1d1922cfaebc04ebc3829405cd9ca74 Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
-rw-r--r--packaging/iotcon.spec6
1 files changed, 6 insertions, 0 deletions
diff --git a/packaging/iotcon.spec b/packaging/iotcon.spec
index 2a1cd86..065ed90 100644
--- a/packaging/iotcon.spec
+++ b/packaging/iotcon.spec
@@ -102,6 +102,7 @@ rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_datadir}/license
cp LICENSE.APLv2 %{buildroot}/%{_datadir}/license/%{name}
cp LICENSE.APLv2 %{buildroot}/%{_datadir}/license/%{name}-test
+cp LICENSE.APLv2 %{buildroot}/%{_datadir}/license/%{name}-devel
%else
mkdir -p %{buildroot}/usr/share/%{name}
cp %{name}-network-get %{buildroot}/usr/share/%{name}/%{name}-network-get
@@ -140,6 +141,11 @@ chsmack -a "*" /usr/share/%{name}/%{name}-network-get
%files devel
%defattr(-,root,root,-)
+%if 0%{?tizen_version_major} < 3
+%{_datadir}/license/%{name}
+%else
+%license LICENSE.APLv2
+%endif
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}/*.h