Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 27fd773c1a604803b9a3b02bbee32c76 > files > 2

dyalog-1.10.6-7mdk.src.rpm

%define name	dyalog
%define Name	DyALog
%define version 1.10.6
%define release 7mdk

%if %{mdkversion} < 1010
	%define __libtoolize /bin/true
%endif

Name:		%{name}
Version:	%{version}
Release:	%{release}
Summary:	Compiler for tabular execution of logic programs
Summary(fr):	Compilateur pour l'execution tabulaire de programmes logiques
License:	GPL
Group:		Sciences/Computer science
Source:		ftp://ftp.inria.fr/INRIA/Projects/Atoll/Eric.Clergerie/DyALog/%{Name}-%{version}.tar.bz2
Url:		http://atoll.inria.fr/~clerger
BuildRequires:	libgc-devel
BuildRequires:	perl-Test-Cmd
BuildRequires:	perl-Test-Simple
Requires:	automake1.9
Buildroot:	%{_tmppath}/%{name}-%{version}

%description
DyALog is an experimental compiler of logic programs and grammars
oriented toward a tabular execution (.i.e., where subcomputations are
shared when possible by storing traces of them in a table). It is
useful to build efficient parsers for highly ambiguous and recursive
grammars for Natural Language processing.

%description -l fr
DyALog est un compilateur experimental de grammaires et programmes
logiques concu pour assurer une evaluation tabulaire (c.a.d où les
sous-calculs sont réutilisés quand c'est possible grâce à un stockage
de traces dans une table). Ce compilateur est surtout utile pour
construire des analyseurs syntaxiques efficaces pour des grammaires
hautement ambiguës et récursives dans le cadre du traitement de la
langue naturelle.

%prep
%setup -q -n %{Name}-%{version}

%build
%configure2_5x
%make CFLAGS="$RPM_OPT_FLAGS" CCASFLAGS="$RPM_OPT_FLAGS"

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std
%make check

%if %{mdkversion} >= 1010
install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d
cat >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/%{name}.conf <<EOF
%{_libdir}/DyALog
EOF
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%post
%_install_info %{name}.info
%if %{mdkversion} < 1010
cat %{_sysconfdir}/ld.so.conf<<EOF
%{_libdir}/DyALog
EOF
%endif
/sbin/ldconfig

%preun
%_remove_install_info %{name}.info

%postun
%if %{mdkversion} < 1010
perl -pi -e 's|^%{_libdir}/DyALog\n||' %{_sysconfdir}/ld.so.conf
%{_libdir}/DyALog
%endif
/sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS COPYING INSTALL NEWS README
%if %{mdkversion} >= 1010
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/%{name}.conf
%endif
%{_bindir}/*
%{_infodir}/dyalog*
%{_libdir}/DyALog
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/aclocal/%{name}.m4

%changelog
* Thu Dec 16 2004 Guillaume Rousse <guillomovitch@mandrake.org> 1.10.6-7mdk 
- requires automake1.9

* Wed Dec 15 2004 Guillaume Rousse <guillomovitch@mandrake.org> 1.10.6-6mdk
- also fix ld.so path management on 10.0

* Wed Dec 15 2004 Guillaume Rousse <guillomovitch@mandrake.org> 1.10.6-5mdk
- fix 10.0 build  

* Mon Dec 06 2004 Guillaume Rousse <guillomovitch@mandrake.org> 1.10.6-4mdk 
- fix ld.so path modification

* Mon Dec 06 2004 Guillaume Rousse <guillomovitch@mandrake.org> 1.10.6-3mdk 
- add %{_libdir}/DyALog to ld.so path

* Mon Dec 06 2004 Guillaume Rousse <guillomovitch@mandrake.org> 1.10.6-2mdk 
- no need for autoconf patch for enforcing proper optimisations

* Mon Dec 06 2004 Guillaume Rousse <guillomovitch@mandrake.org> 1.10.6-1mdk
- New release 1.10.6
- rpmbuilupdate aware

* Tue Nov 23 2004 Guillaume Rousse <guillomovitch@mandrake.org> 1.10.5-1mdk 
- new release
- enforce proper optimisations

* Mon Feb 23 2004 Guillaume Rousse <guillomovitch@mandrake.org> 1.10.4-1mdk
- first mdk release