dovecot spec

Kim Bisgaard <[email protected]> Wed, 26 Jun 2013 11:19:30 +0200
Newsgroups gmane.linux.redhat.rpm.atrpms.devel
Message-ID <[email protected]>
Hi Axel,

I noticed that Dovecot had a 2.2.4 release, but with a warning (in 2.2.3) that it needed a new version of Pigeonhole.  There is currently no 
new release of Pigeonhole, so I wanted to see what would happen if I tried to recompile new Dovecot with old Pigeonhole.

I downloaded your src-rpm, updated the version, and tried to rebuild but ran into this error:
Processing files: dovecot-2.2.4-2_138.fc17.i686
error: File must begin with "/": %_tmpfilesdir/dovecot.conf
Executing(%doc): /bin/sh -e /home/kim/rpm/tmp/rpm-tmp.M1htXb
+ umask 022
+ cd /home/kim/rpm/BUILD
+ cd dovecot-2.2.4
+ DOCDIR=/home/kim/rpm/BUILDROOT/dovecot-2.2.4-2_138.fc17.i386/usr/share/doc/dovecot-2.2.4
+ export DOCDIR
+ /usr/bin/mkdir -p /home/kim/rpm/BUILDROOT/dovecot-2.2.4-2_138.fc17.i386/usr/share/doc/dovecot-2.2.4
+ cp -pr docinstall/documentation.txt docinstall/dovecot-openssl.cnf docinstall/example-config docinstall/mkcert.sh 
docinstall/solr-schema.xml docinstall/wiki AUTHORS ChangeLog COPYING COPYING.LGPL COPYING.MIT NEWS README 
/home/kim/rpm/BUILDROOT/dovecot-2.2.4-2_138.fc17.i386/usr/share/doc/dovecot-2.2.4
+ exit 0


RPM build errors:
     File must begin with "/": %_tmpfilesdir/dovecot.conf


It seems to come from these lines:
%if %{with systemd}
%_tmpfilesdir/dovecot.conf
%{_unitdir}/dovecot.service
%{_unitdir}/dovecot.socket
%else


But I do not understand why dovecot.conf should go into some temp-dir? nor why I have a problem here, since I have the newest macros? I have 
tried to surround it with {}, with no luck. This is on FC17.

Hope you can shed some light...

Regards,
Kim