FreeRADIUS/freeradius-server — pull request #661 by fajarnugraha (2014-05-26 13:46:22+00:00)
Title: V2.x.x suse specfile build fix

The first commit is similar to the one already commiteed for redhat: add raddb/panic.gdb

The second one is to fix an error that were not catched previously, but manifested itself on opensuse build service, since the build service also installs the build packages as part of its internal test.

The build service would complain

[ 79s] Warning: spec file parser line 280: can't expand %(...)
[ 79s] Warning: spec file parser line 281: can't expand %(...)
[ 79s] Warning: spec file parser line 436: can't expand %(...)

... when it sees lines like this

install -d -m 755 $RPM_BUILD_ROOT%{apache2_sysconfdir}/conf.d

... because it can't expand this line early in the spec file

%define apache2_sysconfdir %(%{_sbindir}/%{apxs2} -q SYSCONFDIR)

... which it turns leads the conf.d dir to be expanded as /conf.d (which is incorrect).

Changing it to %define apache2_sysconfdir /etc/apache2 fixes part of the issue, but at the end the build service would still error out with lines like these

[ 328s] freeradius-server-2.2.5-20.1.x86_64.rpm: directories not owned by a package:
[ 328s] - /etc/tmpfiles.d

[ 654s] freeradius-server-dialupadmin-2.2.5-17.1.x86_64.rpm: directories not owned by a package:
[ 654s] - /etc/apache2
[ 654s] - /etc/apache2/conf.d

Since directories can be owned by multiple package, the quick fix was to list them as directories owned by their respective packages. Until someone with better knowledge of *suse steps in, it will have to do.

Build status for all suse versions supported by opensuse build service (all built successfully, except for arm, which at the point of writing is at "scheduled"): https://build.opensuse.org/package/show/home:freeradius:2.x.x:suse/freeradius-server

Binary/repo links for various suse versions: http://software.opensuse.org/download.html?project=home%3Afreeradius%3A2.x.x%3Asuse&package=freeradius-server