%define name cim %define version 3.36 %define release 6mdk %define libname_orig libcim %define major 3 %define libname %mklibname %{name} %{major} %define libname_devel %mklibname %{name} %{major} -d Summary: Simula to C translator. Mother of all OO-languages. Name: %{name} Version: %{version} Release: %{release} Source0: ftp://ftp.ifi.uio.no/pub/cim/%{name}-%{version}.tar.bz2 License: GPL Group: Development/Other Requires: %{libname} = %{version} Packager: Daouda Lo <daouda@mandrakesoft.com> BuildRoot: %{_tmppath}/%name-%version-root %description Cim compiles Simula code to C and uses a C compiler like gcc to compile it further to machine-code. Simula was the first language with object-oriented features. The Simula language has features for quasi-parallel execution and a framework for doing simulations. %package -n %{libname} Summary: Gnu Cim libraries packages Group: Development/Other %description -n %{libname} This package contains the libraries needed to run programs dynamically linked with cim (the Gnu Simula Compiler) %package -n %{libname_devel} Summary: Headers for developing programs that will use cim Group: Development/Other Requires: %{libname} = %{version} Provides: %{libname_orig}-devel %description -n %{libname_devel} This package contains the headers that programmers will need to develop applications which will use cim. %prep %setup -q %build rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT %ifarch ia64 libtoolize --copy --force %endif #CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=-s ./configure --prefix=$RPM_BUILD_ROOT%{_prefix} --enable-dump=yes %configure --enable-dump=yes (cd src; make libdir=%{_libdir} includedir=%{_includedir}) %make all %install %makeinstall mandir=$RPM_BUILD_ROOT%{_mandir} infodir=$RPM_BUILD_ROOT%{_infodir} cd $RPM_BUILD_ROOT%{_libdir}; grep -v libdir libcim.la > libcim.la.tmp;\ echo "libdir='/usr/lib'" >> libcim.la.tmp; mv libcim.la.tmp libcim.la;\ chmod +x libcim.so.3.0.0 %clean rm -rf $RPM_BUILD_ROOT %post -n %{libname} -p /sbin/ldconfig %post -n %{libname_devel} %_install_info %{name}.info %postun -n %{libname} -p /sbin/ldconfig %postun -n %{libname_devel} %_remove_install_info %{name}.info %files %defattr(-, root, root) %doc NEWS %{_bindir}/* %files -n %{libname} %defattr(-, root, root) %{_libdir}/*.so.* %files -n %{libname_devel} %defattr(-, root, root) %{_libdir}/*.so %{_libdir}/*.a %{_libdir}/*.la %{_includedir}/cim.h %{_mandir}/*/* %{_infodir}/* %doc README doc/SIMULA-HISTORY AUTHORS COPYING ChangeLog TODO %changelog * Thu Sep 18 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 3.36-6mdk - fix deps * Sat Jul 12 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 3.36-5mdk - use %%mklibname - fix url to source - use %%configure and %%make macro * Wed Oct 17 2001 Daouda LO <daouda@mandrakesoft.com> 3.36-4mdk - s/Copyright/License * Fri Jul 6 2001 Daouda LO <daouda@mandrakesoft.com> 3.36-3mdk - s|Linux-Mandrake|Mandrake Linux| * Wed Apr 18 2001 Francis Galiegue <fg@mandrakesoft.com> 3.36-2mdk - libtoolize for ia64 - -n %{name}-%{version}use RPM_OPT_FLAGS - quiet %%setup * Mon Jan 22 2001 Daouda Lo <daouda@mandrakesoft.com> 3.36-1mdk - 3.36 - new lib policy * Mon Nov 27 2000 Daouda Lo <daouda@mandrakesoft.com> 3.24-2mdk - fix spelling in packager tag (silly bugzilla) . Thx gG ;-) * Tue Nov 21 2000 Daouda Lo <daouda@mandrakesoft.com> 3.24-1mdk - first mdk package . - add packager tag .