summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMyungJoo Ham <myungjoo.ham@samsung.com>2019-11-26 10:09:34 +0900
committerInki Dae <inki.dae@samsung.com>2020-06-29 14:41:01 +0900
commit140cbbc8f7a72f0c96f4d2155c1e570335f57cc4 (patch)
tree1aacec5fd53c54d7a03e972b845dfda109747220
parent23bf4a2bc5233f90ca4a6cb496ae05f039da721d (diff)
downloadarmcl-140cbbc8f7a72f0c96f4d2155c1e570335f57cc4.tar.gz
armcl-140cbbc8f7a72f0c96f4d2155c1e570335f57cc4.tar.bz2
armcl-140cbbc8f7a72f0c96f4d2155c1e570335f57cc4.zip
Dist/Tizen: spec file clean-up
1. Do not use "release" postfix for the main library package. 2. Do not use -n if you are going to have the main name as prefix. 3. Cleaned up and added missing internal dependencies Change-Id: Ic9adef91725b2f73a19b0a5d89ac8480643859da Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
-rw-r--r--packaging/libarmcl.spec22
1 files changed, 11 insertions, 11 deletions
diff --git a/packaging/libarmcl.spec b/packaging/libarmcl.spec
index 0eb976d80..080aeb372 100644
--- a/packaging/libarmcl.spec
+++ b/packaging/libarmcl.spec
@@ -13,6 +13,11 @@ BuildRequires: python3-base
BuildRequires: python
BuildRequires: scons
+# It was named "libarmcl-release", which does not obey the naming rule.
+# Added this "Provides" for backward compatibility.
+# This will be removed when the dependencies on this "obsolete" name are cleared.
+Provides: libarmcl-release=%{version}-%{release}
+
%define OPEN_CL_SUPPORT 1
%define NEON_SUPPORT 1
%define BENCHMARK_TEST 1
@@ -20,23 +25,18 @@ BuildRequires: scons
%description
The ARM Computer Vision and Machine Learning library is a set of functions optimised for both ARM CPUs and GPUs using SIMD technologies
-%package -n %{name}-release
-Summary: ARM Compute Library file
-
-%description -n %{name}-release
-Summary: ARM Compute Library file
-
%package devel
Summary: Userspace interface to ARM Compute Library
-Requires: %{name}-release = %{version}-%{release}
+Requires: %{name} = %{version}-%{release}
%description devel
Summary: Userspace interface to ARM Compute Library
-%package -n %{name}-tools
+%package tools
Summary: Sample application and benchmark binaries to test ARM Compute Library
+Requires: %{name} = %{version}-%{release}
-%description -n %{name}-tools
+%description tools
Summary: Sample application and benchmark binaries to test ARM Compute Library
%prep
@@ -117,7 +117,7 @@ install -m 644 %{_builddir}/%{name}-%{version}/build/tests/arm_compute_benchmark
cp -r %{_builddir}/%{name}-%{version}/data/* %{buildroot}%{_libdir}/data/
%endif
-%files -n %{name}-release
+%files
%manifest %{name}.manifest
%{_libdir}/libarm_compute*.so
@@ -130,7 +130,7 @@ cp -r %{_builddir}/%{name}-%{version}/data/* %{buildroot}%{_libdir}/data/
%{_includedir}/half/*
%{_includedir}/libnpy/*
-%files -n %{name}-tools
+%files tools
%manifest %{name}.manifest
%{_bindir}/cl_convolution
%{_bindir}/cl_events