head	1.28;
access;
symbols
	OPENPKG_E1_MP_HEAD:1.18
	OPENPKG_E1_MP:1.18
	OPENPKG_E1_MP_2_STABLE:1.17.2.2
	OPENPKG_E1_FP:1.17.2.2
	OPENPKG_2_STABLE_MP:1.17
	OPENPKG_2_STABLE_20061018:1.17.2.2
	OPENPKG_2_STABLE:1.17.0.2
	OPENPKG_CW_FP:1.2;
locks; strict;
comment	@-- @;


1.28
date	2009.06.30.20.20.19;	author rse;	state Exp;
branches;
next	1.27;
commitid	mW7f5wxeUG4f4VTt;

1.27
date	2009.04.18.13.09.51;	author rse;	state Exp;
branches;
next	1.26;
commitid	4pHXU27WTIGCZuKt;

1.26
date	2009.03.27.10.01.00;	author rse;	state Exp;
branches;
next	1.25;
commitid	MQDQdIMNDSXUHEHt;

1.25
date	2008.01.01.14.52.58;	author rse;	state Exp;
branches;
next	1.24;
commitid	B8esaHJHoduuKILs;

1.24
date	2007.11.10.17.21.42;	author rse;	state Exp;
branches;
next	1.23;
commitid	q1NBQHG46wsxj3Fs;

1.23
date	2007.10.27.11.59.22;	author cs;	state Exp;
branches;
next	1.22;
commitid	XKMxflRJ6S7CYdDs;

1.22
date	2007.09.22.11.16.26;	author cs;	state Exp;
branches;
next	1.21;
commitid	CdM2GMugPYISRIys;

1.21
date	2007.07.20.20.16.21;	author thl;	state Exp;
branches;
next	1.20;
commitid	yCyWfcoNSNOaUxqs;

1.20
date	2007.07.17.07.03.46;	author rse;	state Exp;
branches;
next	1.19;
commitid	H6MUGqhOEbGIC5qs;

1.19
date	2007.06.06.08.22.00;	author rse;	state Exp;
branches;
next	1.18;
commitid	Pb1t2rcX9RYgnPks;

1.18
date	2007.01.01.17.37.29;	author rse;	state Exp;
branches;
next	1.17;
commitid	BicZD6VUl7GuqP0s;

1.17
date	2006.10.13.17.27.41;	author thl;	state Exp;
branches
	1.17.2.1;
next	1.16;
commitid	q5GSxzsSDX29XxQr;

1.16
date	2006.10.12.11.19.00;	author rse;	state Exp;
branches;
next	1.15;
commitid	Oa0yNOPoW2sjYnQr;

1.15
date	2006.08.27.16.04.19;	author rse;	state Exp;
branches;
next	1.14;
commitid	RDksTqYlloWQ1vKr;

1.14
date	2006.08.25.19.16.15;	author rse;	state Exp;
branches;
next	1.13;
commitid	Tvsj1UyQ8rQ89gKr;

1.13
date	2006.05.24.18.51.19;	author rse;	state Exp;
branches;
next	1.12;
commitid	2sKuWvpXDlTeZiyr;

1.12
date	2006.02.23.08.13.37;	author rse;	state Exp;
branches;
next	1.11;
commitid	MtY9Tt9RGBI4nGmr;

1.11
date	2006.01.01.13.13.08;	author rse;	state Exp;
branches;
next	1.10;
commitid	otZG8yKMCw1JFTfr;

1.10
date	2005.11.11.12.22.46;	author rse;	state Exp;
branches;
next	1.9;
commitid	zTKE2sZBwoaO5l9r;

1.9
date	2005.10.14.19.32.04;	author rse;	state Exp;
branches;
next	1.8;

1.8
date	2005.09.11.17.37.29;	author rse;	state Exp;
branches;
next	1.7;

1.7
date	2005.08.07.19.04.29;	author thl;	state Exp;
branches;
next	1.6;

1.6
date	2005.05.26.08.38.09;	author rse;	state Exp;
branches;
next	1.5;

1.5
date	2005.04.10.17.10.40;	author rse;	state Exp;
branches;
next	1.4;

1.4
date	2005.03.29.19.49.31;	author rse;	state Exp;
branches;
next	1.3;

1.3
date	2005.03.24.11.18.40;	author rse;	state Exp;
branches;
next	1.2;

1.2
date	2005.03.15.18.35.56;	author rse;	state Exp;
branches;
next	1.1;

1.1
date	2005.03.13.14.48.42;	author rse;	state Exp;
branches;
next	;

1.17.2.1
date	2006.10.13.17.27.41;	author rse;	state dead;
branches;
next	1.17.2.2;
commitid	iZxwRSmmWscPXUQr;

1.17.2.2
date	2006.10.16.14.49.33;	author rse;	state Exp;
branches;
next	;
commitid	iZxwRSmmWscPXUQr;


desc
@@


1.28
log
@switch to the new SourceForge.net website functionality where we can find all files (again)
@
text
@##
##  diogene87.spec -- OpenPKG RPM Package Specification
##  Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
##
##  Permission to use, copy, modify, and distribute this software for
##  any purpose with or without fee is hereby granted, provided that
##  the above copyright notice and this permission notice appear in all
##  copies.
##
##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
##  SUCH DAMAGE.
##

#   package version
%define       V_diogene87  1.0.0rc5
%define       V_narcisse81 0.0.4

#   package information
Name:         diogene87
Summary:      Job Scheduling System
URL:          http://diogene87.org/
Vendor:       D. Parisot & S.G. Ytsma
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class:        EVAL
Group:        System
License:      GPL
Version:      %{V_diogene87}
Release:      20090327

#   package options
%option       with_fsl  yes
%option       with_x11  yes

#   list of sources
Source0:      http://switch.dl.sourceforge.net/diogene87/diogene87-%{V_diogene87}.tar.gz
Source1:      http://switch.dl.sourceforge.net/narcisse81/narcisse81-%{V_narcisse81}.tar.gz
Source2:      rc.diogene87
Source3:      fsl.diogene87
Patch0:       diogene87.patch

#   build information
Prefix:       %{l_prefix}
BuildRoot:    %{l_buildroot}
BuildPreReq:  OpenPKG, openpkg >= 20060823
PreReq:       OpenPKG, openpkg >= 20060823
BuildPreReq:  gettext
PreReq:       gettext
%if "%{with_fsl}" == "yes"
BuildPreReq:  fsl
PreReq:       fsl
%endif
%if "%{with_x11}" == "yes"
BuildPreReq:  X11, gtk
PreReq:       X11, gtk
%endif
AutoReq:      no
AutoReqProv:  no

%description
    Diogene87 is a powerful scheduler system providing centralized
    management, jobs dependencies, start condition, planning, log of job
    activity, job monitoring, statistic for job duration and resource
    control.

%track
    prog diogene87 = {
        disabled
        comment   = "Diogene87 project is dead"
        version   = %{V_diogene87}
        url       = http://sourceforge.net/projects/diogene87/files/
        regex     = diogene87-(__VER__)\.tar\.gz
    }
    prog diogene87:narcisse81 = {
        disabled
        comment   = "Diogene87 project is dead"
        version   = %{V_narcisse81}
        url       = http://sourceforge.net/projects/narcisse81/files/
        regex     = narcisse81-(__VER__)\.tar\.gz
    }

%prep
    %setup -q
    %setup -q -T -D -a 1
    %patch -p0

%build
    #   configure program
    %{l_shtool} subst \
        -e 's;\(localstatedir./lib\)/diogene87;\1;g' \
        -e 's;\(localstatedir./run\)/diogene87;\1;g' \
        configure conf/Makefile.in
    CC="%{l_cc}" \
    CFLAGS="%{l_cflags -O}" \
    CPPFLAGS="%{l_cppflags}" \
    LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \
    LIBS="%{l_fsl_libs}" \
    ./configure \
        --prefix=%{l_prefix} \
        --datarootdir=%{l_prefix} \
        --localstatedir=%{l_prefix}/var/diogene87 \
        --disable-smart-install

    #   build program
    %{l_make} %{l_mflags -O}

%if "%{with_x11}" == "yes"
    #   build GUI
    ( cd narcisse81-%{V_narcisse81}/src
      %{l_make} %{l_mflags -O}
    ) || exit $?
%endif

%install
    #   install program
    rm -rf $RPM_BUILD_ROOT
    %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"

%if "%{with_x11}" == "yes"
    #   install GUI
    %{l_shtool} install -c -s -m 755 \
        narcisse81-%{V_narcisse81}/src/narcisse81 \
        $RPM_BUILD_ROOT%{l_prefix}/bin/
%endif

    #   strip down installation files
    rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/diogene87
    rm -rf $RPM_BUILD_ROOT%{l_prefix}/locale
    rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
    rm -f $RPM_BUILD_ROOT%{l_prefix}/info/*_dev*
    rm -f $RPM_BUILD_ROOT%{l_prefix}/info/*_fr*
    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true

    #   post-adjust default configuration
    %{l_shtool} subst \
        -e 's;^#\(PID_FILE.*\);\1;' \
        -e 's;^#\(USER_ACCOUNT\)=.*;\1=%{l_rusr};' \
        -e 's;^#\(IPPORT=.*\);\1;' \
        -e 's;^#\(IPADDR\)=.*;\1=127.0.0.1;' \
        $RPM_BUILD_ROOT%{l_prefix}/etc/diogene87/dio87d.conf

    #   install OSSP fsl configuration
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/etc/fsl
    %{l_shtool} install -c -m 644 %{l_value -s -a} \
        %{SOURCE fsl.diogene87} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/

    #   install run-command script
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
    %{l_shtool} install -c -m 755 %{l_value -s -a} \
        %{SOURCE rc.diogene87} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/

    #   create additional directories
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/var/diogene87/log

    #   determine installation files
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
        %{l_files_std} \
        '%config %{l_prefix}/etc/fsl/fsl.diogene87' \
        '%config %attr(640,%{l_rusr},%{l_rgrp}) %{l_prefix}/etc/diogene87/*' \
        '%attr(700,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/diogene87/run' \
        '%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/diogene87/lib' \
        '%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/diogene87/log'

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

%post
    #   create initial database
    if [ $1 -eq 1 ]; then
        echo "Creating initial Diogene87 database" | %{l_rpmtool} msg -b -t info
        su %{l_rusr} -c "umask 077; $RPM_INSTALL_PREFIX/sbin/dio87d -I 2>/dev/null"
    fi

    #   after upgrade, restart service
    [ $1 -eq 2 ] || exit 0
    eval `%{l_rc} diogene87 status 2>/dev/null`
    [ ".$diogene87_active" = .yes ] && %{l_rc} diogene87 restart
    exit 0

%preun
    #   before erase, stop service and remove log files
    [ $1 -eq 0 ] || exit 0
    %{l_rc} diogene87 stop 2>/dev/null
    rm -f $RPM_INSTALL_PREFIX/var/diogene87/lib/dio87d.data   >/dev/null 2>&1 || true
    rm -f $RPM_INSTALL_PREFIX/var/diogene87/log/diogene87.log >/dev/null 2>&1 || true
    exit 0

@


1.27
log
@bump years in copyright messages
@
text
@d81 1
a81 1
        url       = http://prdownloads.sourceforge.net/diogene87/
d88 1
a88 1
        url       = http://prdownloads.sourceforge.net/narcisse81/
@


1.26
log
@remember this is dead
@
text
@d3 1
a3 1
##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
@


1.25
log
@Update package specifications according to OpenPKG year 2008 world order:
http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html
@
text
@d39 1
a39 1
Release:      20080101
d78 2
d85 2
@


1.24
log
@upgrading package: diogene87 1.0.0rc4 -> 1.0.0rc5
@
text
@d3 1
a3 2
##  Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
d39 1
a39 1
Release:      20071110
@


1.23
log
@Drop version information of OSSP fsl dependency since it doesn't make to much sense in an CURRENT-only world. Additionally, in several cases it has been choosen quite at will without being correct.
@
text
@d26 1
a26 1
%define       V_diogene87  1.0.0rc4
d40 1
a40 1
Release:      20071027
a90 1
%if "%{with_x11}" == "yes"
d92 1
a92 2
    %patch -p0 -d narcisse81-%{V_narcisse81}
%endif
@


1.22
log
@upgrading package: diogene87 1.0.0rc3 -> 1.0.0rc4
@
text
@d40 1
a40 1
Release:      20070922
d61 2
a62 2
BuildPreReq:  fsl >= 1.2.0
PreReq:       fsl >= 1.2.0
@


1.21
log
@remove "%not %dir" construct, allowing proper directory ownership tracking and removal when erasing last provider
@
text
@d26 1
a26 1
%define       V_diogene87  1.0.0rc3
d40 1
a40 1
Release:      20070720
@


1.20
log
@upgrading package: diogene87 1.0.0rc2 -> 1.0.0rc3
@
text
@d40 1
a40 1
Release:      20070717
a169 1
        '%not %dir %{l_prefix}/etc/fsl' \
@


1.19
log
@upgrading package: diogene87 1.0.0rc1 -> 1.0.0rc2
@
text
@d26 1
a26 1
%define       V_diogene87  1.0.0rc2
d40 1
a40 1
Release:      20070606
@


1.18
log
@Welcome Year 2007!
@
text
@d26 1
a26 1
%define       V_diogene87  1.0.0rc1
d40 1
a40 1
Release:      20061013
@


1.17
log
@new world order for "Packager" and "Distribution" headers
@
text
@d3 2
a4 2
##  Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
@


1.17.2.1
log
@file diogene87.spec was added on branch OPENPKG_2_STABLE on 2006-10-16 14:49:33 +0000
@
text
@d1 202
@


1.17.2.2
log
@Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class)
@
text
@a0 202
##
##  diogene87.spec -- OpenPKG RPM Package Specification
##  Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
##
##  Permission to use, copy, modify, and distribute this software for
##  any purpose with or without fee is hereby granted, provided that
##  the above copyright notice and this permission notice appear in all
##  copies.
##
##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
##  SUCH DAMAGE.
##

#   package version
%define       V_diogene87  1.0.0rc1
%define       V_narcisse81 0.0.4

#   package information
Name:         diogene87
Summary:      Job Scheduling System
URL:          http://diogene87.org/
Vendor:       D. Parisot & S.G. Ytsma
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class:        EVAL
Group:        System
License:      GPL
Version:      %{V_diogene87}
Release:      2.20061018

#   package options
%option       with_fsl  yes
%option       with_x11  yes

#   list of sources
Source0:      http://switch.dl.sourceforge.net/diogene87/diogene87-%{V_diogene87}.tar.gz
Source1:      http://switch.dl.sourceforge.net/narcisse81/narcisse81-%{V_narcisse81}.tar.gz
Source2:      rc.diogene87
Source3:      fsl.diogene87
Patch0:       diogene87.patch

#   build information
Prefix:       %{l_prefix}
BuildRoot:    %{l_buildroot}
BuildPreReq:  OpenPKG, openpkg >= 2.20061018
PreReq:       OpenPKG, openpkg >= 2.20061018
BuildPreReq:  gettext
PreReq:       gettext
%if "%{with_fsl}" == "yes"
BuildPreReq:  fsl >= 1.2.0
PreReq:       fsl >= 1.2.0
%endif
%if "%{with_x11}" == "yes"
BuildPreReq:  X11, gtk
PreReq:       X11, gtk
%endif
AutoReq:      no
AutoReqProv:  no

%description
    Diogene87 is a powerful scheduler system providing centralized
    management, jobs dependencies, start condition, planning, log of job
    activity, job monitoring, statistic for job duration and resource
    control.

%track
    prog diogene87 = {
        version   = %{V_diogene87}
        url       = http://prdownloads.sourceforge.net/diogene87/
        regex     = diogene87-(__VER__)\.tar\.gz
    }
    prog diogene87:narcisse81 = {
        version   = %{V_narcisse81}
        url       = http://prdownloads.sourceforge.net/narcisse81/
        regex     = narcisse81-(__VER__)\.tar\.gz
    }

%prep
    %setup -q
%if "%{with_x11}" == "yes"
    %setup -q -T -D -a 1
    %patch -p0 -d narcisse81-%{V_narcisse81}
%endif

%build
    #   configure program
    %{l_shtool} subst \
        -e 's;\(localstatedir./lib\)/diogene87;\1;g' \
        -e 's;\(localstatedir./run\)/diogene87;\1;g' \
        configure conf/Makefile.in
    CC="%{l_cc}" \
    CFLAGS="%{l_cflags -O}" \
    CPPFLAGS="%{l_cppflags}" \
    LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \
    LIBS="%{l_fsl_libs}" \
    ./configure \
        --prefix=%{l_prefix} \
        --datarootdir=%{l_prefix} \
        --localstatedir=%{l_prefix}/var/diogene87 \
        --disable-smart-install

    #   build program
    %{l_make} %{l_mflags -O}

%if "%{with_x11}" == "yes"
    #   build GUI
    ( cd narcisse81-%{V_narcisse81}/src
      %{l_make} %{l_mflags -O}
    ) || exit $?
%endif

%install
    #   install program
    rm -rf $RPM_BUILD_ROOT
    %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"

%if "%{with_x11}" == "yes"
    #   install GUI
    %{l_shtool} install -c -s -m 755 \
        narcisse81-%{V_narcisse81}/src/narcisse81 \
        $RPM_BUILD_ROOT%{l_prefix}/bin/
%endif

    #   strip down installation files
    rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/diogene87
    rm -rf $RPM_BUILD_ROOT%{l_prefix}/locale
    rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
    rm -f $RPM_BUILD_ROOT%{l_prefix}/info/*_dev*
    rm -f $RPM_BUILD_ROOT%{l_prefix}/info/*_fr*
    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true

    #   post-adjust default configuration
    %{l_shtool} subst \
        -e 's;^#\(PID_FILE.*\);\1;' \
        -e 's;^#\(USER_ACCOUNT\)=.*;\1=%{l_rusr};' \
        -e 's;^#\(IPPORT=.*\);\1;' \
        -e 's;^#\(IPADDR\)=.*;\1=127.0.0.1;' \
        $RPM_BUILD_ROOT%{l_prefix}/etc/diogene87/dio87d.conf

    #   install OSSP fsl configuration
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/etc/fsl
    %{l_shtool} install -c -m 644 %{l_value -s -a} \
        %{SOURCE fsl.diogene87} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/

    #   install run-command script
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
    %{l_shtool} install -c -m 755 %{l_value -s -a} \
        %{SOURCE rc.diogene87} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/

    #   create additional directories
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/var/diogene87/log

    #   determine installation files
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
        %{l_files_std} \
        '%not %dir %{l_prefix}/etc/fsl' \
        '%config %{l_prefix}/etc/fsl/fsl.diogene87' \
        '%config %attr(640,%{l_rusr},%{l_rgrp}) %{l_prefix}/etc/diogene87/*' \
        '%attr(700,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/diogene87/run' \
        '%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/diogene87/lib' \
        '%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/diogene87/log'

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

%post
    #   create initial database
    if [ $1 -eq 1 ]; then
        echo "Creating initial Diogene87 database" | %{l_rpmtool} msg -b -t info
        su %{l_rusr} -c "umask 077; $RPM_INSTALL_PREFIX/sbin/dio87d -I 2>/dev/null"
    fi

    #   after upgrade, restart service
    [ $1 -eq 2 ] || exit 0
    eval `%{l_rc} diogene87 status 2>/dev/null`
    [ ".$diogene87_active" = .yes ] && %{l_rc} diogene87 restart
    exit 0

%preun
    #   before erase, stop service and remove log files
    [ $1 -eq 0 ] || exit 0
    %{l_rc} diogene87 stop 2>/dev/null
    rm -f $RPM_INSTALL_PREFIX/var/diogene87/lib/dio87d.data   >/dev/null 2>&1 || true
    rm -f $RPM_INSTALL_PREFIX/var/diogene87/log/diogene87.log >/dev/null 2>&1 || true
    exit 0

@


1.16
log
@insists on building against gettext
@
text
@d34 2
a35 2
Packager:     OpenPKG
Distribution: OpenPKG
d40 1
a40 1
Release:      20061012
@


1.15
log
@upgrading package: diogene87 1.0.0pre2 -> 1.0.0rc1
@
text
@d40 1
a40 1
Release:      20060827
d58 2
@


1.14
log
@replace '@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc' in shebang with '@@l_prefix@@/bin/openpkg rc' to allow people who run the rc.xxx scripts directly (as executables) to leverage from the Set-UID functionality
@
text
@d26 1
a26 1
%define       V_diogene87  1.0.0pre2
d40 1
a40 1
Release:      20060825
a76 1
        comment   = "rse: 1.0.0pre3: truncated tarball"
d107 1
d135 1
@


1.13
log
@SourceForge switched their URLs again and the canonical osdn.dl.sf.net no longer is available, hence switch to switch.dl.sf.net, one of the longest available and hopefully still long available mirrors
@
text
@d40 1
a40 1
Release:      20060524
d56 2
a57 2
BuildPreReq:  OpenPKG, openpkg >= 20040130
PreReq:       OpenPKG, openpkg >= 20040130
@


1.12
log
@remember issue
@
text
@d40 1
a40 1
Release:      20060223
d47 2
a48 2
Source0:      http://osdn.dl.sourceforge.net/diogene87/diogene87-%{V_diogene87}.tar.gz
Source1:      http://osdn.dl.sourceforge.net/narcisse81/narcisse81-%{V_narcisse81}.tar.gz
@


1.11
log
@adjust copyrights for new year 2006
@
text
@d40 1
a40 1
Release:      20051111
d77 1
@


1.10
log
@upgrading package: diogene87 1.0.0pre1 -> 1.0.0pre2
@
text
@d3 2
a4 2
##  Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
@


1.9
log
@add narcisse81, a X11/Gtk GUI for diogene87
@
text
@d26 1
a26 1
%define       V_diogene87  1.0.0pre1
d40 1
a40 1
Release:      20051014
@


1.8
log
@upgrading package: diogene87 0.9.4 -> 1.0.0pre1
@
text
@d25 4
d39 2
a40 2
Version:      1.0.0pre1
Release:      20050911
d44 1
d47 5
a51 3
Source0:      http://osdn.dl.sourceforge.net/diogene87/diogene87-%{version}.tar.gz
Source1:      rc.diogene87
Source2:      fsl.diogene87
d62 4
d77 1
a77 1
        version   = %{version}
d81 5
d89 4
d113 7
d125 7
@


1.7
log
@upgrading package: diogene87 0.9.3 -> 0.9.4
@
text
@d35 2
a36 2
Version:      0.9.4
Release:      20050807
@


1.6
log
@upgrading package: diogene87 0.9.2 -> 0.9.3
@
text
@d35 2
a36 2
Version:      0.9.3
Release:      20050526
d60 1
a60 1
    management, jobs dependences, start condition, planning, log of job
@


1.5
log
@upgrading package: diogene87 0.9.2pre3 -> 0.9.2
@
text
@d35 2
a36 2
Version:      0.9.2
Release:      20050410
@


1.4
log
@upgrading package: diogene87 0.9.2pre2 -> 0.9.2pre3
@
text
@d35 2
a36 2
Version:      0.9.2pre3
Release:      20050329
@


1.3
log
@Adjust the copyright declaration in this (RSE's) copy of the OpenPKG
source code now that the fork point for C&W was established (CVS tag
OPENPKG_CW_FP), the shared copyright agreement between RSE and C&W is
no longer active (as C&W no longer officially sponsors OpenPKG) and the
new shared copyright from RSE can be taken over by the newly established
juristic entity OpenPKG Foundation e.V. (instead of the non-juristic
entity OpenPKG Project).
@
text
@d35 2
a36 2
Version:      0.9.2pre2
Release:      20050315
@


1.2
log
@The author implemented my feedback and now dio87d(8) is able to bind to a particular address only
@
text
@d2 3
a4 4
##  diogene87.spec -- OpenPKG RPM Specification
##  Copyright (c) 2000-2005 The OpenPKG Project <http://www.openpkg.org/>
##  Copyright (c) 2000-2005 Ralf S. Engelschall <rse@@engelschall.com>
##  Copyright (c) 2000-2005 Cable & Wireless <http://www.cw.com/>
d30 1
a30 1
Packager:     The OpenPKG Project
@


1.1
log
@new package: diogene87 0.9.2pre1 (Job Scheduling System)
@
text
@d36 2
a37 2
Version:      0.9.2pre1
Release:      20050313
d110 2
@

