head	1.11;
access;
symbols
	OPENPKG_E1_MP_HEAD:1.7
	OPENPKG_E1_MP:1.7
	OPENPKG_E1_MP_2_STABLE:1.3.2.2
	OPENPKG_E1_FP:1.3.2.2
	OPENPKG_2_STABLE_MP:1.6
	OPENPKG_2_STABLE_20061018:1.3.2.2
	OPENPKG_2_STABLE_20060622:1.3.2.1
	OPENPKG_2_STABLE:1.3.0.2
	OPENPKG_2_STABLE_BP:1.3;
locks; strict;
comment	@-- @;


1.11
date	2009.04.18.13.10.51;	author rse;	state Exp;
branches;
next	1.10;
commitid	4pHXU27WTIGCZuKt;

1.10
date	2009.02.06.22.25.47;	author rse;	state Exp;
branches;
next	1.9;
commitid	uvsLqhPtoFp5pqBt;

1.9
date	2008.01.01.14.54.56;	author rse;	state Exp;
branches;
next	1.8;
commitid	B8esaHJHoduuKILs;

1.8
date	2007.05.09.05.46.29;	author rse;	state Exp;
branches;
next	1.7;
commitid	bSqUWXf24MZIpdhs;

1.7
date	2007.01.01.17.38.21;	author rse;	state Exp;
branches;
next	1.6;
commitid	BicZD6VUl7GuqP0s;

1.6
date	2006.10.13.17.28.30;	author thl;	state Exp;
branches;
next	1.5;
commitid	q5GSxzsSDX29XxQr;

1.5
date	2006.09.23.10.52.09;	author rse;	state Exp;
branches;
next	1.4;
commitid	ZAKMzMAEX0XQqWNr;

1.4
date	2006.07.02.11.24.40;	author thl;	state Exp;
branches;
next	1.3;
commitid	MV9LKuNMAy2xhhDr;

1.3
date	2006.06.19.19.21.51;	author rse;	state Exp;
branches
	1.3.2.1;
next	1.2;
commitid	MjIGxtZ8lB19lEBr;

1.2
date	2006.01.01.13.14.12;	author rse;	state Exp;
branches;
next	1.1;
commitid	otZG8yKMCw1JFTfr;

1.1
date	2005.12.27.18.11.29;	author rse;	state Exp;
branches;
next	;
commitid	htFFxeYMvlCLxhfr;

1.3.2.1
date	2006.06.20.15.18.07;	author rse;	state Exp;
branches;
next	1.3.2.2;
commitid	P9b9BoNafLYTTKBr;

1.3.2.2
date	2006.10.16.14.50.39;	author rse;	state Exp;
branches;
next	;
commitid	iZxwRSmmWscPXUQr;


desc
@@


1.11
log
@bump years in copyright messages
@
text
@##
##  gperf.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 information
Name:         gperf
Summary:      Generate Perfect Hash Functions
URL:          http://www.gnu.org/software/gperf/gperf.html
Vendor:       GNU
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class:        PLUS
Group:        CompilerCompiler
License:      GPL
Version:      3.0.4
Release:      20090206

#   list of sources
Source0:      ftp://ftp.gnu.org/gnu/gperf/gperf-%{version}.tar.gz
Patch0:       gperf.patch

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

%description
    GNU gperf is a "perfect hash function" generator. For a given list
    of strings, it produces a hash function and hash table, in form
    of C or C++ code, for looking up a value depending on the input
    string. The hash function is perfect, which means that the hash
    table has no collisions, and the hash table lookup needs a single
    string comparison only. GNU gperf is highly customizable. There are
    options for generating C or C++ code, for emitting switch statements
    or nested ifs instead of a hash table, and for tuning the algorithm
    employed by GNU gperf.

%track
    prog gperf = {
        version   = %{version}
        url       = ftp://ftp.gnu.org/gnu/gperf/
        regex     = gperf-(__VER__)\.tar\.gz
    }

%prep
    %setup -q
    %patch -p0

%build
    CC="%{l_cc}" \
    CXX="%{l_cxx}" \
    CFLAGS="%{l_cflags -O}" \
    CXXFLAGS="%{l_cxxflags -O}" \
    CPPFLAGS="%{l_cppflags}" \
    LDFLAGS="%{l_ldflags}" \
    ./configure \
        --prefix=%{l_prefix} \
        --mandir=%{l_prefix}/man
    %{l_make} %{l_mflags -O}

%install
    rm -rf $RPM_BUILD_ROOT
    %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
    rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/doc
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

@


1.10
log
@upgrading package: gperf 3.0.3 -> 3.0.4
@
text
@d3 1
a3 1
##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
@


1.9
log
@Update package specifications according to OpenPKG year 2008 world order:
http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html
@
text
@d34 2
a35 2
Version:      3.0.3
Release:      20080101
@


1.8
log
@upgrading package: gperf 3.0.2 -> 3.0.3
@
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/>
d35 1
a35 1
Release:      20070509
@


1.7
log
@Welcome Year 2007!
@
text
@d35 2
a36 2
Version:      3.0.2
Release:      20061013
@


1.6
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.5
log
@adjust Group header
@
text
@d30 2
a31 2
Packager:     OpenPKG
Distribution: OpenPKG
d36 1
a36 1
Release:      20060923
@


1.4
log
@upgrading package: gperf 3.0.1 -> 3.0.2
@
text
@d33 1
a33 1
Group:        Language
d36 1
a36 1
Release:      20060702
@


1.3
log
@upgrade class from EVAL to PLUS to fulfill dependency of PLUS package 'ragel'
@
text
@d35 2
a36 2
Version:      3.0.1
Release:      20060619
@


1.3.2.1
log
@bump release numbers for OpenPKG 2.20060622 in advance
@
text
@d36 1
a36 1
Release:      2.20060622
d45 2
a46 2
BuildPreReq:  OpenPKG, openpkg >= 2.20060622, gcc, make
PreReq:       OpenPKG, openpkg >= 2.20060622
@


1.3.2.2
log
@Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class)
@
text
@d30 2
a31 2
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
d33 1
a33 1
Group:        CompilerCompiler
d35 2
a36 2
Version:      3.0.2
Release:      2.20061018
d45 2
a46 2
BuildPreReq:  OpenPKG, openpkg >= 2.20061018, gcc, make
PreReq:       OpenPKG, openpkg >= 2.20061018
@


1.2
log
@adjust copyrights for new year 2006
@
text
@d32 1
a32 1
Class:        EVAL
d36 1
a36 1
Release:      20051227
@


1.1
log
@new package: gperf 3.0.1 (Generate Perfect Hash Functions)
@
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/>
@

