Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > 32ba8ee7e5fce960394ec9a084cd198c > files > 1

squirrel-2.2.4-1mdv2010.1.src.rpm

%define oname SQUIRREL2
%define packagedir SQUIRREL2

%define major 0
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d

Summary:	The squirrel language
Name:		squirrel
Version:	2.2.4
Release:	%mkrel 1
License:	GPLv2+
Group:		Development/Other
URL:		http://squirrel-lang.org
Source:		http://ovh.dl.sourceforge.net/sourceforge/squirrel/%{name}_%{version}_stable.tar.bz2
Conflicts:	ispell
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot

%description
Squirrel is a light weight programming language 
featuring higher-order functions,classes/inheritance,
delegation,tail recursion,generators,cooperative 
threads,exception handling, reference counting and 
garbage collection on demand. C-like syntax.

%package -n %{develname}
Summary:	Header files and static libraries from %{name}
Group:		Development/Other
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%mklibname %{name} 0 -d

%description -n %{develname}
Libraries and includes files for
developing programs based on %name.

%prep
%setup -qn %{oname}

%build

perl -pi -e 's/\015$//' HISTORY
perl -pi -e 's/\015$//' README
perl -pi -e 's/\015$//' COPYRIGHT
perl -pi -e 's/\015$//' doc/*

%install
install -d -m755 %{buildroot}/%{_bindir}
install -d -m755 %{buildroot}/%{_libdir}/%{name}
install -d -m755 %{buildroot}/%{_docdir}/%{name}
install -d -m755 %{buildroot}/%{_includedir}/%{name}

%ifnarch ix86
%make sq64
%else
%make
%endif

install  ../%{packagedir}/bin/sq %{buildroot}/%{_bindir}
install  ../%{packagedir}/lib/*.a %{buildroot}/%{_libdir}/%{name}
install  ../%{packagedir}/doc/*  %{buildroot}/%{_docdir}/%{name}
install  ../%{packagedir}/include/* %{buildroot}/%{_includedir}

#correct wrong file end of line encoding 
perl -pi -e 's/\015$//' %{buildroot}/%{_includedir}/*

%clean
rm -rf %{buildroot}

%files
%defattr(644,root,root,755)
%doc %{_docdir}/%{name}
%attr(755,root,root) %{_bindir}/sq

%files -n %{develname}
%defattr(644,root,root,755)
%{_includedir}/sq*.h
%{_libdir}/%{name}/*


%changelog
* Sat Jan 02 2010 Frederik Himpe <fhimpe@mandriva.org> 2.2.4-1mdv2010.1
+ Revision: 485099
- update to new version 2.2.4

* Mon Sep 14 2009 Tomasz Pawel Gajc <tpg@mandriva.org> 2.2.3-1mdv2010.0
+ Revision: 440751
- update to new version 2.2.3

* Thu Sep 03 2009 Christophe Fergeau <cfergeau@mandriva.com> 2.2.2-2mdv2010.0
+ Revision: 427214
- rebuild

* Mon Oct 20 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 2.2.2-1mdv2009.1
+ Revision: 295753
- update to new version 2.2.2

* Wed Jun 18 2008 Thierry Vignaud <tvignaud@mandriva.com> 2.2-2mdv2009.0
+ Revision: 225474
- rebuild

* Mon Feb 18 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 2.2-1mdv2008.1
+ Revision: 171205
- new version

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Fri Dec 21 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 2.1.2-2mdv2008.1
+ Revision: 136102
- obsolete older devel package

* Thu Dec 20 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 2.1.2-1mdv2008.1
+ Revision: 135793
- drop patch 0
- fix building on x86_64
- new version
- fix docs
- set proper bits on files
- new devel library policy
- update url
- spec file clean
- new version

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


* Sun Jan 28 2007 Götz Waschk <waschk@mandriva.org> 2_0_5-4mdv2007.0
+ Revision: 114513
- Import squirrel

* Sun Jan 28 2007 Götz Waschk <waschk@mandriva.org> 2_0_5-4mdv2007.1
- unpack patch

* Sat Feb 04 2006 Sebastien Savarin <plouf@mandriva.org> 2_0_5-4mdk
- Fix build on x86_64 big thanks to couriousous

* Thu Feb 02 2006 Sebastien Savarin <plouf@mandriva.org> 2_0_5-3mdk
- prevent conflict with ispel

* Sun Dec 25 2005 Sebastien Savarin <plouf@mandriva.org> 2_0_5-2mdk
- Fix Group

* Sun Dec 18 2005 Sebastien Savarin <plouf@mandriva.org> 2_0_5-1mdk
- First Mandriva Linux release