Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 250a17ea228699829cd3222f2dd68faa > files > 2

cim-3.37-3mdv2009.0.src.rpm

%define _disable_ld_no_undefined 1

%define	name		cim
%define	version		3.37
%define rel     	3
%define release 	%mkrel %rel
%define	libname_orig	libcim
%define	major		3
%define	libname		%mklibname %{name} %{major}
%define	libname_devel	%mklibname %{name} -d

Summary:	Simula to C translator. Mother of all OO-languages
Name:		%{name}
Version:	%{version}
Release:	%{release}
Url:		ftp://ftp.ifi.uio.no/pub/cim/
#http://www.ifi.uio.no/~cim/cim.html
Source0:	ftp://ftp.ifi.uio.no/pub/cim/%{name}-%{version}.tar.bz2
License:	GPL
Group:		Development/Other
Requires:	%{libname} = %{version}
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%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: %{name}-devel
Provides: %{libname_orig}-devel
Obsoletes: %{libname}-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
%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};chmod +x libcim.so.%{major}.0.0

%clean 
rm -rf $RPM_BUILD_ROOT

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif

%post -n %{libname_devel}
%_install_info %{name}.info

%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%postun -n %{libname_devel}
%_remove_install_info %{name}.info

%files
%defattr(-, root, root)
%doc NEWS
%{_bindir}/*

%files -n %{libname}
%defattr(-, root, root)
%{_libdir}/*.so.%{major}*

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



%changelog
* Mon Aug 25 2008 Emmanuel Andry <eandry@mandriva.org> 3.37-3mdv2009.0
+ Revision: 276013
- apply devel policy
- check major

* Fri Jul 04 2008 Oden Eriksson <oeriksson@mandriva.com> 3.37-2mdv2009.0
+ Revision: 231852
- use _disable_ld_no_undefined to make it build

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Wed Jan 02 2008 Olivier Blin <oblin@mandriva.com> 3.37-1mdv2008.1
+ Revision: 140693
- restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request

* Wed Apr 25 2007 Adam Williamson <awilliamson@mandriva.com> 3.37-1mdv2008.0
+ Revision: 18329
- 3.37 (rebuild for new era)
- drop patch (no longer needed)
- clean spec


* Fri May 12 2006 Stefan van der Eijk <stefan@eijk.nu> 3.36-10mdk
- rebuild for sparc

* Sat Dec 31 2005 Mandriva Linux Team <http://www.mandrivaexpert.com/> 3.36-9mdk
- Rebuild

* Tue Aug 02 2005 Guillaume Bedot <littletux@mandriva.org> 3.36-8mdk
- changed buggy Patch0 (thanks to Gwenole Beauschene)
- use mkrel

* Sat Jul 30 2005 Guillaume Bedot <littletux@mandriva.org> 3.36-7mdk
- rebuild
- Patch0: allows to build with gcc4

* 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