3 %bcond_without static_libs # static libraries
5 Summary: High level imperative/OO programming language
6 Summary(pl.UTF-8): Wysokopoziomowy imperatywny/zorientowany obiektowo język programowania
11 Group: Development/Tools
12 Source0: http://downloads.sourceforge.net/squirrel/%{name}_%{version}_stable.tar.gz
13 # Source0-md5: 35f97d933d46e2b5d54e0c0f2eccfa4a
14 Patch0: %{name}-autotools.patch
15 Patch1: %{name}-mem.patch
16 URL: http://squirrel-lang.org/
17 BuildRequires: autoconf >= 2.59
18 BuildRequires: automake
19 BuildRequires: libstdc++-devel
20 BuildRequires: libtool >= 2:1.5
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Squirrel is a high level imperative/OO programming language, designed
25 to be a powerful scripting tool that fits in the size, memory
26 bandwidth, and real-time requirements of applications like games.
28 %description -l pl.UTF-8
29 Squirrel to wysokopoziomowy, imperatywny, zorientowany obiektowo język
30 programowania, zaprojektowany jako potężne narzędzie do skryptów,
31 nadający się pod względem rozmiaru, wykorzystania pamięci i wymagań
32 czasu rzeczywistego do takich zastosowań, jak gry.
35 Summary: Development files needed to use Squirrel libraries
36 Summary(pl.UTF-8): Pliki programistyczne potrzebne do korzystania z bibliotek Squirrela
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
41 Development files needed to use Squirrel libraries.
43 %description devel -l pl.UTF-8
44 Pliki programistyczne potrzebne do korzystania z bibliotek Squirrela.
47 Summary: Static Squirrel libraries
48 Summary(pl.UTF-8): Statyczne biblioteki Squirrela
49 Group: Development/Libraries
50 Requires: %{name}-devel = %{version}-%{release}
53 Static Squirrel libraries.
55 %description static -l pl.UTF-8
56 Statyczne biblioteki Squirrela.
64 # fix extension for autotools
65 %{__mv} sq/sq.c sq/sq.cpp
75 %{!?with_static_libs:--disable-static}
79 rm -rf $RPM_BUILD_ROOT
81 %{__make} -C SQUIRREL2 install \
82 DESTDIR=$RPM_BUILD_ROOT
85 rm -rf $RPM_BUILD_ROOT
87 %post -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
91 %defattr(644,root,root,755)
92 %doc SQUIRREL2/{README,HISTORY,COPYRIGHT}
93 %attr(755,root,root) %{_bindir}/sq
94 %attr(755,root,root) %{_libdir}/libsqstdlib-%{version}.so
95 %attr(755,root,root) %{_libdir}/libsquirrel-%{version}.so
98 %defattr(644,root,root,755)
99 %doc SQUIRREL2/doc/*.pdf
100 %attr(755,root,root) %{_libdir}/libsqstdlib.so
101 %attr(755,root,root) %{_libdir}/libsquirrel.so
102 %{_libdir}/libsqstdlib.la
103 %{_libdir}/libsquirrel.la
104 %{_includedir}/squirrel
105 %{_pkgconfigdir}/squirrel.pc
107 %if %{with static_libs}
109 %defattr(644,root,root,755)
110 %{_libdir}/libsquirrel.a
111 %{_libdir}/libsqstdlib.a