Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
sophie
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 22
[-]
[+]
Changed
sophie.spec
@@ -6,19 +6,21 @@ Group: System/Security Version: 3.05.99 Release: 2 -Url: http://www.clanfield.info/sophie/ +Url: http://sophie.sourceforge.net/ License: GPL Source0: http://www.clanfield.info/sophie/%{name}-%{pversion}.tar.bz2 Source1: %{name}-supervise.tar.bz2 Source2: sophie.init BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libsavi >= 3 +%if 0%{?suse_version} BuildRequires: daemontools +%endif %description Sophie Daemon for Sophos Antivirus - +%if 0%{?suse_version} %package supervise Group: System/Security Summary: Supervise scripts for sophie daemon @@ -26,6 +28,7 @@ %description supervise This package includes supervise scripts for the sophie daemon +%endif %prep %setup0 -n %{name}-%{pversion} @@ -60,11 +63,14 @@ mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8 %__install -m 644 sophie.8 $RPM_BUILD_ROOT%{_mandir}/man8 +%if 0%{?suse_version} mkdir -p $RPM_BUILD_ROOT%{qdir} tar xfj %{S:1} -C $RPM_BUILD_ROOT%{qdir} +%endif %post +%if 0%{?suse_version} %post supervise if [ "$1" == 1 ]; then # Make start @@ -78,6 +84,7 @@ if [ "$1" = 0 ]; then rm -f /service/sophie* fi +%endif %files %defattr(-,root,root) @@ -88,6 +95,7 @@ %{_sysconfdir}/sophie.* %{_mandir}/man8/sophie.8.gz +%if 0%{?suse_version} %files supervise %attr(1700,qmaill,qmail) %dir %{qdir}/supervise/sophie %attr(0700,qmaill,qmail) %dir %{qdir}/supervise/sophie/env @@ -95,7 +103,7 @@ %attr(0700,qmaill,qmail) %dir %{qdir}/supervise/sophie/supervise %attr(0751,qmaill,qmail) %{qdir}/supervise/sophie/run %attr(0751,qmaill,qmail) %{qdir}/supervise/sophie/log/run - +%endif %changelog * Sat Jul 25 2009 Carsten Schoene <cs@linux-administrator.com> - 3.05.99-2