<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 14, 2014 at 4: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><div class="">>> Ondrej Mikle:<br>
>>> If possible, I'd like to avoid the if-defs. Do you perhaps have<br>
>>> a tip how to make the spec file "nice" and have it work both<br>
>>> with old startup script and systemd? Maybe some patch?<br>
>><br>
>> I would not mind having clean separated per-distribution spec<br>
>> files. That way you can basically reuse the complete spec file<br>
>> from the distribution and you would have systemd support without<br>
>> having to think about it - they probably have had their fair<br>
>> amount of testing.<br>
>><br>
><br>
> I spent about a day adjusting and merging the Fedora's systemd<br>
> tor.spec. However, it won't build the git source (e.g. with<br>
> LIBS=-lrt ./autogen.sh && ./configure && make dist-rpm). There is<br>
> something missing in the .spec which makes rpmbuild fail on not<br>
> finding the correct source directory, but I wasn't able to figure<br>
> why that happens as rpmbuild is quite hard to debug.<br>
<br>
</div>I'd like to have a look at your attempts.<br>
<br>
Is there something wrong with the rpm-tor git repo?<br>
<br>
git clone <a href="https://gitweb.torproject.org/user/hiviah/rpm-tor.git" target="_blank">https://gitweb.torproject.org/user/hiviah/rpm-tor.git</a><br>
Cloning into 'rpm-tor'...<br>
fatal: <a href="https://gitweb.torproject.org/user/hiviah/rpm-tor.git/info/refs" target="_blank">https://gitweb.torproject.org/user/hiviah/rpm-tor.git/info/refs</a></blockquote><div><br></div><div>The url is a bit diferent:</div>
<div><br></div><div>git clone <a href="https://git.torproject.org/user/hiviah/rpm-tor.git">https://git.torproject.org/user/hiviah/rpm-tor.git</a></div><div>git checkout rpm-release-0.2.5 </div></div><br></div><div class="gmail_extra">
This is diff from one of the testing dirs: <a href="http://pastie.org/9475746">http://pastie.org/9475746</a></div><div class="gmail_extra"><br></div><div class="gmail_extra">There's more stuff to be done e.g. in Makefile.am in dist-rpm target (if some files are said as Source in the .spec, Makefile needs to copy them - sorry I have the changes only in generated makefiles for testing).</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Ondrej</div></div>