2014-04-04 16:12:34 +00:00
|
|
|
Summary: Shelfzilla
|
|
|
|
Name: Shelfzilla
|
2014-04-03 20:29:07 +00:00
|
|
|
Version: %{_gs_version}
|
|
|
|
Release: %{_gs_revision}
|
|
|
|
BuildRoot: %{_topdir}/BUILD/%{name}
|
|
|
|
BuildArch: noarch
|
2014-04-04 16:12:34 +00:00
|
|
|
Provides: shelfzilla
|
|
|
|
Requires: python27
|
|
|
|
License:
|
|
|
|
Group: FDB
|
|
|
|
Distribution: FDB Global Services
|
|
|
|
Vendor: FDB
|
2014-04-03 20:29:07 +00:00
|
|
|
|
|
|
|
%description
|
2014-04-04 16:12:34 +00:00
|
|
|
Shelfzilla is a website which save all your Manga
|
2014-04-03 20:29:07 +00:00
|
|
|
|
2014-04-04 16:12:34 +00:00
|
|
|
%defina _app_dir /opt/shelfzilla
|
2014-04-03 20:29:07 +00:00
|
|
|
%define _binaries_in_noarch_packages_terminate_build 0
|
|
|
|
|
|
|
|
# Do not check unpackaged files
|
|
|
|
%undefine __check_files
|
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------- #
|
|
|
|
# prep section:
|
|
|
|
# -------------------------------------------------------------------------------------------- #
|
|
|
|
# Remove previous build files
|
|
|
|
%prep
|
|
|
|
rm -rf $RPM_BUILD_ROOT*
|
|
|
|
[ -d $RPM_BUILD_ROOT%{_app_dir} ] || mkdir -p $RPM_BUILD_ROOT%{_app_dir}
|
|
|
|
|
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------- #
|
|
|
|
# install section:
|
|
|
|
# -------------------------------------------------------------------------------------------- #
|
|
|
|
%install
|
|
|
|
# Copy Source Code
|
2014-04-04 16:12:34 +00:00
|
|
|
cp -r %{_gitdir}/* $RPM_BUILD_ROOT%{_app_dir}
|
|
|
|
|
2014-04-03 20:29:07 +00:00
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------- #
|
|
|
|
# post-install section:
|
|
|
|
# -------------------------------------------------------------------------------------------- #
|
|
|
|
%post
|
2014-04-04 16:12:34 +00:00
|
|
|
## Npm install
|
|
|
|
## pip install
|
|
|
|
## Syncdb dir manage
|
|
|
|
## migrate
|
|
|
|
## grunt compile
|
|
|
|
## python2.7 manage.py collectstatic
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-03 20:29:07 +00:00
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------- #
|
|
|
|
# pre-uninstall section:
|
|
|
|
# -------------------------------------------------------------------------------------------- #
|
|
|
|
%preun
|
|
|
|
|
|
|
|
|
|
|
|
# -------------------------------------------------------------------------------------------- #
|
|
|
|
# post-uninstall section:
|
|
|
|
# -------------------------------------------------------------------------------------------- #
|
|
|
|
%postun
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%{_app_dir}/*
|
|
|
|
|
|
|
|
|