fmartingr
/
shelfzilla
Archived
1
0
Fork 0

Fixed Spec file

This commit is contained in:
Juan Manuel Parrilla 2014-04-09 01:32:43 +02:00
parent 0dced2b59d
commit 1d83bae388
1 changed files with 4 additions and 2 deletions

View File

@ -26,8 +26,6 @@ Shelfzilla is a website which save all your Manga
# Remove previous build files
%prep
rm -rf $RPM_BUILD_ROOT*
[ -d $RPM_BUILD_ROOT%{_app_dir} ] || mkdir -p $RPM_BUILD_ROOT%{_app_dir}
[ -d $RPM_BUILD_ROOT%{_app_dir}/config ] || mkdir -p $RPM_BUILD_ROOT%{_app_dir}/config
# clean up development-only files
find %{_gitdir} -depth -name .git -exec rm -rf {} \;
@ -36,6 +34,10 @@ find %{_gitdir} -depth -name .git -exec rm -rf {} \;
# install section:
# -------------------------------------------------------------------------------------------- #
%install
# Make structure
[ -d $RPM_BUILD_ROOT%{_app_dir} ] || mkdir -p $RPM_BUILD_ROOT%{_app_dir}
[ -d $RPM_BUILD_ROOT%{_app_dir}/config ] || mkdir -p $RPM_BUILD_ROOT%{_app_dir}/config
# Copy Source Code
cp -r %{_gitdir}/shelfzilla $RPM_BUILD_ROOT%{_app_dir}
cp -r %{_gitdir}/config/production $RPM_BUILD_ROOT%{_app_dir}/config