SHA256
1
0
forked from pool/gperf
gperf/gperf.spec
OBS User autobuild 7bfa7f4736 Accepting request 33623 from devel:tools
Copy from devel:tools/gperf based on submit request 33623 from user prusnak

OBS-URL: https://build.opensuse.org/request/show/33623
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gperf?expand=0&rev=6
2010-03-04 15:08:35 +00:00

75 lines
2.0 KiB
RPMSpec

#
# spec file for package gperf (Version 3.0.4)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: gperf
BuildRequires: gcc-c++
License: GPLv3+
Group: Development/Languages/C and C++
PreReq: %install_info_prereq
AutoReqProv: on
Version: 3.0.4
Release: 1
Summary: A Compiler Tool for Generating Perfect Hash Functions
Source: ftp://ftp.gnu.org/pub/gnu/gperf/gperf-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
%setup -q
%build
%configure \
--htmldir=%{_defaultdocdir}/%{name}
make %{?_smp_mflags}
%check
make check
%install
%makeinstall
rm -f %{buildroot}%{_prefix}/doc/gperf/gperf.html
rm -f %{buildroot}%{_datadir}/doc/gperf/gperf.html
%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
%{_bindir}/gperf
%doc %{_infodir}/gperf.info.gz
%doc %{_mandir}/man1/gperf.1.gz
%changelog