Mailinglist Archive: opensuse-packaging (250 mails)

< Previous Next >
Re: [opensuse-packaging] need help with .spec file
  • From: <doiggl@xxxxxxxxxxxxxxxxxx>
  • Date: Wed, 19 Aug 2009 23:02:47 +1000
  • Message-id: <6ffb0bf8852892ca990c386983b09bba@xxxxxxxxxxxxxxxxxxxxxxx>
Hello,
Thanks Dominique and Adrian for the info, your correct about the errors.

So far I've added to the specfile the following:-

BuildRequires: pwdutils , apache2-devel

%define apache apache2
%define apache_libexecdir %(%{apxs} -q LIBEXECDIR)
%define apache_sysconfdir %(%{apxs} -q SYSCONFDIR)
%define apache_includedir %(%{apxs} -q INCLUDEDIR)
%define apache_serverroot %(%{apxs} -q PREFIX)
%define apache_localstatedir %(%{apxs} -q LOCALSTATEDIR)
%define apache_mmn %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN &&
$MMN)

%pre
id cricket >/dev/null 2>&1
if [ $? -ne 0 ]; then
/usr/sbin/useradd -r -d %{_libdir}/%{name} -c "cricket id" cricket
/usr/sbin/groupadd apache
fi

%postun
if [ $1 -eq 0 ]; then
/usr/sbin/userdel cricket
/usr/sbin/groupdel apache
fi

I resubmitted to build, the log now shows:-

(using //.build.log)
... running 03-check-binary-kernel-log
... running 04-check-filelist
... checking filelist
cricket: "/etc/httpd/conf.d/cricket.conf" is not allowed anymore in SuSE
Linux.
cricket: "/var/cricket" is not allowed anymore in FHS 2.2.
cricket: "/var/cricket/cache" is not allowed anymore in FHS 2.2.
cricket: "/var/cricket/config" is not allowed anymore in FHS 2.2.
cricket: "/var/cricket/data" is not allowed anymore in FHS 2.2.
cricket: "/var/cricket/etc" is not allowed anymore in FHS 2.2.
cricket: "/var/cricket/etc/cricket-conf.pl" is not allowed anymore in FHS
2.2.
cricket: "/var/cricket/etc/subtree-sets" is not allowed anymore in FHS 2.2.
cricket: "/var/cricket/log" is not allowed anymore in FHS 2.2.
cricket-1.0.5-34.1.noarch.rpm: directories not owned by a package:
- /etc/httpd
- /etc/httpd/conf.d
System halted


As was said the sysconfdir variables have to be properly reworked.
I see the line '%define apache_sysconfdir %(%{apxs} -q SYSCONFDIR) '

Question: What should it look like, and what other lines do I need in the
spec file ?

Spec file
https://build.opensuse.org/package/view_file?file=cricket.spec&package=cricket&project=home%3Adoiggl


Log file
https://build.opensuse.org/package/show?package=cricket&project=home%3Adoiggl

Once again thanks for all help.
Glenn
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >