Репозитории ALT
Последнее обновление в Сб, 06 июня 2020, 00:50:49 +0000 | Пакетов: 12913
en ru
Исходные пакеты в ветвях
свернуть окно
  • 20080330-alt2_9.2.2.qa1
  • 20080330-alt2_9.2.2.qa1
  • 20080330-alt2_9.2.2.qa1
  • 20080330-alt2_9.2.2.qa1
  • 20080330-alt1_6
Группа :: Система/Библиотеки
Исходный пакет: Io-language
Необработанный spec-файл

BuildRequires: gcc-c++
# Copyright (c) 2007 oc2pus <toni@links2linux.de>

# Copyright (c) 2007-2009 Hans de Goede <hdegoede@redhat.com>

# This file and all modifications and additions to the pristine

# package are under the same license as the package itself.


# Please submit bugfixes or comments to us at the above email addresses

%define _version 2008.03.30

Name: Io-language
Version: 20080330
Release: alt1_6
Summary: Io is a small, prototype-based programming language
Group: System/Libraries
License: BSD
URL: http://www.iolanguage.com/
# To get this file do wget http://github.com/stevedekorte/io/tarball/%{_version}

Source0: %{name}-%{version}.tar.gz
Patch0: AddonBuilder_io_libdir.patch
Patch1: Io-2007-10-10-gcc43.patch
Patch2: Io-2007-10-10-missing-protos.patch
Patch3: Io-language-20080330-py27.patch
BuildRequires: e2fsprogs-devel libe2fs-devel libfreetype-devel libfreeglut-devel libgmp-devel libgmp_cxx-devel
BuildRequires: libedit-devel libevent-devel libjpeg-devel libpng-devel
BuildRequires: libsamplerate-devel libsndfile-devel libtiffxx-devel libtiff-devel
BuildRequires: libxml2-devel MySQL-devel libode-devel libOpenSP-devel libpcre-devel
BuildRequires: libportaudio2-devel postgresql-devel python-devel libsoundtouch-devel
BuildRequires: libsqlite3-devel taglib-devel libncurses-devel libcairo-devel
BuildRequires: libuuid-devel libreadline-devel
Source44: import.info
Patch33: Io-language-20080330-alt-open-mode.patch

Io is a small, prototype-based programming language. The ideas in
Io are mostly inspired by Smalltalk (all values are objects), Self
(prototype-based), NewtonScript (differential inheritance), Act1
(actors and futures for concurrency), LISP (code is a runtime
inspectable/modifiable tree) and Lua (small, embeddable).

%package devel
Summary: Development files for %{name}
Group: Development/C
Requires: %{name} = %{version}-%{release}

%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%package graphics-and-sound
Summary: Io graphics and sound support
Group: System/Libraries
Requires: %{name} = %{version}-%{release}

%description graphics-and-sound
Io graphics and sound support, this package includes IO bindings needed to
write Io programs which want to display graphics and / or produce sound
(OpenGL, Image loading, PortAudio, etc.).

%package extras
Summary: Io extra addons
Group: System/Libraries
Requires: %{name} = %{version}-%{release}

%description extras
This package includes addons for Io which require additional libraries to be
installed. This includes the Python and Socket addons.

%package postgresql
Summary: Io postgresql bindings
Group: System/Libraries
Requires: %{name} = %{version}-%{release}

%description postgresql
Io postgresql bindings.

%package mysql
Summary: Io mysql bindings
Group: System/Libraries
Requires: %{name} = %{version}-%{release}

%description mysql
Io mysql bindings

%setup -q -n stevedekorte-io-6a5f734
%patch0 -p1
%patch1 -p1 -b .gcc43
%patch2 -p1 -b .protos
%patch3 -p1
sed -i 's|/lib/io/addons|/%{_lib}/io/addons|g' libs/iovm/io/AddonLoader.io
# building Io while Io-language-devel is installed results in binaries getting

# linked against the installed version, instead of the just build one <sigh>

if [ -f /usr/include/io/IoVM.h ]; then
echo "Error building Io while Io-language-devel is installed does not work!"
exit 1
# libstdc++.so is searched and not found ...

sed -i -e 's|dependsOnLib("stdc++")||g' addons/SoundTouch/build.io
# remove add-ons which we do not want to build ever

rm -fr addons/AVCodec
# for %doc

mv addons/OpenGL/docs OpenGL
iconv -f MACINTOSH -t UTF8 libs/basekit/license/bsd_license.txt > license.txt
sed -i 's/\r//g' license.txt `find OpenGL -type f`
# for debuginfo

chmod -x addons/NullAddon/source/IoNullAddon.?
%patch33 -p1
# alt pcre

sed -i s,pcre.h,pcre/pcre.h, addons/Regex/source/Regex.h addons/Regex/build.io

make %{?_smp_mflags} INSTALL_PREFIX=%{_prefix} OPTIMIZE="$RPM_OPT_FLAGS" \
DLL_COMMAND='-shared -Wl,-soname="libiovmall.so.2"'

# upstreams make install installs lots of unwanted parts of the addons, so DIY

mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_libdir}/io/addons
mkdir -p $RPM_BUILD_ROOT%{_includedir}
install -m 755 _build/binaries/io $RPM_BUILD_ROOT%{_bindir}
install -m 755 _build/dll/libiovmall.so \
ln -s libiovmall.so.2 $RPM_BUILD_ROOT%{_libdir}/libiovmall.so
cp -a _build/headers $RPM_BUILD_ROOT%{_includedir}/io
# install the addons

for i in addons/*; do
# skip unbuild addons

if [ -d $i/_build ]; then
ADDON=`basename $i`
mkdir -p $RPM_BUILD_ROOT%{_libdir}/io/addons/$ADDON/_build/dll
install -m 755 $i/_build/dll/libIo$ADDON.so \
install -p -m 644 $i/depends $RPM_BUILD_ROOT%{_libdir}/io/addons/$ADDON
# Io doesn't find the addon if this file isn't present

touch $RPM_BUILD_ROOT%{_libdir}/io/addons/$ADDON/build.io

%doc license.txt
%dir %{_libdir}/io
%dir %{_libdir}/io/addons

%files devel
%doc docs/*

%files graphics-and-sound
%doc OpenGL

%files extras

%files postgresql

%files mysql

* Thu Jul 21 2011 Igor Vlasenko <viy at altlinux.ru> 20080330-alt1_6
- initial release by fcimport

Проект Geyser основан на коде из проекта Prometheus 2.0, который был доступен по лицензии MIT