2007-01-16 00:15:31 +01:00
|
|
|
#
|
2014-12-09 09:17:04 +01:00
|
|
|
# spec file for package gperf
|
2007-01-16 00:15:31 +01:00
|
|
|
#
|
2014-12-09 09:17:04 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:15:31 +01:00
|
|
|
#
|
2009-06-17 19:35:39 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:15:31 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2009-06-17 19:35:39 +02:00
|
|
|
|
2007-01-16 00:15:31 +01:00
|
|
|
Name: gperf
|
2010-03-04 16:08:35 +01:00
|
|
|
Version: 3.0.4
|
2014-12-09 09:17:04 +01:00
|
|
|
Release: 0
|
2007-01-16 00:15:31 +01:00
|
|
|
Summary: A Compiler Tool for Generating Perfect Hash Functions
|
2014-12-09 09:17:04 +01:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Url: https://gnu.org/software/gperf/
|
|
|
|
|
2007-01-16 00:15:31 +01:00
|
|
|
Source: ftp://ftp.gnu.org/pub/gnu/gperf/gperf-%{version}.tar.bz2
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-12-09 09:17:04 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
PreReq: %install_info_prereq
|
2007-01-16 00:15:31 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
A perfect hash function is simply: 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Doug Schmidt <schnidt@siam.ics.uci.edu>
|
|
|
|
Bruno Haible <bruno@linuix.mathematik.uni-karlsruhe.de>
|
|
|
|
|
|
|
|
%prep
|
2010-03-04 16:08:35 +01:00
|
|
|
%setup -q
|
2007-01-16 00:15:31 +01:00
|
|
|
|
|
|
|
%build
|
2010-03-04 16:08:35 +01:00
|
|
|
%configure \
|
|
|
|
--htmldir=%{_defaultdocdir}/%{name}
|
2010-01-14 15:28:50 +01:00
|
|
|
make %{?_smp_mflags}
|
2010-03-04 16:08:35 +01:00
|
|
|
|
|
|
|
%check
|
2007-01-16 00:15:31 +01:00
|
|
|
make check
|
|
|
|
|
|
|
|
%install
|
2014-12-09 09:17:04 +01:00
|
|
|
%make_install
|
2010-03-04 16:08:35 +01:00
|
|
|
rm -f %{buildroot}%{_prefix}/doc/gperf/gperf.html
|
|
|
|
rm -f %{buildroot}%{_datadir}/doc/gperf/gperf.html
|
2007-01-16 00:15:31 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr (-,root,root)
|
|
|
|
%doc README NEWS AUTHORS COPYING ChangeLog doc/*.html
|
2010-03-04 16:08:35 +01:00
|
|
|
%{_bindir}/gperf
|
2007-01-16 00:15:31 +01:00
|
|
|
%doc %{_infodir}/gperf.info.gz
|
|
|
|
%doc %{_mandir}/man1/gperf.1.gz
|
|
|
|
|
2009-06-17 19:35:39 +02:00
|
|
|
%changelog
|