File malaga.spec of Package malaga
#
# spec file for package malaga (Version 7.12)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: malaga
Version: 7.12
Release: 1
Url: http://home.arcor.de/bjoern-beutel/malaga
License: GPL v2 or later
Summary: A Grammar Development Environment for Natural Languages
Group: Productivity/Text/Spell
Source: %{name}-%{version}.tar.bz2
PreReq: %install_info_prereq
Requires: libmalaga7 = %{version}
BuildRequires: glib2-devel gtk2-devel readline-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
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.
Authors:
--------
Bjoern Beutel
%package -n libmalaga7
License: GPL v2 or later
Group: System/Libraries
Summary: Malaga Library Files.
%description -n libmalaga7
Malaga library files.
Authors:
--------
Bjoern Beutel
%package -n libmalaga-devel
License: GPL v2 or later
Group: Development/Libraries/C and C++
Summary: Include Files and Libraries mandatory for Development
Requires: libmalaga7 = %{version} glib2-devel
# 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.
Authors:
--------
Bjoern Beutel
%prep
%setup -q
%build
autoreconf -f -i
%configure\
--disable-static
make %{?jobs:-j%jobs}
%install
%makeinstall
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
%clean
rm -rf $RPM_BUILD_ROOT
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%post -n libmalaga7 -p /sbin/ldconfig
%postun -n libmalaga7 -p /sbin/ldconfig
%files
%defattr (-,root,root)
%doc CHANGES.txt GPL.txt README.txt
%{_bindir}/*
# Empty directory reserved for malaga descriptions:
%dir %{_datadir}/malaga
%doc %{_infodir}/malaga.info.gz
%doc %{_mandir}/man?/*.*
/usr/share/emacs/site-lisp/*.el
%files -n libmalaga7
%defattr (-,root,root)
%{_libdir}/*.so.*
%files -n libmalaga-devel
%defattr (-,root,root)
%{_includedir}/malaga.h
%{_libdir}/*.so
%{_libdir}/*.*a
%changelog
* Fri Jul 25 2008 sbrabec@suse.cz
- Updated to version 7.12 (bnc#394355):
* malshow now uses cairo for drawing; line thickness grows with
font size.
* The Malaga executables now link the dynamic malaga library.
* When using the command "help", the commands are now sorted
columns-first, instead of lines-first.
* Malaga may now be licensed by GPL version 2 or any later
version.
* Repaired project file name dialog in Malaga's Emacs mode.
* The Makefile now uses LDFLAGS for linking.
* Entering Ctrl-D to exit no longer causes a segmentation
violation error.
- Spec file simplified.
- Disabled static library.
- libmalaga7-devel renamed to libmalaga-devel, as no file there has
"7" in the name.
- malaga.el moved to the correct directory.
* Tue May 29 2007 ke@suse.de
- Initial package as prepared in
http://build.opensuse.org/package/show?package=malaga&project=Office%%3AVoikko
by Sami Vento: Version 7.9.