<div dir="ltr">On Tue, Aug 12, 2014 at 6:47 PM, Nusenu <span dir="ltr"><<a href="mailto:BM-2D8wMEVgGVY76je1WXNPfo8SrpZt5yGHES@bitmessage.ch" target="_blank">BM-2D8wMEVgGVY76je1WXNPfo8SrpZt5yGHES@bitmessage.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><br>
</div>Ondrej Mikle:<br>
<div class="">> If possible, I'd like to avoid the if-defs. Do you perhaps have a<br>
> tip how to make the spec file "nice" and have it work both with<br>
> old startup script and systemd? Maybe some patch?<br>
<br>
</div>I would not mind having clean separated per-distribution spec files.<br>
That way you can basically reuse the complete spec file from the<br>
distribution and you would have systemd support without having<br>
to think about it - they probably have had their fair amount of testing.<br>
 </blockquote><div>I spent about a day adjusting and merging the Fedora's systemd tor.spec. However, it won't build the git source (e.g. with LIBS=-lrt ./autogen.sh && ./configure && make dist-rpm). There is something missing in the .spec which makes rpmbuild fail on not finding the correct source directory, but I wasn't able to figure why that happens as rpmbuild is quite hard to debug.</div>
<div><br></div><div>Ondrej</div></div>