Commit 107dcbdc authored by Lukas Burgey's avatar Lukas Burgey

Add log dir to spec

parent 6d1904fe
Name: feudal
Version: 0.1.0
Release: 1
Release: 2
Summary: FEUDAL
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Prefix: %{_prefix}
......@@ -39,26 +39,23 @@ install %{_sourcedir}/manage.py \
%{_sourcedir}/README.md \
%{feudal}
%define var $RPM_BUILD_ROOT%{_localstatedir}/feudal
mkdir -p %{var}/webpage
cp -r %{_sourcedir}/webpage/dist %{var}/webpage
mkdir -p %{var}/webpage
cp -r %{_sourcedir}/static %{var}/django-static
%define var $RPM_BUILD_ROOT%{_localstatedir}
mkdir -p %{var}/feudal/webpage
cp -r %{_sourcedir}/webpage/dist %{var}/feudal/webpage
mkdir -p %{var}/feudal/django-static
cp -r %{_sourcedir}/static %{var}/feudal/django-static
mkdir -p %{var}/log/feudal
%post
pip3.6 install %{feudal}
%postun
pip3.6 uninstall --yes feudal
%files
%doc %{feudal}/README.md
%{_datadir}/feudal
%{_localstatedir}/feudal
%{_localstatedir}/log/feudal
%changelog
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment