get rid of duplicate LICENSE files in 3 packages

There are 2 duplicated LICESE files in mtce-control, mtce-compute,
and mtce-storage. Additionally, LICENSE was not placed in the root
directory of src RPM, so this patch is made as an enhancement or fix.
After this change, license file location and code structure in all 4
modules (mtce-common, mtce-compute, mtce-storage and mtce-control)
will be the same.

Test method: make a clean build and check src RPM and binary RPM
to assure there is only one LICENSE in correct place.

Story: 2004186
Task: 27676

Change-Id: Id71a7450e8b45438c5d15976ae8e853b9ba8f4f5
Signed-off-by: Yong Hu <yong.hu@intel.com>
This commit is contained in:
Yong Hu
2018-10-26 01:46:27 +00:00
parent 196eb85eba
commit 2402fb16ae
15 changed files with 11 additions and 622 deletions

View File

@@ -1,3 +1,3 @@
SRC_DIR="$PKG_BASE/src"
COPY_LIST="$SRC_DIR/*"
TIS_PATCH_VER=5
TIS_PATCH_VER=6

View File

@@ -39,7 +39,6 @@ make install buildroot=%{buildroot} _sysconfdir=%{_sysconfdir} _unitdir=%{_unitd
/bin/systemctl enable qemu_clean.service
%files
%license LICENSE
%defattr(-,root,root,-)
%{_sysconfdir}/init.d/goenabledCompute
@@ -54,7 +53,7 @@ make install buildroot=%{buildroot} _sysconfdir=%{_sysconfdir} _unitdir=%{_unitd
%{_unitdir}/goenabled-compute.service
%{_unitdir}/e_nova-init.service
%{_datarootdir}/licenses/mtce-compute-1.0/LICENSE
%license %{_datarootdir}/licenses/mtce-compute-1.0/LICENSE
%clean
rm -rf $RPM_BUILD_ROOT