<div dir="ltr"><div>Hello. I have a package I created called bumblebee. I am trying to get it into fedora. I made some changes and now on fedora I get errors un-installing. Here is what my %preun looks like:</div><div><br>
</div><div>%preun</div><div># Package removal, not upgrade</div><div>%if 0%{?rhel} == 6</div><div>if [ $1 -eq 0 ] ; then</div><div>/sbin/service bumblebeed stop >/dev/null 2>&1 || :</div><div>/sbin/chkconfig --level 2345 bumblebeed off >/dev/null 2>&1 || :</div>
<div>/sbin/chkconfig --del bumblebeed >/dev/null 2>&1 || :</div><div>fi</div><div>%endif</div><div>%if 0%{?fedora:1} || 0%{?rhel} >= 7</div><div>%systemd_preun bumblebeed.service</div><div>%endif</div><div><br>
</div><div>And here is the error message:</div><div><br></div><div><pre>Running transaction
Updating : bumblebee-3.2.1-3.fc19.x86_64 1/2
/var/tmp/rpm-tmp.abgRF7: line 3: syntax error near unexpected token `fi'
/var/tmp/rpm-tmp.abgRF7: line 3: `fi'
error: %preun(bumblebee-3.2.1-2.fc19.x86_64) scriptlet failed, exit status 2
Error in PREUN scriptlet in rpm package bumblebee-3.2.1-2.fc19.x86_64
Verifying : bumblebee-3.2.1-3.fc19.x86_64 1/2
Verifying : bumblebee-3.2.1-2.fc19.x86_64 2/2
</pre><pre><br></pre><pre>Can anyone see what I am doing wrong? This is causing me so much stress right now.</pre></div></div>