%define name malaga %define version 7.12 %define rel 1 %define major 7 %define libname %mklibname %name %major %define develname %mklibname %name -d Summary: A grammar development environment for natural languages Name: %name Version: %version Release: %mkrel %rel License: GPL Group: Text tools URL: http://home.arcor.de/bjoern-beutel/malaga/ Source: http://home.arcor.de/bjoern-beutel/malaga/%name-%version.tgz BuildRoot: %{_tmppath}/%{name}-root 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 %build %configure2_5x --disable-rpath %make %install rm -rf %{buildroot} %makeinstall INSTALL_INFO=true chrpath -d %{buildroot}%{_bindir}/* %{buildroot}%{_libdir}/*.so %clean rm -rf %{buildroot} %if %mdkversion < 200900 %post -n %libname -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %libname -p /sbin/ldconfig %endif %post %_install_info %name %preun %_remove_install_info %name %files %defattr(-,root,root) %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}.a %{_libdir}/lib%{name}.la %{_libdir}/lib%{name}.so %{_includedir}/malaga.h %changelog * Mon Jun 09 2008 Pixel <pixel@mandriva.com> 7.12-1mdv2009.0 + Revision: 217193 - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers * Mon Mar 03 2008 Anssi Hannula <anssi@mandriva.org> 7.12-1mdv2008.1 + Revision: 178193 - new version - drop rpaths * Thu Jan 03 2008 Olivier Blin <oblin@mandriva.com> 7.11-1mdv2008.1 + Revision: 140944 - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Mon Jul 09 2007 Anssi Hannula <anssi@mandriva.org> 7.11-1mdv2008.0 + Revision: 50739 - 7.11 - apply new devel policy * Sun Oct 29 2006 Anssi Hannula <anssi@mandriva.org> 7.9-2mdv2007.0 + Revision: 73660 - add man pages - 7.9 - Import malaga * Sun Aug 13 2006 Anssi Hannula <anssi@mandriva.org> 7.5-1mdv2007.0 - initial Mandriva release