File mingw64-gperf.spec of Package mingw64-gperf

#
# 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

%define _name   gperf
Name:           mingw64-%{_name}
License:        GPL-3.0-or-later
Group:          Development/Languages/C and C++
PreReq:         %install_info_prereq
AutoReqProv:    on
Version:        3.1
Release:        1
Summary:        A Compiler Tool for Generating Perfect Hash Functions
Url:            https://www.gnu.org/software/gperf
Source:         http://ftp.gnu.org/pub/gnu/gperf/gperf-%{version}.tar.gz
Patch0:         gperf-3.1-add-exe-extension.patch
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-wine
# for check target
BuildRequires:  mingw64-libgcc_s_seh1
BuildRequires:  mingw64-libssp0
BuildRequires:  mingw64-libstdc++6
%_mingw64_package_header_debug
BuildArch:      noarch

%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>

%_mingw64_debug_package

%prep
%autosetup -p1 -n %{_name}-%{version}

%build
%_mingw64_configure	\
	--htmldir=%{_mingw64_docdir}/%{_name}
make %{?_smp_mflags}

%check
%_mingw64_cross_wine_init
make check WRAPPER=/usr/bin/wine

%install
mkdir -p %buildroot/%_mingw64_bindir
install -c src/gperf.exe %buildroot/%_mingw64_bindir/gperf.exe
mkdir -p %buildroot/%_mingw64_datadir/doc/gperf
install -m 644 doc/gperf.html %buildroot/%_mingw64_datadir/doc/gperf/gperf.html

%files
%defattr (-,root,root)
%doc README NEWS AUTHORS COPYING ChangeLog doc/*.html
%{_mingw64_bindir}/gperf.exe
%dir %{_mingw64_datadir}/doc/gperf
%doc %{_mingw64_datadir}/doc/gperf/gperf.html

%changelog
openSUSE Build Service is sponsored by