Stardandize makefiles for puppet-modules-wrs

The puppet-modules-wrs is formed by several subcomponents, in all
of them the same changes were applied:

  - Create a makefile with a install target.
  - Remove license file from build_srpm.data as is not needed.
  - Update target in specfile
  - Change autosetup to setup in specfile, this was bug in the spec
    files.

Change-Id: I960b092292222fdb58380422889022d68d748c37
Story: 2004043
Task: 27552
Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
This commit is contained in:
Erich Cordoba 2019-02-05 18:29:10 -06:00
parent 992fe3a26b
commit 24fd045f68
27 changed files with 130 additions and 57 deletions

View File

@ -1,3 +1,2 @@
SRC_DIR="src"
COPY_LIST="$SRC_DIR/LICENSE"
TIS_PATCH_VER=1

View File

@ -10,7 +10,6 @@ Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
Source1: LICENSE
BuildArch: noarch
@ -20,16 +19,15 @@ BuildRequires: python2-devel
A puppet module for dcmanager
%prep
%autosetup -c %{module_dir}
%setup
#
# The src for this puppet module needs to be staged to puppet/modules
#
%install
install -d -m 0755 %{buildroot}%{_datadir}/puppet/modules/%{module_dir}
cp -R %{name}-%{version}/%{module_dir} %{buildroot}%{_datadir}/puppet/modules
make install \
MODULEDIR=%{buildroot}%{_datadir}/puppet/modules
%files
%license %{name}-%{version}/LICENSE
%license LICENSE
%{_datadir}/puppet/modules/%{module_dir}

View File

@ -0,0 +1,9 @@
#
# SPDX-License-Identifier: Apache-2.0
#
MODULEDIR ?= /usr/share/puppet/modules
install:
install -d -m 0755 $(MODULEDIR)/dcmanager
cp -R dcmanager/ $(MODULEDIR)/

View File

@ -1,3 +1,2 @@
SRC_DIR="src"
COPY_LIST="$SRC_DIR/LICENSE"
TIS_PATCH_VER=1

View File

@ -10,7 +10,6 @@ Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
Source1: LICENSE
BuildArch: noarch
@ -20,16 +19,16 @@ BuildRequires: python2-devel
A puppet module for dcorch
%prep
%autosetup -c %{module_dir}
%setup
#
# The src for this puppet module needs to be staged to puppet/modules
#
%install
install -d -m 0755 %{buildroot}%{_datadir}/puppet/modules/%{module_dir}
cp -R %{name}-%{version}/%{module_dir} %{buildroot}%{_datadir}/puppet/modules
make install \
MODULEDIR=%{buildroot}%{_datadir}/puppet/modules
%files
%license %{name}-%{version}/LICENSE
%license LICENSE
%{_datadir}/puppet/modules/%{module_dir}

View File

@ -0,0 +1,9 @@
#
# SPDX-License-Identifier: Apache-2.0
#
MODULEDIR ?= /usr/share/puppet/modules
install:
install -d -m 0755 $(MODULEDIR)/dcorch
cp -R dcorch/ $(MODULEDIR)/

View File

@ -1,3 +1,2 @@
SRC_DIR="src"
COPY_LIST="$SRC_DIR/LICENSE"
TIS_PATCH_VER=1

View File

@ -10,7 +10,6 @@ Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
Source1: LICENSE
BuildArch: noarch
@ -20,15 +19,15 @@ BuildRequires: python2-devel
A puppet module for Fault Management
%prep
%autosetup -c %{module_dir}
%setup
#
# The src for this puppet module needs to be staged to puppet/modules
#
%install
install -d -m 0755 %{buildroot}%{_datadir}/puppet/modules/%{module_dir}
cp -R %{name}-%{version}/%{module_dir} %{buildroot}%{_datadir}/puppet/modules
make install \
MODULEDIR=%{buildroot}%{_datadir}/puppet/modules/%{module_dir}
%files
%license %{name}-%{version}/LICENSE
%license LICENSE
%{_datadir}/puppet/modules/%{module_dir}

View File

@ -0,0 +1,9 @@
#
# SPDX-License-Identifier: Apache-2.0
#
MODULEDIR ?= /usr/share/puppet/modules
install:
install -d -m 0755 $(MODULEDIR)/fm
cp -R fm/ $(MODULEDIR)/

View File

@ -1,3 +1,2 @@
SRC_DIR="src"
COPY_LIST="$SRC_DIR/LICENSE"
TIS_PATCH_VER=9

View File

@ -10,7 +10,6 @@ Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
Source1: LICENSE
BuildArch: noarch
@ -20,16 +19,15 @@ BuildRequires: python2-devel
A puppet module for mtce
%prep
%autosetup -c %{module_dir}
%setup
#
# The src for this puppet module needs to be staged to puppet/modules
#
%install
install -d -m 0755 %{buildroot}%{_datadir}/puppet/modules/%{module_dir}
cp -R %{name}-%{version}/%{module_dir} %{buildroot}%{_datadir}/puppet/modules
make install \
MODULEDIR=%{buildroot}%{_datadir}/puppet/modules/%{module_dir}
%files
%license %{name}-%{version}/LICENSE
%license LICENSE
%{_datadir}/puppet/modules/%{module_dir}

View File

@ -0,0 +1,9 @@
#
# SPDX-License-Identifier: Apache-2.0
#
MODULEDIR ?= /usr/share/puppet/modules
install:
install -d -m 0755 $(MODULEDIR)/mtce
cp -R mtce/ $(MODULEDIR)/

View File

@ -19,16 +19,16 @@ BuildRequires: python2-devel
A puppet module for nfv
%prep
%autosetup -c %{module_dir}
%setup
#
# The src for this puppet module needs to be staged to puppet/modules
#
%install
install -d -m 0755 %{buildroot}%{_datadir}/puppet/modules/%{module_dir}
cp -R %{name}-%{version}/%{module_dir} %{buildroot}%{_datadir}/puppet/modules
make install \
MODULEDIR=%{buildroot}%{_datadir}/puppet/modules/%{module_dir}
%files
%license %{name}-%{version}/LICENSE
%license LICENSE
%{_datadir}/puppet/modules/%{module_dir}

View File

@ -0,0 +1,9 @@
#
# SPDX-License-Identifier: Apache-2.0
#
MODULEDIR ?= /usr/share/puppet/modules
install:
install -d -m 0755 $(MODULEDIR)/nfv
cp -R nfv/ $(MODULEDIR)/

View File

@ -1,3 +1,2 @@
SRC_DIR="src"
COPY_LIST="$SRC_DIR/LICENSE"
TIS_PATCH_VER=2

View File

@ -10,7 +10,6 @@ Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
Source1: LICENSE
BuildArch: noarch
@ -20,16 +19,15 @@ BuildRequires: python2-devel
A puppet module for Nova API Proxy
%prep
%autosetup -c %{module_dir}
%setup
#
# The src for this puppet module needs to be staged to packstack/puppet/modules
#
%install
install -d -m 0755 %{buildroot}%{_datadir}/puppet/modules/%{module_dir}
cp -R %{name}-%{version}/%{module_dir} %{buildroot}%{_datadir}/puppet/modules
make install \
MODULEDIR=%{buildroot}%{_datadir}/puppet/modules/%{module_dir}
%files
%license %{name}-%{version}/LICENSE
%license LICENSE
%{_datadir}/puppet/modules/%{module_dir}

View File

@ -0,0 +1,9 @@
#
# SPDX-License-Identifier: Apache-2.0
#
MODULEDIR ?= /usr/share/puppet/modules
install:
install -d -m 0755 $(MODULEDIR)/nova_api_proxy
cp -R nova_api_proxy/ $(MODULEDIR)/

View File

@ -19,16 +19,15 @@ BuildRequires: python2-devel
A puppet module for patching
%prep
%autosetup -c %{module_dir}
%setup
#
# The src for this puppet module needs to be staged to packstack/puppet/modules
#
%install
install -d -m 0755 %{buildroot}%{_datadir}/puppet/modules/%{module_dir}
cp -R %{name}-%{version}/%{module_dir} %{buildroot}%{_datadir}/puppet/modules
make install \
MODULEDIR=%{buildroot}%{_datadir}/puppet/modules/%{module_dir}
%files
%license %{name}-%{version}/LICENSE
%license LICENSE
%{_datadir}/puppet/modules/%{module_dir}

View File

@ -0,0 +1,9 @@
#
# SPDX-License-Identifier: Apache-2.0
#
MODULEDIR ?= /usr/share/puppet/modules
install:
install -d -m 0755 $(MODULEDIR)/patching
cp -R patching/ $(MODULEDIR)/

View File

@ -19,14 +19,15 @@ BuildRequires: python2-devel
A puppet module for smapi
%prep
%autosetup -c %{module_dir}
%setup
#
# The src for this puppet module needs to be staged to puppet/modules
#
%install
install -d -m 0755 %{buildroot}%{_datadir}/puppet/modules/%{module_dir}
cp -R %{name}-%{version}/%{module_dir} %{buildroot}%{_datadir}/puppet/modules
make install \
MODULEDIR=%{buildroot}%{_datadir}/puppet/modules/%{module_dir}
%files
%license LICENSE
%{_datadir}/puppet/modules/%{module_dir}

View File

@ -0,0 +1,9 @@
#
# SPDX-License-Identifier: Apache-2.0
#
MODULEDIR ?= /usr/share/puppet/modules
install:
install -d -m 0755 $(MODULEDIR)/smapi
cp -R smapi/ $(MODULEDIR)/

View File

@ -1,3 +1,2 @@
SRC_DIR="src"
COPY_LIST="$SRC_DIR/LICENSE"
TIS_PATCH_VER=1

View File

@ -10,7 +10,6 @@ Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
Source1: LICENSE
BuildArch: noarch
@ -20,15 +19,15 @@ BuildRequires: python2-devel
A puppet module for sshd
%prep
%autosetup -c %{module_dir}
%setup
#
# The src for this puppet module needs to be staged to puppet/modules
#
%install
install -d -m 0755 %{buildroot}%{_datadir}/puppet/modules/%{module_dir}
cp -R %{name}-%{version}/%{module_dir} %{buildroot}%{_datadir}/puppet/modules
make install \
MODULEDIR=%{buildroot}%{_datadir}/puppet/modules/%{module_dir}
%files
%license %{name}-%{version}/LICENSE
%license LICENSE
%{_datadir}/puppet/modules/%{module_dir}

View File

@ -0,0 +1,9 @@
# SPDX-License-Identifier: Apache-2.0
#
MODULEDIR ?= /usr/share/puppet/modules
install:
install -d -m 0755 $(MODULEDIR)/sshd
cp -R sshd/ $(MODULEDIR)/

View File

@ -1,3 +1,2 @@
SRC_DIR="src"
COPY_LIST="$SRC_DIR/LICENSE"
TIS_PATCH_VER=4

View File

@ -10,7 +10,6 @@ Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
Source1: LICENSE
BuildArch: noarch
@ -20,16 +19,16 @@ BuildRequires: python2-devel
A puppet module for sysinv
%prep
%autosetup -c %{module_dir}
%setup
#
# The src for this puppet module needs to be staged to puppet/modules
#
%install
install -d -m 0755 %{buildroot}%{_datadir}/puppet/modules/%{module_dir}
cp -R %{name}-%{version}/%{module_dir} %{buildroot}%{_datadir}/puppet/modules
make install \
MODULEDIR=%{buildroot}%{_datadir}/puppet/modules/%{module_dir}
%files
%license %{name}-%{version}/LICENSE
%license LICENSE
%{_datadir}/puppet/modules/%{module_dir}

View File

@ -0,0 +1,9 @@
#
# SPDX-License-Identifier: Apache-2.0
#
MODULEDIR ?= /usr/share/puppet/modules
install:
install -d -m 0755 $(MODULEDIR)/sysinv
cp -R sysinv/ $(MODULEDIR)/