# # spec file for package gperf (Version 3.0.2) # # 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: GPLv2+ Group: Development/Languages/C and C++ PreReq: %install_info_prereq AutoReqProv: on Version: 3.0.2 Release: 125 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 Bruno Haible %prep %setup %build CXXFLAGS="$RPM_OPT_FLAGS" CFLAGS="$RPM_OPT_FLAGS" \ ./configure --prefix=/usr \ --mandir=%{_mandir} --infodir=%{_infodir} %{_target_cpu}-suse-linux make %{?_smp_mflags} make check %install make install DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT/usr/doc/gperf/gperf.html rm -f $RPM_BUILD_ROOT/usr/share/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 /usr/bin/gperf %doc %{_infodir}/gperf.info.gz %doc %{_mandir}/man1/gperf.1.gz %changelog