Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37044518
en ru br
ALT Linux repos
S:3.2.0.1.d89c-alt1
5.0: 3.0.4-alt1
4.1: 3.0.3-alt1
4.0: 3.0.1-alt2
3.0: 3.0.1-alt1.1

Group :: Development/C
RPM: gperf

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: gperf
Version: 3.2.0.1.d89c
Release: alt1

Summary: A perfect hash function generator
License: GPLv3+
Group: Development/C
Url: https://www.gnu.org/software/gperf/
%define srcname %name-%version-%release
# http://git.savannah.gnu.org/cgit/gperf.git
Source: %srcname.tar
BuildRequires: gnulib >= 0.1.4003.cfe65
BuildRequires: gcc-c++ help2man makeinfo

%description
Gperf is a perfect hash function generator written in C++.  Simply
stated, a perfect hash function is a hash function and a data structure
that allows recognition of a key word in a set of words using exactly
one probe into the data structure.

%prep
%setup -n %srcname
# Build scripts expect to find the %name version in this file.
echo -n %version > .tarball-version
# Use system help2man
ln -snf %_bindir/help2man doc/

%build
GNULIB_TOOL='gnulib-tool ' ./autogen.sh
%add_optflags -fno-strict-aliasing %(getconf LFS_CFLAGS)
%define docdir %_docdir/%name
%configure --docdir=%docdir
%make_build

%install
%makeinstall_std
install -pm644 AUTHORS NEWS README %buildroot%docdir/

%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict

%check
%make_build -k check

%files
%_bindir/*
%_mandir/man?/*
%_infodir/*.info*
%docdir/

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin