metal/mtce-storage/centos/mtce-storage.spec
Yong Hu 2402fb16ae 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>
2018-10-30 02:55:34 +00:00

42 lines
850 B
RPMSpec

%define debug_package %{nil}
Name: mtce-storage
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
Summary: Titanium Cloud Platform Storage Node Maintenance Package
Group: base
License: Apache-2.0
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
BuildRequires: systemd
BuildRequires: systemd-devel
Requires: bash
Requires: /bin/systemctl
%description
Maintenance support files for storage-only node type
%prep
%setup
%build
%install
make install buildroot=%{buildroot} _sysconfdir=%{_sysconfdir} _unitdir=%{_unitdir} _datarootdir=%{_datarootdir}
%post
/bin/systemctl enable goenabled-storage.service
%files
%defattr(-,root,root,-)
%{_sysconfdir}/init.d/goenabledStorage
%{_unitdir}/goenabled-storage.service
%license %{_datarootdir}/licenses/mtce-storage-1.0/LICENSE
%clean
rm -rf $RPM_BUILD_ROOT