ALT Linux repos
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
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