rpms/Io-language/F-7 AddonBuilder_io_libdir.patch, NONE, 1.1 Io-language.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Hans de Goede (jwrdegoede) fedora-extras-commits at redhat.com
Thu Sep 13 18:26:25 UTC 2007


Author: jwrdegoede

Update of /cvs/extras/rpms/Io-language/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18810

Modified Files:
	.cvsignore sources 
Added Files:
	AddonBuilder_io_libdir.patch Io-language.spec 
Log Message:
* Wed Sep 12 2007 Hans de Goede <j.w.r.degoede at hhs.nl> 20070710-2
- Reshuffle which docs to include and in which subpackages to include them
  (bz 284151)


AddonBuilder_io_libdir.patch:

--- NEW FILE AddonBuilder_io_libdir.patch ---
--- Io-2007-04-30/build/AddonBuilder.io.orig	2007-04-28 15:09:52.000000000 +0200
+++ Io-2007-04-30/build/AddonBuilder.io	2007-05-29 23:01:38.000000000 +0200
@@ -58,6 +58,9 @@
 	libSearchPaths := List clone
 	appendLibSearchPath := method(v, if(File clone setPath(v) exists, libSearchPaths appendIfAbsent(v)))
 	searchPrefixes foreach(searchPrefix, appendLibSearchPath(searchPrefix .. "/lib"))
+	searchPrefixes foreach(searchPrefix, appendLibSearchPath(searchPrefix .. "/lib64"))
+	searchPrefixes foreach(searchPrefix, appendLibSearchPath(searchPrefix .. "/lib/mysql"))
+	searchPrefixes foreach(searchPrefix, appendLibSearchPath(searchPrefix .. "/lib64/mysql"))
 
 	debs    := Map clone
 	ebuilds := Map clone


--- NEW FILE Io-language.spec ---
# Copyright (c) 2007 oc2pus <toni at links2linux.de>
# Copyright (c) 2007 Hans de Goede <j.w.r.degoede at hhs.nl>
# 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 2007-07-10
 
Name:           Io-language
Version:        20070710
Release:        2%{?dist}
Summary:        Io is a small, prototype-based programming language
Group:          System Environment/Libraries
License:        BSD
URL:            http://www.iolanguage.com/
# TnL uses a more recent snapshot then upstream has made available in snapshot
# form. TnL's version also includes some fixes which stop TnL from crashing.
Source0:        http://tnlgame.net/downloads/tnl/070827/Io-%{_version}.tar.gz
Patch0:         AddonBuilder_io_libdir.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  e2fsprogs-devel freetype-devel freeglut-devel gmp-devel
BuildRequires:  libedit-devel libevent-devel libjpeg-devel libpng-devel
BuildRequires:  libsamplerate-devel libsndfile-devel libtiff-devel
BuildRequires:  libxml2-devel mysql-devel ode-devel opensp-devel pcre-devel
BuildRequires:  portaudio-devel postgresql-devel python-devel  soundtouch-devel
BuildRequires:  sqlite-devel taglib-devel

%description
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/Libraries
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 Environment/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 Environment/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 Environment/Libraries
Requires:       %{name} = %{version}-%{release}

%description postgresql
Io postgresql bindings.


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

%description mysql
Io mysql bindings


%prep
%setup -q -n Io-%{_version}
%patch0 -p1
sed -i 's|/lib/io/addons|/%{_lib}/io/addons|g' libs/iovm/io/AddonLoader.io
# libstdc++.so is searched and not found ...
sed -i -e 's|dependsOnLib("stdc++")||g' addons/SoundTouch/build.io
# for %doc
rm docs/guide_files/.htmle
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`


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


%install
rm -rf $RPM_BUILD_ROOT
# 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 \
  $RPM_BUILD_ROOT%{_libdir}/libiovmall.so.0
ln -s libiovmall.so.0 $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 \
      $RPM_BUILD_ROOT%{_libdir}/io/addons/$ADDON/_build/dll
    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
  fi
done


%clean
rm -rf $RPM_BUILD_ROOT


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files
%defattr(-,root,root,-)
%doc license.txt
%{_bindir}/io
%{_libdir}/libiovmall.so.0
%dir %{_libdir}/io
%dir %{_libdir}/io/addons
%{_libdir}/io/addons/AsyncRequest
%{_libdir}/io/addons/BigNum
%{_libdir}/io/addons/Blowfish
%{_libdir}/io/addons/Box
%{_libdir}/io/addons/CGI
%{_libdir}/io/addons/ContinuedFraction
%{_libdir}/io/addons/Curses
%{_libdir}/io/addons/Flux
%{_libdir}/io/addons/Fnmatch
%{_libdir}/io/addons/LZO
%{_libdir}/io/addons/Libxml2
%{_libdir}/io/addons/Loki
%{_libdir}/io/addons/MD5
%{_libdir}/io/addons/NotificationCenter
%{_libdir}/io/addons/Random
%{_libdir}/io/addons/Range
%{_libdir}/io/addons/Rational
%{_libdir}/io/addons/Regex
%{_libdir}/io/addons/SHA1
%{_libdir}/io/addons/SQLite3
%{_libdir}/io/addons/SqlDatabase
%{_libdir}/io/addons/Syslog
%{_libdir}/io/addons/SystemCall
%{_libdir}/io/addons/Thread
%{_libdir}/io/addons/UUID
%{_libdir}/io/addons/User
%{_libdir}/io/addons/Zlib

%files devel
%defattr(-,root,root,-)
%doc docs/guide.html docs/guide.pdf docs/guide_files
%{_libdir}/libiovmall.so
%{_includedir}/io

%files graphics-and-sound
%defattr(-,root,root,-)
%doc OpenGL
%{_libdir}/io/addons/Font
%{_libdir}/io/addons/Image
%{_libdir}/io/addons/LibSndFile
%{_libdir}/io/addons/OpenGL
%{_libdir}/io/addons/PortAudio
%{_libdir}/io/addons/TagLib

%files extras
%defattr(-,root,root,-)
%{_libdir}/io/addons/Python
%{_libdir}/io/addons/SampleRateConverter
%{_libdir}/io/addons/Socket
%{_libdir}/io/addons/SoundTouch

%files postgresql
%defattr(-,root,root,-)
%{_libdir}/io/addons/Postgre*

%files mysql
%defattr(-,root,root,-)
%{_libdir}/io/addons/MySQL


%changelog
* Wed Sep 12 2007 Hans de Goede <j.w.r.degoede at hhs.nl> 20070710-2
- Reshuffle which docs to include and in which subpackages to include them
  (bz 284151)

* Sun Sep  9 2007 Hans de Goede <j.w.r.degoede at hhs.nl> 20070710-1
- Adapted Packman spec file for Fedora

* Sat Sep 08 2007 Toni Graffy <toni at links2linux.de> 20070528-0.pm.2
- openSUSE-10.3 build, using libode(-devel)

* Sun Jun 03 2007 Toni Graffy <toni at links2linux.de> 20070528-0.pm.1
- update to 20070528
- added patches for 64bit (thx Detlef)
- switched to portaudio

* Sun May 27 2007 Toni Graffy <toni at links2linux.de> 20070430-0.pm.1
- initial package 20070430


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/Io-language/F-7/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	13 Sep 2007 17:01:38 -0000	1.1
+++ .cvsignore	13 Sep 2007 18:25:52 -0000	1.2
@@ -0,0 +1 @@
+Io-2007-07-10.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/Io-language/F-7/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	13 Sep 2007 17:01:38 -0000	1.1
+++ sources	13 Sep 2007 18:25:52 -0000	1.2
@@ -0,0 +1 @@
+8101f2fd8963cefedf43e188452d6249  Io-2007-07-10.tar.gz




More information about the fedora-extras-commits mailing list