Пакет Io-language: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 | # BEGIN SourceDeps(oneline): BuildRequires: gcc-c++ # END SourceDeps(oneline) # 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: alt2_9.2.2.qa1 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 Patch4: Io-language-20080330-alt-libpng15.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 %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/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 %prep %setup -q -n stevedekorte-io-6a5f734 %patch0 -p1 %patch1 -p1 -b .gcc43 %patch2 -p1 -b .protos %patch3 -p1 %patch4 -p2 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 fi # 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 %build make %{?_smp_mflags} INSTALL_PREFIX=%{_prefix} OPTIMIZE="$RPM_OPT_FLAGS" \ DLL_COMMAND='-shared -Wl,-soname="libiovmall.so.2"' %install # 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.2 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 \ $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 %files %doc license.txt %{_bindir}/io %{_libdir}/libiovmall.so.2 %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/Cairo %{_libdir}/io/addons/CGI %{_libdir}/io/addons/ContinuedFraction %{_libdir}/io/addons/Curses %{_libdir}/io/addons/DistributedObjects %{_libdir}/io/addons/EditLine %{_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/NetworkAdapter %{_libdir}/io/addons/NotificationCenter %{_libdir}/io/addons/NullAddon %{_libdir}/io/addons/Random %{_libdir}/io/addons/Range %{_libdir}/io/addons/Rational %{_libdir}/io/addons/ReadLine %{_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/Volcano %{_libdir}/io/addons/Zlib %files devel %doc docs/* %{_libdir}/libiovmall.so %{_includedir}/io %files graphics-and-sound %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 %{_libdir}/io/addons/Python %{_libdir}/io/addons/SampleRateConverter %{_libdir}/io/addons/Socket %{_libdir}/io/addons/SoundTouch %files postgresql %{_libdir}/io/addons/Postgre* %files mysql %{_libdir}/io/addons/MySQL %changelog * Sun Apr 14 2013 Dmitry V. Levin (QA) <qa_ldv@altlinux.org> 20080330-alt2_9.2.2.qa1 - NMU: rebuilt with libmysqlclient.so.18. * Thu Oct 04 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 20080330-alt2_9.2.2 - Rebuilt with libtiff5 & libpng15 * Wed Aug 29 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 20080330-alt2_9.2.1 - Rebuilt with gmp 5.0.5 * Wed Mar 21 2012 Igor Vlasenko <viy@altlinux.ru> 20080330-alt2_9.2 - rebuild to get rid of #27020 * Tue Feb 21 2012 Igor Vlasenko <viy@altlinux.ru> 20080330-alt1_9.2 - update to new release by fcimport * Wed Feb 01 2012 Igor Vlasenko <viy@altlinux.ru> 20080330-alt1_8.2 - update to new release by fcimport * Thu Dec 08 2011 Igor Vlasenko <viy@altlinux.ru> 20080330-alt1_7.2 - update to new release by fcimport * Fri Nov 25 2011 Igor Vlasenko <viy@altlinux.ru> 20080330-alt1_6.2 - update to new release by fcimport * Thu Oct 27 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 20080330-alt1_6.1 - Rebuild with Python-2.7 * Thu Jul 21 2011 Igor Vlasenko <viy@altlinux.ru> 20080330-alt1_6 - initial release by fcimport |