Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > f37bbcc0a27d5b0f986a85bbfa2e99d0 > files > 3

malaga-7.12-9.mga3.src.rpm

%define major	7
%define libname	%mklibname %name %major
%define develname %mklibname %name -d

Summary:	A grammar development environment for natural languages
Name:		malaga
Version:	7.12
Release:	%mkrel 9
License:	GPLv2+
Group:		Text tools
URL:		http://home.arcor.de/bjoern-beutel/malaga/
Source0:	http://home.arcor.de/bjoern-beutel/malaga/%name-%version.tgz
Patch0:		malaga-7.12-linking.patch
BuildRequires:	readline-devel
BuildRequires:	gtk+2-devel
BuildRequires:	glib2-devel
BuildRequires:	chrpath
Requires(post):	info-install
Requires(preun): info-install

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

%package -n %libname
Summary:	Malaga shared library
Group:		System/Libraries
Provides:	lib%name = %version-%release

%description -n %libname
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.

This package contains the library needed to run programs dynamically
linked with Malaga.

%package -n %develname
Summary:	Headers and static libraries for Malaga development
Group:		Development/C
Requires:	%libname = %version
Provides:	lib%name-devel = %version-%release
Provides:	%name-devel = %version-%release
Obsoletes:	%{_lib}malaga7-devel

%description -n %develname
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.

This package contains the headers and static library that
programmers will need to develop applications which will use Malaga.

%prep
%setup -q
%apply_patches

%build
autoreconf -vfi
%configure2_5x \
	--disable-static
%make

%install
%makeinstall INSTALL_INFO=true

chrpath -d %{buildroot}%{_bindir}/* %{buildroot}%{_libdir}/*.so

#we don't want these
find %{buildroot} -name "*.la" -delete

%post
%_install_info %name

%preun
%_remove_install_info %name

%files
%doc CHANGES.txt README.txt
%{_bindir}/mal*
%{_datadir}/%{name}
%{_infodir}/%{name}*
%{_mandir}/man1/mal*

%files -n %libname
%doc README.txt
%{_libdir}/lib%{name}.so.%{major}*

%files -n %develname
%doc README.txt
%{_libdir}/lib%{name}.so
%{_includedir}/malaga.h


%changelog

* Sat Jan 12 2013 umeabot <umeabot> 7.12-9.mga3
+ Revision: 359337
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Wed Dec 26 2012 wally <wally> 7.12-8.mga3
+ Revision: 335517
- add patch to fix linking
- drop static build and .la files
- clean .spec

  + blino <blino>
    - rebuild to get info pages as xz instead of lzma

  + anssi <anssi>
    - clarify license tag

* Fri Jan 14 2011 anssi <anssi> 7.12-6.mga1
+ Revision: 17741
- remove old macros
- imported package malaga