File mingw64-link-grammar.spec of Package mingw64-link-grammar
#
# spec file for package mingw64-link-grammar
#
# Copyright (c) 2014 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/
#
Name: mingw64-link-grammar
Version: 4.7.0
Release: 0
Summary: An English grammar checker
License: BSD-3-Clause
Group: Development/Libraries
Url: http://www.abisource.com/projects/link-grammar/
Source0: http://www.abisource.com/downloads/link-grammar/%{version}/link-grammar-%{version}.tar.gz
Source1000: %{name}-rpmlintrc
Patch0: link-grammar-4.6.7-windows.patch
#!BuildIgnore: post-build-checks
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem >= 23
BuildRequires: mingw64-libgnurx-devel
%_mingw64_package_header_debug
BuildArch: noarch
%description
The Link Grammar Parser is a syntactic parser of English, based on link
grammar, an original theory of English syntax. Given a sentence, the
system assigns to it a syntactic structure, which consists of a set of
labeled links connecting pairs of words. The parser also produces a
"constituent" (Penn tree-bank style phrase tree) representation of a
sentence (showing noun phrases, verb phrases, etc.).
%package tools
Summary: An English grammar checker (command line tools)
Group: Development/Libraries
%description tools
The Link Grammar Parser is a syntactic parser of English, based on link
grammar, an original theory of English syntax. Given a sentence, the
system assigns to it a syntactic structure, which consists of a set of
labeled links connecting pairs of words. The parser also produces a
"constituent" (Penn tree-bank style phrase tree) representation of a
sentence (showing noun phrases, verb phrases, etc.).
%package devel
Summary: An English grammar checker (development files)
Group: Development/Libraries
%description devel
The Link Grammar Parser is a syntactic parser of English, based on link
grammar, an original theory of English syntax. Given a sentence, the
system assigns to it a syntactic structure, which consists of a set of
labeled links connecting pairs of words. The parser also produces a
"constituent" (Penn tree-bank style phrase tree) representation of a
sentence (showing noun phrases, verb phrases, etc.).
%_mingw64_debug_package
%prep
%setup -q -n link-grammar-%{version}
%patch -P 0 -b .windows
%build
echo "lt_cv_deplibs_check_method='pass_all'" >> %{_mingw64_cache}
echo "ac_cv_file__proc_self_maps='no'" >> %{_mingw64_cache}
MINGW64_CFLAGS="-U__STRICT_ANSI__ %{_mingw64_cflags}" \
%{_mingw64_configure} \
--enable-shared --disable-static --disable-java-bindings
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make} || grep strdup %{_mingw64_includedir}/*
%install
%{_mingw64_make} DESTDIR=%{buildroot} install
%files
%defattr(-,root,root)
%{_mingw64_bindir}/liblink-grammar-4.dll
%{_mingw64_datadir}/link-grammar
%files tools
%defattr(-,root,root)
%{_mingw64_bindir}/link-parser.exe
%{_mingw64_mandir}/man1/link-parser.1*
%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/link-grammar
%{_mingw64_libdir}/liblink-grammar.dll.a
%{_mingw64_libdir}/pkgconfig/link-grammar.pc
%changelog