File malaga.spec of Package malaga
#
# spec file for package malaga (Version 7.12)
#
# Copyright (c) 2009 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: 35
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: gtk2-devel readline-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch0: malaga-7.12-verbose.patch
%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}
# 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
%patch0
%build
autoreconf -f -i -v
%configure --with-pic\
--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
%{__rm} -f %{buildroot}%{_libdir}/*.la
%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
%changelog
* Tue Feb 03 2009 crrodriguez@suse.de
- remove "la" files
- fix -devel package dependencies
- do not strip binaries on make install, let debuginfo generation to
handle it.
- allow verbose compilation
* 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.