File link-grammar.spec of Package link-grammar

#
# spec file for package link-grammar (Version 4.7.2)
#
# Copyright (c) 2011 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:        4.7.2
Release:        1
License:        BSD3c(or similar)
Summary:        An English grammar checker
Url:            http://www.abisource.com/projects/link-grammar/
Group:          Productivity/Text/Spell
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  aspell-devel
BuildRequires:  glibc-devel
BuildRequires:  hunspell-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 devel
License:        BSD3c(or similar)
Summary:        An English grammar checker (Development files)
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{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

%build
# --enable-sat-solver and --enable-corpus-stats are still at the prototype stage
%configure --disable-static
# REALLY UGLY HACK for an error in libedit in openSUSE 11.2
%if 0%{suse_version} == 1120
for a in $(grep -r -- "-lcurses" * | awk -F: '{print $1}' | sort | uniq); do sed -i "s/-lcurses/-lncurses/g" $a; done
%endif
# END UGLY HACK for an error in libedit in openSUSE 11.2
%__make %{?jobs:-j%jobs}

%install
%makeinstall
rm -f %{buildroot}%{_libdir}/*.la

%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 devel
%defattr(-, root, root)
%dir %{_includedir}/link-grammar
%{_includedir}/link-grammar/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%changelog