head	1.18;
access;
symbols;
locks; strict;
comment	@-- @;


1.18
date	2009.12.21.16.37.07;	author rse;	state Exp;
branches;
next	1.17;
commitid	xJFW7R2gDZbJfggu;

1.17
date	2009.12.20.10.13.58;	author rse;	state Exp;
branches;
next	1.16;
commitid	N7MYblbjvbxha6gu;

1.16
date	2009.11.13.22.47.39;	author rse;	state Exp;
branches;
next	1.15;
commitid	NHjiBGFffLzywpbu;

1.15
date	2009.11.04.16.59.12;	author rse;	state Exp;
branches;
next	1.14;
commitid	cq3xJDMQ2UqYSdau;

1.14
date	2009.09.23.19.00.03;	author rse;	state Exp;
branches;
next	1.13;
commitid	1liqiC558GL6UP4u;

1.13
date	2009.09.15.17.28.59;	author rse;	state Exp;
branches;
next	1.12;
commitid	FnU9tqoEq5pPEN3u;

1.12
date	2009.09.13.19.04.46;	author rse;	state Exp;
branches;
next	1.11;
commitid	ywZqykqbhW7Gfy3u;

1.11
date	2009.08.30.20.12.05;	author rse;	state Exp;
branches;
next	1.10;
commitid	2fFQMCoDPS0G4L1u;

1.10
date	2009.08.30.08.03.42;	author rse;	state Exp;
branches;
next	1.9;
commitid	JeN8hvl5J0UM2H1u;

1.9
date	2009.08.30.08.02.46;	author rse;	state Exp;
branches;
next	1.8;
commitid	tk9EhES5UQWr2H1u;

1.8
date	2009.07.18.09.12.47;	author rse;	state Exp;
branches;
next	1.7;
commitid	OMi8p7OJLfjbOaWt;

1.7
date	2009.04.18.13.10.24;	author rse;	state Exp;
branches;
next	1.6;
commitid	4pHXU27WTIGCZuKt;

1.6
date	2009.03.14.08.23.20;	author rse;	state Exp;
branches;
next	1.5;
commitid	5jeiLsIEMY9kAYFt;

1.5
date	2009.01.30.17.01.51;	author rse;	state Exp;
branches;
next	1.4;
commitid	l8NKef1zU0QTPuAt;

1.4
date	2008.12.17.17.38.48;	author rse;	state Exp;
branches;
next	1.3;
commitid	LT8qISCPcuqgsQut;

1.3
date	2008.12.17.17.34.46;	author rse;	state Exp;
branches;
next	1.2;
commitid	kNXhMzT4H8PSqQut;

1.2
date	2008.10.18.17.01.29;	author rse;	state Exp;
branches;
next	1.1;
commitid	mg543eoH2CJ1b8nt;

1.1
date	2008.10.18.15.21.02;	author rse;	state Exp;
branches;
next	;
commitid	Hxv883pJYaPzC7nt;


desc
@@


1.18
log
@upgrading package: fossil 20091218 -> 20091220
@
text
@##
##  fossil.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_opkg  20091220
%define       V_dist  20091220213451

#   package information
Name:         fossil
Summary:      Distributed Version Control System
URL:          http://www.fossil-scm.org/
Vendor:       D. Richard Hipp
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class:        EVAL
Group:        SCM
License:      GPL
Version:      %{V_opkg}
Release:      20091221

#   list of sources
Source0:      http://www.fossil-scm.org/download/fossil-src-%{V_dist}.tar.gz
Source1:      fossil.cgi
Patch0:       fossil.patch

#   build information
Prefix:       %{l_prefix}
BuildRoot:    %{l_buildroot}
BuildPreReq:  OpenPKG, openpkg >= 20060823
PreReq:       OpenPKG, openpkg >= 20060823
AutoReq:      no
AutoReqProv:  no

%description
    Fossil is a distributed software revision control system that
    includes an integrated Wiki and an integrated Bug-Tracking system,
    all in a single, easy-to-use, stand-alone executable. It stores its
    repositories in a single SQLite database.

%track
    prog fossil = {
        version   = %{V_dist}
        url       = http://www.fossil-scm.org/download.html
        regex     = fossil-src-(\d+)\.tar\.gz
    }

%prep
    %setup -q -n fossil-src-%{V_dist}
    %patch -p0

%build
    libs="-lz"
    case "%{l_platform -t}" in
        *-sunos* ) libs="$libs -lrt -lsocket -lnsl" ;;
    esac
    %{l_make} %{l_mflags} \
        CC="%{l_cc}" \
        CFLAGS="%{l_cflags -O} %{l_cppflags}" \
        LDFLAGS="%{l_ldflags}" \
        LIBS="$libs"

%install
    rm -rf $RPM_BUILD_ROOT
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/bin \
        $RPM_BUILD_ROOT%{l_prefix}/cgi \
        $RPM_BUILD_ROOT%{l_prefix}/var/fossil
    %{l_shtool} install -c -s -m 755 \
        fossil $RPM_BUILD_ROOT%{l_prefix}/bin/
    %{l_shtool} install -c -m 755 %{l_value -s -a} \
        %{SOURCE fossil.cgi} $RPM_BUILD_ROOT%{l_prefix}/cgi/fossil
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
        %{l_files_std} \
        '%dir %attr(-,%{l_nusr},%{l_ngrp}) %{l_prefix}/var/fossil'

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

%post
    if [ ".$1" = .1 ]; then
        su - %{l_nusr} -c \
            "LC_CTYPE=C; export LC_CTYPE; umask 077; \
            rm -f $RPM_INSTALL_PREFIX/var/fossil/fossil.db; \
            $RPM_INSTALL_PREFIX/bin/fossil new \
                $RPM_INSTALL_PREFIX/var/fossil/fossil.db" 2>&1
        ( echo "The Fossil repository can be reached under the URL"
          echo "  http://localhost/openpkg-cgi/fossil"
          echo "In order to operate with it you have to create users in it."
          echo "For this either use the Web interface under Setup->User or"
          echo "configure the repository from the command-line:"
          echo "  $RPM_INSTALL_PREFIX/bin/fossil user new setup"
          echo "  $RPM_INSTALL_PREFIX/bin/fossil user capabilities setup 's'"
          echo "  $RPM_INSTALL_PREFIX/bin/fossil user default setup"
        ) | %{l_rpmtool} msg -b -t notice
    fi
    exit 0

%preun
    if [ $1 -eq 0 ]; then
        rm -f $RPM_INSTALL_PREFIX/var/fossil/* >/dev/null 2>&1 || true
    fi
    exit 0

@


1.17
log
@upgrading package: fossil 20091111 -> 20091218
@
text
@d25 2
a26 2
%define       V_opkg  20091218
%define       V_dist  20091218002951
d39 1
a39 1
Release:      20091220
@


1.16
log
@upgrading package: fossil 20091103 -> 20091111
@
text
@d25 2
a26 2
%define       V_opkg  20091111
%define       V_dist  20091111162119
d39 1
a39 1
Release:      20091113
@


1.15
log
@upgrading package: fossil 20090921 -> 20091103
@
text
@d25 2
a26 2
%define       V_opkg  20091103
%define       V_dist  20091103194336
d39 1
a39 1
Release:      20091104
@


1.14
log
@upgrading package: fossil 20090915 -> 20090921
@
text
@d25 2
a26 2
%define       V_opkg  20090921
%define       V_dist  20090921191920
d39 1
a39 1
Release:      20090923
@


1.13
log
@upgrading package: fossil 20090911 -> 20090915
@
text
@d25 2
a26 2
%define       V_opkg  20090915
%define       V_dist  20090915120431
d39 1
a39 1
Release:      20090915
@


1.12
log
@upgrading package: fossil 20090828 -> 20090911
@
text
@d25 2
a26 2
%define       V_opkg  20090911
%define       V_dist  20090911230450
d39 1
a39 1
Release:      20090913
@


1.11
log
@fix tracking
@
text
@d25 2
a26 2
%define       V_opkg  20090828
%define       V_dist  20090828225927
d39 1
a39 1
Release:      20090830
@


1.10
log
@fix message display
@
text
@d62 1
a62 1
        version   = %{version}
@


1.9
log
@upgrading package: fossil 20090718 -> 20090828
@
text
@d111 1
a111 1
          echo "For this either use the Web interface under Setup->User" or"
d114 1
a114 1
          echo    $RPM_INSTALL_PREFIX/bin/fossil user capabilities setup 's'"
@


1.8
log
@upgrading package: fossil 20090226 -> 20090718
@
text
@d25 2
a26 2
%define       V_date  20090718
%define       V_sha1  e124881a70
d38 2
a39 2
Version:      %{V_date}
Release:      20090718
d42 1
a42 1
Source0:      ftp://ftp.openpkg.org/sources/CPY/fossil/Fossil-%{V_sha1}.zip
d49 1
a49 1
BuildPreReq:  OpenPKG, openpkg >= 20060823, infozip
d63 2
a64 2
        url       = ftp://ftp.openpkg.org/sources/CPY/fossil/
        regex     = Fossil-([\da-f]+)\.zip
d68 1
a68 3
    %setup -q -T -c
    unzip -q -x %{SOURCE0}
    cd Fossil-%{V_sha1}
a71 1
    cd Fossil-%{V_sha1}
d89 1
a89 1
        Fossil-%{V_sha1}/fossil $RPM_BUILD_ROOT%{l_prefix}/bin/
@


1.7
log
@bump years in copyright messages
@
text
@d25 2
a26 2
%define       V_date  20090226
%define       V_sha1  f6790b7c3c
d39 1
a39 1
Release:      20090314
@


1.6
log
@upgrading package: fossil 20090130 -> 20090226
@
text
@d3 1
a3 1
##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
@


1.5
log
@upgrading package: fossil 20081217 -> 20090130
@
text
@d25 2
a26 2
%define       V_date  20090130
%define       V_sha1  23e96cf795
d39 1
a39 1
Release:      20090130
@


1.4
log
@fix date
@
text
@d25 2
a26 2
%define       V_date  20081217
%define       V_sha1  ba837fd294
d39 1
a39 1
Release:      20081217
@


1.3
log
@upgrading package: fossil 20081018 -> 20081216
@
text
@d25 1
a25 1
%define       V_date  20081216
@


1.2
log
@tell how to setup the setup user
@
text
@d25 2
a26 2
%define       V_date  20081018
%define       V_sha1  9e80dc66cf
d39 1
a39 1
Release:      20081018
@


1.1
log
@new package: fossil 20081018 (Distributed Version Control System)
@
text
@d112 7
a118 3
          echo "    http://localhost/openpkg-cgi/fossil"
          echo "with user \"setup\" and password \"setup\" and configure your"
          echo "repository by addding users and changing the \"setup\" password."
@

