-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51c0938
commit fb25464
Showing
2 changed files
with
15 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Summary: F5 Cloud Failover 0.9.0 Extension | ||
Version: 0.9.0 | ||
Summary: F5 Cloud Failover Extension | ||
Version: %{_version} | ||
Name: %{_name} | ||
Release: %{_release} | ||
BuildArch: noarch | ||
|
@@ -10,21 +10,27 @@ Packager: F5 Networks <[email protected]> | |
%description | ||
CLoud Failover for BIG-IP | ||
|
||
%define IAPP_INSTALL_DIR /var/config/rest/iapps/%{_name} | ||
%define IAPP_INSTALL_DIR /var/config/rest/iapps/%{name} | ||
%define _rpmfilename %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm | ||
%define _unpackaged_files_terminate_build 0 | ||
|
||
%prep | ||
mkdir -p %{_builddir}/src/nodejs/ | ||
cp -r %{main}/src/ %{_builddir}/ | ||
if [ -d "%{main}/node_modules" ] ; then cp -r %{main}/node_modules %{_builddir}/src/nodejs/ ; fi | ||
echo -n %{_version}-%{_release} > %{_builddir}/src/version | ||
rm -rf %{_builddir}/* | ||
cp %{main}/src/manifest.json %{_builddir} | ||
cp -r %{main}/src/nodejs %{_builddir} | ||
cp %{main}/package.json %{_builddir} | ||
cp -r %{main}/node_modules %{_builddir} | ||
|
||
%install | ||
rm -rf $RPM_BUILD_ROOT | ||
mkdir -p $RPM_BUILD_ROOT%{IAPP_INSTALL_DIR} | ||
cp -r %{_builddir}/src/* $RPM_BUILD_ROOT%{IAPP_INSTALL_DIR} | ||
cp %{_builddir}/manifest.json $RPM_BUILD_ROOT%{IAPP_INSTALL_DIR} | ||
cp %{_builddir}/package.json $RPM_BUILD_ROOT%{IAPP_INSTALL_DIR} | ||
cp -r %{_builddir}/node_modules $RPM_BUILD_ROOT%{IAPP_INSTALL_DIR} | ||
cp -r %{_builddir}/nodejs $RPM_BUILD_ROOT%{IAPP_INSTALL_DIR} | ||
|
||
%clean | ||
rm -rf $RPM_BUILD_ROOT | ||
#rm -rf $RPM_BUILD_ROOT | ||
|
||
%files | ||
%defattr(-,root,root) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters