File link-grammar.spec of Package link-grammar

#
# spec file for package 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:           link-grammar
Version:        5.0.8
Release:        0
Summary:        An English grammar checker
License:        BSD-3-Clause
Group:          Productivity/Text/Spell
Url:            http://www.abisource.com/projects/link-grammar/
Source:         http://www.abisource.com/downloads/link-grammar/5.0.8/%{name}-%{version}.tar.gz
BuildRequires:  aspell-devel
BuildRequires:  gcc-c++
BuildRequires:  glibc-devel
BuildRequires:  libedit-devel
BuildRequires:  pkg-config
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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 -n  perl-clinkgrammar
Summary:        An English grammar checker (Perl bindings)
Group:          Development/Libraries/C and C++

%description -n  perl-clinkgrammar
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/C and C++
Requires:       %{name} = %{version}
Requires:       perl-clinkgrammar = %{version}

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

This package contains the development files.

%prep
%setup -q
# Install perl bindings to vendorlib, not sitelib
sed -i "s:sitearchexp:vendorarchexp:g" configure*

%build
# --enable-sat-solver and --enable-corpus-stats are still at the prototype stage
%configure --disable-static
make %{?_smp_mflags}

%install
%make_install
find %{buildroot} -type f -name '*.la' -delete -print

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog LICENSE MAINTAINERS README TODO
%{_bindir}/*
%{_libdir}/*.so.*
%{_datadir}/link-grammar
%{_mandir}/man1/*

%files -n perl-clinkgrammar
%defattr(-,root,root)
%{perl_vendorlib}/*/clinkgrammar.pm
%{perl_vendorlib}/*/clinkgrammar.so.*

%files devel
%defattr(-, root, root)
%dir %{_includedir}/link-grammar
%{_includedir}/link-grammar/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{perl_vendorlib}/*/clinkgrammar.so

%changelog
openSUSE Build Service is sponsored by