Added base instructions post
This commit is contained in:
parent
f1e01cadec
commit
2e25bd70db
|
@ -1,22 +1,20 @@
|
||||||
Summary: M2M Global Service - Portal Common
|
Summary: Shelfzilla
|
||||||
Name: %{_gs_prefix}portal-common
|
Name: Shelfzilla
|
||||||
Version: %{_gs_version}
|
Version: %{_gs_version}
|
||||||
Release: %{_gs_revision}
|
Release: %{_gs_revision}
|
||||||
License: TID
|
|
||||||
BuildRoot: %{_topdir}/BUILD/%{name}
|
BuildRoot: %{_topdir}/BUILD/%{name}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Provides: %{_gs_prefix}portal-common
|
Provides: shelfzilla
|
||||||
Requires: %{_gs_prefix}kermit
|
Requires: python27
|
||||||
Group: M2M Global Services
|
License:
|
||||||
Distribution: Global Services
|
Group: FDB
|
||||||
Vendor: Telefónica I+D
|
Distribution: FDB Global Services
|
||||||
|
Vendor: FDB
|
||||||
|
|
||||||
%description
|
%description
|
||||||
M2M Portal Common files between initiatives DCA and SmartM2M
|
Shelfzilla is a website which save all your Manga
|
||||||
|
|
||||||
%define _packages_dir /opt/globsrv/apps/m2m-kermit/packages
|
%defina _app_dir /opt/shelfzilla
|
||||||
%define _app_dir %{_packages_dir}/m2m-portal
|
|
||||||
%define _binaries_in_noarch_packages_terminate_build 0
|
%define _binaries_in_noarch_packages_terminate_build 0
|
||||||
|
|
||||||
# Do not check unpackaged files
|
# Do not check unpackaged files
|
||||||
|
@ -30,23 +28,31 @@ M2M Portal Common files between initiatives DCA and SmartM2M
|
||||||
rm -rf $RPM_BUILD_ROOT*
|
rm -rf $RPM_BUILD_ROOT*
|
||||||
[ -d $RPM_BUILD_ROOT%{_app_dir} ] || mkdir -p $RPM_BUILD_ROOT%{_app_dir}
|
[ -d $RPM_BUILD_ROOT%{_app_dir} ] || mkdir -p $RPM_BUILD_ROOT%{_app_dir}
|
||||||
|
|
||||||
# clean up development-only files
|
|
||||||
find %{_gitdir}/src/ -depth -name .git -exec rm -rf {} \;
|
|
||||||
|
|
||||||
# -------------------------------------------------------------------------------------------- #
|
# -------------------------------------------------------------------------------------------- #
|
||||||
# install section:
|
# install section:
|
||||||
# -------------------------------------------------------------------------------------------- #
|
# -------------------------------------------------------------------------------------------- #
|
||||||
%install
|
%install
|
||||||
# Copy Source Code
|
# Copy Source Code
|
||||||
cp -r %{_gitdir}/src/* $RPM_BUILD_ROOT%{_app_dir}
|
cp -r %{_gitdir}/* $RPM_BUILD_ROOT%{_app_dir}
|
||||||
[ -h $RPM_BUILD_ROOT%{_app_dir}/dmm ] && unlink $RPM_BUILD_ROOT%{_app_dir}/dmm
|
|
||||||
[ -h $RPM_BUILD_ROOT%{_app_dir}/mc ] && unlink $RPM_BUILD_ROOT%{_app_dir}/mc
|
|
||||||
|
|
||||||
# -------------------------------------------------------------------------------------------- #
|
# -------------------------------------------------------------------------------------------- #
|
||||||
# post-install section:
|
# post-install section:
|
||||||
# -------------------------------------------------------------------------------------------- #
|
# -------------------------------------------------------------------------------------------- #
|
||||||
%post
|
%post
|
||||||
chmod -R 775 %{_packages_dir}
|
## Npm install
|
||||||
|
## pip install
|
||||||
|
## Syncdb dir manage
|
||||||
|
## migrate
|
||||||
|
## grunt compile
|
||||||
|
## python2.7 manage.py collectstatic
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# -------------------------------------------------------------------------------------------- #
|
# -------------------------------------------------------------------------------------------- #
|
||||||
# pre-uninstall section:
|
# pre-uninstall section:
|
||||||
|
|
Reference in New Issue