squeak-vm/squeak-vm.spec

100 lines
3.4 KiB
RPMSpec
Raw Normal View History

%define vmver %(echo %version | cut -d. -f1-3)
%define rev %(echo %version | cut -d. -f4)
Name: squeak-vm
Version: 4.10.2.2614
Release: 1mamba
Summary: A full-featured implementation of the Smalltalk programming language and environment
Group: Applications/Development
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.squeakvm.org
Source: http://www.squeakvm.org/unix/release/Squeak-%{version}-src.tar.gz
Patch0: squeak-vm-4.10.2.2614-fix-cmake.patch
Patch1: squeak-vm-4.10.2.2614-format-security.patch
Patch2: squeak-vm-4.10.2.2614-gcc-14.patch
Patch3: squeak-vm-4.10.2.2614-squeak-init-fix.patch
Patch4: squeak-vm-4.10.2.2614-dprintf.patch
Patch5: squeak-vm-4.10.2.2614-alsa-fixes.patch
License: MIT, Apache License 2.0
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libICE-devel
BuildRequires: libSM-devel
BuildRequires: libX11-devel
BuildRequires: libXext-devel
BuildRequires: libXrender-devel
BuildRequires: libalsa-devel
BuildRequires: libaudio-devel
BuildRequires: libcairo-devel
BuildRequires: libdbus-devel
BuildRequires: libffi-devel
BuildRequires: libfreetype-devel
BuildRequires: libglib-devel
BuildRequires: libglu-devel
BuildRequires: libglvnd-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libnsl-devel
BuildRequires: libpango-devel
BuildRequires: libpulseaudio-devel
BuildRequires: libuuid-devel
## AUTOBUILDREQ-END
Obsoletes: Squeak < 4.10.2-2mamba
%description
Squeak is a full-featured implementation of the Smalltalk programming language and environment based on (and largely compatible with) the original Smalltalk-80 system. Squeak has very powerful 2- and 3-D graphics, sound, video, MIDI, animation and other multimedia capabilities -- and one of the most impressive development environments ever created. It also includes a customisable framework for creating dynamic HTTP servers and interactively extensible Web sites. The entire Squeak system is open source software, distributed freely with a liberal license.
%debug_package
%prep
%setup -q -n Squeak-%{version}-src
%patch 0 -p1 -b .fix-cmake
%patch 1 -p1 -b .format-security
%patch 2 -p1 -b .gcc-14
%patch 3 -p1 -b .squeak-init-fix
%patch 4 -p1 -b .dprintf
%patch 5 -p2 -b .alsa-fixes
# Fix libdir
sed -i 's|libdir="${prefix}/lib/squeak"|libdir="%{_libdir}/squeak"|' unix/cmake/squeak.in
%build
./unix/cmake/configure \
--prefix=%{_prefix} \
--without-Mpeg3Plugin \
--with-x \
--enable-mpg-mmx
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/squeak
%{_bindir}/squeak.sh
%dir %{_libdir}/squeak
%dir %{_libdir}/squeak/%{vmver}-%{rev}
%{_libdir}/squeak/%{vmver}-%{rev}/ckformat
%{_libdir}/squeak/%{vmver}-%{rev}/so.*
%{_libdir}/squeak/%{vmver}-%{rev}/squeakvm
%{_mandir}/man1/squeak.1*
%doc unix/doc/LICENSE
%changelog
* Fri Dec 06 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 4.10.2.2614-1mamba
- update to 4.10.2.2614
- source renamed from Squeak to squeak-vm
* Wed Nov 21 2012 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 4.10.2-1mamba
- update to 4.10.2
- fixed the specfile
* Sun May 06 2012 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 4.4.7-1mamba
- package created by autospec