| 1 |
# Copyright (c) 2007 oc2pus <toni@links2linux.de>
|
| 2 |
# Copyright (c) 2007-2009 Hans de Goede <hdegoede@redhat.com>
|
| 3 |
# This file and all modifications and additions to the pristine
|
| 4 |
# package are under the same license as the package itself.
|
| 5 |
#
|
| 6 |
# Please submit bugfixes or comments to us at the above email addresses
|
| 7 |
|
| 8 |
%define _version 2007-10-10
|
| 9 |
|
| 10 |
Name: Io-language
|
| 11 |
Version: 20071010
|
| 12 |
Release: 11%{?dist}
|
| 13 |
Summary: Io is a small, prototype-based programming language
|
| 14 |
Group: System Environment/Libraries
|
| 15 |
License: BSD
|
| 16 |
URL: http://www.iolanguage.com/
|
| 17 |
Source0: http://io.urbanape.com/release/Io-%{_version}.tar.gz
|
| 18 |
Patch0: AddonBuilder_io_libdir.patch
|
| 19 |
Patch1: Io-2007-10-10-gcc43.patch
|
| 20 |
Patch2: Io-2007-10-10-missing-protos.patch
|
| 21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
| 22 |
BuildRequires: e2fsprogs-devel freetype-devel freeglut-devel gmp-devel
|
| 23 |
BuildRequires: libedit-devel libevent-devel libjpeg-devel libpng-devel
|
| 24 |
BuildRequires: libsamplerate-devel libsndfile-devel libtiff-devel
|
| 25 |
BuildRequires: libxml2-devel mysql-devel ode-devel opensp-devel pcre-devel
|
| 26 |
BuildRequires: portaudio-devel postgresql-devel python-devel soundtouch-devel
|
| 27 |
BuildRequires: sqlite-devel taglib-devel ncurses-devel cairo-devel
|
| 28 |
|
| 29 |
%description
|
| 30 |
Io is a small, prototype-based programming language. The ideas in
|
| 31 |
Io are mostly inspired by Smalltalk (all values are objects), Self
|
| 32 |
(prototype-based), NewtonScript (differential inheritance), Act1
|
| 33 |
(actors and futures for concurrency), LISP (code is a runtime
|
| 34 |
inspectable/modifiable tree) and Lua (small, embeddable).
|
| 35 |
|
| 36 |
|
| 37 |
%package devel
|
| 38 |
Summary: Development files for %{name}
|
| 39 |
Group: Development/Libraries
|
| 40 |
Requires: %{name} = %{version}-%{release}
|
| 41 |
|
| 42 |
%description devel
|
| 43 |
The %{name}-devel package contains libraries and header files for
|
| 44 |
developing applications that use %{name}.
|
| 45 |
|
| 46 |
|
| 47 |
%package graphics-and-sound
|
| 48 |
Summary: Io graphics and sound support
|
| 49 |
Group: System Environment/Libraries
|
| 50 |
Requires: %{name} = %{version}-%{release}
|
| 51 |
|
| 52 |
%description graphics-and-sound
|
| 53 |
Io graphics and sound support, this package includes IO bindings needed to
|
| 54 |
write Io programs which want to display graphics and / or produce sound
|
| 55 |
(OpenGL, Image loading, PortAudio, etc.).
|
| 56 |
|
| 57 |
|
| 58 |
%package extras
|
| 59 |
Summary: Io extra addons
|
| 60 |
Group: System Environment/Libraries
|
| 61 |
Requires: %{name} = %{version}-%{release}
|
| 62 |
|
| 63 |
%description extras
|
| 64 |
This package includes addons for Io which require additional libraries to be
|
| 65 |
installed. This includes the Python and Socket addons.
|
| 66 |
|
| 67 |
|
| 68 |
%package postgresql
|
| 69 |
Summary: Io postgresql bindings
|
| 70 |
Group: System Environment/Libraries
|
| 71 |
Requires: %{name} = %{version}-%{release}
|
| 72 |
|
| 73 |
%description postgresql
|
| 74 |
Io postgresql bindings.
|
| 75 |
|
| 76 |
|
| 77 |
%package mysql
|
| 78 |
Summary: Io mysql bindings
|
| 79 |
Group: System Environment/Libraries
|
| 80 |
Requires: %{name} = %{version}-%{release}
|
| 81 |
|
| 82 |
%description mysql
|
| 83 |
Io mysql bindings
|
| 84 |
|
| 85 |
|
| 86 |
%prep
|
| 87 |
%setup -q -n Io-%{_version}
|
| 88 |
%patch0 -p1
|
| 89 |
%patch1 -p1
|
| 90 |
%patch2 -p1
|
| 91 |
sed -i 's|/lib/io/addons|/%{_lib}/io/addons|g' libs/iovm/io/AddonLoader.io
|
| 92 |
# building Io while Io-language-devel is installed results in binaries getting
|
| 93 |
# linked against the installed version, instead of the just build one <sigh>
|
| 94 |
if [ -f /usr/include/io/IoVM.h ]; then
|
| 95 |
echo "Error building Io while Io-language-devel is installed does not work!"
|
| 96 |
exit 1
|
| 97 |
fi
|
| 98 |
# libstdc++.so is searched and not found ...
|
| 99 |
sed -i -e 's|dependsOnLib("stdc++")||g' addons/SoundTouch/build.io
|
| 100 |
# remove add-ons which we do not which to build ever
|
| 101 |
rm -fr addons/AVCodec
|
| 102 |
# for %doc
|
| 103 |
rm docs/guide_files/.htmle
|
| 104 |
mv addons/OpenGL/docs OpenGL
|
| 105 |
iconv -f MACINTOSH -t UTF8 libs/basekit/license/bsd_license.txt > license.txt
|
| 106 |
sed -i 's/\r//g' license.txt `find OpenGL -type f`
|
| 107 |
|
| 108 |
|
| 109 |
%build
|
| 110 |
make %{?_smp_mflags} INSTALL_PREFIX=%{_prefix} OPTIMIZE="$RPM_OPT_FLAGS" \
|
| 111 |
DLL_COMMAND='-shared -Wl,-soname="libiovmall.so.1"'
|
| 112 |
|
| 113 |
|
| 114 |
%install
|
| 115 |
rm -rf $RPM_BUILD_ROOT
|
| 116 |
# upstreams make install installs lots of unwanted parts of the addons, so DIY
|
| 117 |
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
| 118 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/io/addons
|
| 119 |
mkdir -p $RPM_BUILD_ROOT%{_includedir}
|
| 120 |
install -m 755 _build/binaries/io $RPM_BUILD_ROOT%{_bindir}
|
| 121 |
install -m 755 _build/dll/libiovmall.so \
|
| 122 |
$RPM_BUILD_ROOT%{_libdir}/libiovmall.so.0
|
| 123 |
ln -s libiovmall.so.0 $RPM_BUILD_ROOT%{_libdir}/libiovmall.so
|
| 124 |
cp -a _build/headers $RPM_BUILD_ROOT%{_includedir}/io
|
| 125 |
# install the addons
|
| 126 |
for i in addons/*; do
|
| 127 |
# skip unbuild addons
|
| 128 |
if [ -d $i/_build ]; then
|
| 129 |
ADDON=`basename $i`
|
| 130 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/io/addons/$ADDON/_build/dll
|
| 131 |
install -m 755 $i/_build/dll/libIo$ADDON.so \
|
| 132 |
$RPM_BUILD_ROOT%{_libdir}/io/addons/$ADDON/_build/dll
|
| 133 |
install -p -m 644 $i/depends $RPM_BUILD_ROOT%{_libdir}/io/addons/$ADDON
|
| 134 |
# Io doesn't find the addon if this file isn't present
|
| 135 |
touch $RPM_BUILD_ROOT%{_libdir}/io/addons/$ADDON/build.io
|
| 136 |
fi
|
| 137 |
done
|
| 138 |
|
| 139 |
|
| 140 |
%clean
|
| 141 |
rm -rf $RPM_BUILD_ROOT
|
| 142 |
|
| 143 |
|
| 144 |
%post -p /sbin/ldconfig
|
| 145 |
|
| 146 |
%postun -p /sbin/ldconfig
|
| 147 |
|
| 148 |
|
| 149 |
%files
|
| 150 |
%defattr(-,root,root,-)
|
| 151 |
%doc license.txt
|
| 152 |
%{_bindir}/io
|
| 153 |
%{_libdir}/libiovmall.so.0
|
| 154 |
%dir %{_libdir}/io
|
| 155 |
%dir %{_libdir}/io/addons
|
| 156 |
%{_libdir}/io/addons/AsyncRequest
|
| 157 |
%{_libdir}/io/addons/BigNum
|
| 158 |
%{_libdir}/io/addons/Blowfish
|
| 159 |
%{_libdir}/io/addons/Box
|
| 160 |
%{_libdir}/io/addons/Cairo
|
| 161 |
%{_libdir}/io/addons/CGI
|
| 162 |
%{_libdir}/io/addons/ContinuedFraction
|
| 163 |
%{_libdir}/io/addons/Curses
|
| 164 |
%{_libdir}/io/addons/Flux
|
| 165 |
%{_libdir}/io/addons/Fnmatch
|
| 166 |
%{_libdir}/io/addons/LZO
|
| 167 |
%{_libdir}/io/addons/Libxml2
|
| 168 |
%{_libdir}/io/addons/Loki
|
| 169 |
%{_libdir}/io/addons/MD5
|
| 170 |
%{_libdir}/io/addons/NotificationCenter
|
| 171 |
%{_libdir}/io/addons/Random
|
| 172 |
%{_libdir}/io/addons/Range
|
| 173 |
%{_libdir}/io/addons/Rational
|
| 174 |
%{_libdir}/io/addons/Regex
|
| 175 |
%{_libdir}/io/addons/SHA1
|
| 176 |
%{_libdir}/io/addons/SQLite3
|
| 177 |
%{_libdir}/io/addons/SqlDatabase
|
| 178 |
%{_libdir}/io/addons/Syslog
|
| 179 |
%{_libdir}/io/addons/SystemCall
|
| 180 |
%{_libdir}/io/addons/Thread
|
| 181 |
%{_libdir}/io/addons/UUID
|
| 182 |
%{_libdir}/io/addons/User
|
| 183 |
%{_libdir}/io/addons/Zlib
|
| 184 |
|
| 185 |
%files devel
|
| 186 |
%defattr(-,root,root,-)
|
| 187 |
%doc docs/guide.html docs/guide.pdf docs/guide_files
|
| 188 |
%{_libdir}/libiovmall.so
|
| 189 |
%{_includedir}/io
|
| 190 |
|
| 191 |
%files graphics-and-sound
|
| 192 |
%defattr(-,root,root,-)
|
| 193 |
%doc OpenGL
|
| 194 |
%{_libdir}/io/addons/Font
|
| 195 |
%{_libdir}/io/addons/Image
|
| 196 |
%{_libdir}/io/addons/LibSndFile
|
| 197 |
%{_libdir}/io/addons/OpenGL
|
| 198 |
%{_libdir}/io/addons/PortAudio
|
| 199 |
%{_libdir}/io/addons/TagLib
|
| 200 |
|
| 201 |
%files extras
|
| 202 |
%defattr(-,root,root,-)
|
| 203 |
%{_libdir}/io/addons/Python
|
| 204 |
%{_libdir}/io/addons/SampleRateConverter
|
| 205 |
%{_libdir}/io/addons/Socket
|
| 206 |
%{_libdir}/io/addons/SoundTouch
|
| 207 |
|
| 208 |
%files postgresql
|
| 209 |
%defattr(-,root,root,-)
|
| 210 |
%{_libdir}/io/addons/Postgre*
|
| 211 |
|
| 212 |
%files mysql
|
| 213 |
%defattr(-,root,root,-)
|
| 214 |
%{_libdir}/io/addons/MySQL
|
| 215 |
|
| 216 |
|
| 217 |
%changelog
|
| 218 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20071010-11
|
| 219 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
| 220 |
|
| 221 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20071010-10
|
| 222 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
| 223 |
|
| 224 |
* Sun Feb 15 2009 Hans de Goede <hdegoede@redhat.com> - 20071010-9
|
| 225 |
- rebuild for new soundtouch
|
| 226 |
|
| 227 |
* Sat Jan 24 2009 Caolán McNamara <caolanm@redhat.com> - 20071010-8
|
| 228 |
- rebuild for dependencies
|
| 229 |
|
| 230 |
* Sun Nov 30 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 20071010-7
|
| 231 |
- Rebuild for Python 2.6
|
| 232 |
|
| 233 |
* Sun Jun 29 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 20071010-6
|
| 234 |
- Rebuild for new libevent
|
| 235 |
|
| 236 |
* Sun Mar 30 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 20071010-5
|
| 237 |
- Fix missing prototype compiler warnings
|
| 238 |
|
| 239 |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 20071010-4
|
| 240 |
- Autorebuild for GCC 4.3
|
| 241 |
|
| 242 |
* Thu Jan 24 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 20071010-3
|
| 243 |
- Rebuild for new libevent
|
| 244 |
|
| 245 |
* Sat Jan 12 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 20071010-2
|
| 246 |
- Fix compilation with gcc 4.3
|
| 247 |
- Enable Cairo addon
|
| 248 |
|
| 249 |
* Sun Nov 11 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 20071010-1
|
| 250 |
- New (official!) upstream release 2007-10-10
|
| 251 |
- API changed, soname bumped to libiovmall.so.1
|
| 252 |
|
| 253 |
* Wed Sep 12 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 20070710-2
|
| 254 |
- Reshuffle which docs to include and in which subpackages to include them
|
| 255 |
(bz 284151)
|
| 256 |
|
| 257 |
* Sun Sep 9 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 20070710-1
|
| 258 |
- Adapted Packman spec file for Fedora
|
| 259 |
|
| 260 |
* Sat Sep 08 2007 Toni Graffy <toni@links2linux.de> 20070528-0.pm.2
|
| 261 |
- openSUSE-10.3 build, using libode(-devel)
|
| 262 |
|
| 263 |
* Sun Jun 03 2007 Toni Graffy <toni@links2linux.de> 20070528-0.pm.1
|
| 264 |
- update to 20070528
|
| 265 |
- added patches for 64bit (thx Detlef)
|
| 266 |
- switched to portaudio
|
| 267 |
|
| 268 |
* Sun May 27 2007 Toni Graffy <toni@links2linux.de> 20070430-0.pm.1
|
| 269 |
- initial package 20070430
|