forked from pool/gperf
- Add gpg signature - Correct info requirements - Cleanup spec file with spec-cleaner OBS-URL: https://build.opensuse.org/request/show/294208 OBS-URL: https://build.opensuse.org/package/show/devel:tools/gperf?expand=0&rev=9
69 lines
2.0 KiB
RPMSpec
69 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package gperf
|
|
#
|
|
# Copyright (c) 2015 SUSE LINUX 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/
|
|
#
|
|
|
|
|
|
Name: gperf
|
|
Version: 3.0.4
|
|
Release: 0
|
|
Summary: A Compiler Tool for Generating Perfect Hash Functions
|
|
License: GPL-3.0+
|
|
Group: Development/Languages/C and C++
|
|
Url: https://gnu.org/software/gperf/
|
|
Source0: ftp://ftp.gnu.org/pub/gnu/gperf/gperf-%{version}.tar.gz
|
|
Source1: ftp://ftp.gnu.org/pub/gnu/gperf/gperf-%{version}.tar.gz.sig
|
|
Source2: %{name}.keyring
|
|
BuildRequires: gcc-c++
|
|
Requires(post): %{install_info_prereq}
|
|
Requires(preun): %{install_info_prereq}
|
|
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.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure \
|
|
--htmldir=%{_defaultdocdir}/%{name}
|
|
make %{?_smp_mflags}
|
|
|
|
%check
|
|
make check
|
|
|
|
%install
|
|
%make_install
|
|
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
|
|
|
|
%preun
|
|
%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
|