LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File malaga.spec of Package malaga (Project LibreOffice:Stable)

# spec file for package malaga
# 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/

# norootforbuild

Name:           malaga
Version:        7.12
Release:        47
Url:            http://home.arcor.de/bjoern-beutel/malaga
License:        GPLv2+
Summary:        A Grammar Development Environment for Natural Languages
Group:          Productivity/Text/Spell
Source:         %{name}-%{version}.tar.bz2
Source99:       baselibs.conf
PreReq:         %install_info_prereq
Requires:       libmalaga7 = %{version}
BuildRequires:  gtk2-devel readline-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Patch0:         malaga-7.12-verbose.patch
# PATCH-FIX-FEDORA malaga-rename-map_file.diff bnc#641649 redhat#502546 sourceforge#2802548 sbrabec@suse.cz -- Fix symbol clash with samba.
Patch1:         malaga-rename-map_file.diff

Malaga is a software package for the development and application of
grammars that are used for the analysis of words and sentences of
natural languages. It contains a programming language for the modelling
of morphology and syntax grammars.

Malaga is based on the grammatical theory of the "Left Associative
Grammar" (LAG), developed by Roland Hausser, professor for
Computational Linguistics at University of Erlangen, Germany.

    Bjoern Beutel

%package -n libmalaga7
License:        GPLv2+
Group:          System/Libraries
Summary:        Malaga Library Files.

%description -n libmalaga7
Malaga library files.

    Bjoern Beutel

%package -n libmalaga-devel
License:        GPLv2+
Group:          Development/Libraries/C and C++
Summary:        Include Files and Libraries mandatory for Development
Requires:       libmalaga7 = %{version}
# File name used up to openSUSE 11.0:
Provides:       libmalaga7-devel = %{version}
Obsoletes:      libmalaga7-devel < 7.12

%description -n libmalaga-devel
This package contains all necessary include files and libraries needed
to develop applications that require these.

    Bjoern Beutel

%setup -q
%patch1 -p1

autoreconf -f -i -v
%configure --with-pic\
make %{?jobs:-j%jobs}

mkdir -p $RPM_BUILD_ROOT/usr/share/emacs/site-lisp
mv $RPM_BUILD_ROOT%{_datadir}/malaga/malaga.el $RPM_BUILD_ROOT/usr/share/emacs/site-lisp
%{__rm} -f %{buildroot}%{_libdir}/*.la


%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%post -n libmalaga7 -p /sbin/ldconfig

%postun -n libmalaga7 -p /sbin/ldconfig

%defattr (-,root,root)
%doc CHANGES.txt GPL.txt README.txt
# Empty directory reserved for malaga descriptions:
%dir %{_datadir}/malaga
%doc %{_infodir}/malaga.info.gz
%doc %{_mandir}/man?/*.*

%files -n libmalaga7
%defattr (-,root,root)

%files -n libmalaga-devel
%defattr (-,root,root)