2
0

erlang.spec 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. %define ver %{VERSION_NUMBER}
  2. %define rel %{RELEASE_NUMBER}
  3. Name: erlang
  4. Version: %{ver}
  5. Release: %{rel}.1%{?dist}
  6. Summary: General-purpose programming language and runtime environment
  7. Group: Development/Languages
  8. License: ERPL
  9. URL: http://www.erlang.org
  10. Source: http://www.erlang.org/download/otp_src_R14B03.tar.gz
  11. Source1: http://www.erlang.org/download/otp_doc_html_R14B03.tar.gz
  12. Source2: http://www.erlang.org/download/otp_doc_man_R14B03.tar.gz
  13. Patch1: otp-R14B-00-0001-Do-not-format-man-pages.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  15. BuildRequires: ncurses-devel
  16. BuildRequires: openssl-devel
  17. BuildRequires: unixODBC-devel
  18. BuildRequires: tcl-devel
  19. BuildRequires: tk-devel
  20. BuildRequires: gd-devel
  21. # BuildRequires: jdk
  22. BuildRequires: flex
  23. BuildRequires: m4
  24. Requires: tk
  25. # Added virtual Provides for each erlang module
  26. Provides: erlang-appmon = %{version}-%{release}
  27. Provides: erlang-asn1 = %{version}-%{release}
  28. Provides: erlang-common_test = %{version}-%{release}
  29. Provides: erlang-compiler = %{version}-%{release}
  30. Provides: erlang-cosEvent = %{version}-%{release}
  31. Provides: erlang-cosEventDomain = %{version}-%{release}
  32. Provides: erlang-cosFileTransfer = %{version}-%{release}
  33. Provides: erlang-cosNotification = %{version}-%{release}
  34. Provides: erlang-cosProperty = %{version}-%{release}
  35. Provides: erlang-cosTime = %{version}-%{release}
  36. Provides: erlang-cosTransactions = %{version}-%{release}
  37. Provides: erlang-crypto = %{version}-%{release}
  38. Provides: erlang-debugger = %{version}-%{release}
  39. Provides: erlang-dialyzer = %{version}-%{release}
  40. Provides: erlang-docbuilder = %{version}-%{release}
  41. Provides: erlang-edoc = %{version}-%{release}
  42. Provides: erlang-erts = %{version}-%{release}
  43. Provides: erlang-et = %{version}-%{release}
  44. Provides: erlang-eunit = %{version}-%{release}
  45. Provides: erlang-gs = %{version}-%{release}
  46. Provides: erlang-hipe = %{version}-%{release}
  47. Provides: erlang-ic = %{version}-%{release}
  48. Provides: erlang-inets = %{version}-%{release}
  49. Provides: erlang-inviso = %{version}-%{release}
  50. Provides: erlang-kernel = %{version}-%{release}
  51. Provides: erlang-megaco = %{version}-%{release}
  52. Provides: erlang-mnesia = %{version}-%{release}
  53. Provides: erlang-observer = %{version}-%{release}
  54. Provides: erlang-odbc = %{version}-%{release}
  55. Provides: erlang-orber = %{version}-%{release}
  56. Provides: erlang-os_mon = %{version}-%{release}
  57. Provides: erlang-otp_mibs = %{version}-%{release}
  58. Provides: erlang-parsetools = %{version}-%{release}
  59. Provides: erlang-percept = %{version}-%{release}
  60. Provides: erlang-pman = %{version}-%{release}
  61. Provides: erlang-public_key = %{version}-%{release}
  62. Provides: erlang-runtime_tools = %{version}-%{release}
  63. Provides: erlang-sasl = %{version}-%{release}
  64. Provides: erlang-snmp = %{version}-%{release}
  65. Provides: erlang-ssh = %{version}-%{release}
  66. Provides: erlang-ssl = %{version}-%{release}
  67. Provides: erlang-stdlib = %{version}-%{release}
  68. Provides: erlang-syntax_tools = %{version}-%{release}
  69. Provides: erlang-test_server = %{version}-%{release}
  70. Provides: erlang-toolbar = %{version}-%{release}
  71. Provides: erlang-tools = %{version}-%{release}
  72. Provides: erlang-tv = %{version}-%{release}
  73. Provides: erlang-typer = %{version}-%{release}
  74. Provides: erlang-webtool = %{version}-%{release}
  75. Provides: erlang-xmerl = %{version}-%{release}
  76. %description
  77. Erlang is a general-purpose programming language and runtime
  78. environment. Erlang has built-in support for concurrency, distribution
  79. and fault tolerance. Erlang is used in several large telecommunication
  80. systems from Ericsson.
  81. %package doc
  82. Summary: Erlang documentation
  83. Group: Development/Languages
  84. %description doc
  85. Documentation for Erlang.
  86. %prep
  87. %setup -q -n otp_src_%{ver}%{rel}
  88. #%setup -q -n otp_src_%{ver}
  89. %build
  90. # WARN: --enable-dynamic-ssl-lib needed for preventing strange messages about missing dependencies on EPEL
  91. # see https://bugzilla.redhat.com/458646 and https://bugzilla.redhat.com/499525
  92. %ifarch sparcv9 sparc64
  93. CFLAGS="$RPM_OPT_FLAGS -mcpu=ultrasparc -fno-strict-aliasing" %configure --enable-dynamic-ssl-lib
  94. %else
  95. CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %configure --enable-dynamic-ssl-lib
  96. %endif
  97. chmod -R u+w .
  98. make
  99. %install
  100. rm -rf $RPM_BUILD_ROOT
  101. make INSTALL_PREFIX=$RPM_BUILD_ROOT install
  102. # clean up
  103. find $RPM_BUILD_ROOT%{_libdir}/erlang -perm 0775 | xargs chmod 755
  104. find $RPM_BUILD_ROOT%{_libdir}/erlang -name Makefile | xargs chmod 644
  105. find $RPM_BUILD_ROOT%{_libdir}/erlang -name \*.o | xargs chmod 644
  106. find $RPM_BUILD_ROOT%{_libdir}/erlang -name \*.bat | xargs rm -f
  107. find $RPM_BUILD_ROOT%{_libdir}/erlang -name index.txt.old | xargs rm -f
  108. # doc
  109. mkdir -p erlang_doc
  110. tar -C erlang_doc -zxf %{SOURCE1}
  111. tar -C $RPM_BUILD_ROOT/%{_libdir}/erlang -zxf %{SOURCE2}
  112. # make links to binaries
  113. #mkdir -p $RPM_BUILD_ROOT/%{_bindir}
  114. #cd $RPM_BUILD_ROOT/%{_bindir}
  115. #for file in erl erlc escript dialyzer
  116. #do
  117. # ln -sf ../%{_lib}/erlang/bin/$file .
  118. #done
  119. # remove buildroot from installed files
  120. cd $RPM_BUILD_ROOT/%{_libdir}/erlang
  121. sed -i "s|$RPM_BUILD_ROOT||" erts*/bin/{erl,start} releases/RELEASES bin/{erl,start}
  122. %clean
  123. rm -rf $RPM_BUILD_ROOT
  124. %files
  125. %defattr(-,root,root)
  126. %doc AUTHORS EPLICENCE README.md
  127. %{_bindir}/*
  128. %{_libdir}/erlang
  129. %files doc
  130. %defattr(-,root,root)
  131. %doc erlang_doc/*
  132. %post
  133. %{_libdir}/erlang/Install -minimal %{_libdir}/erlang >/dev/null 2>/dev/null
  134. %changelog
  135. * Wed Sep 29 2010 Anthony Molinaro <anthony.molinaro@openx.org> - R14B-00.1
  136. - modified R13B04 spec to work with R14B
  137. * Wed Jul 7 2010 Anthony Molinaro <anthony.molinaro@openx.org> - R13B-04.1
  138. - modified the R12B spec to work with R13B04
  139. * Mon Jun 7 2010 Peter Lemenkov <lemenkov@gmail.com> - R12B-5.10
  140. - Added missing virtual provides erlang-erts
  141. * Tue May 25 2010 Peter Lemenkov <lemenkov@gmail.com> - R12B-5.9
  142. - Use java-1.4.2 only for EL-[45]
  143. - Added virtual provides for each erlang module
  144. - Small typo fix
  145. * Mon Apr 19 2010 Peter Lemenkov <lemenkov@gmail.com> - R12B-5.8
  146. - Patches rebased
  147. - Added patches 6,7 from trunk
  148. - Use %%configure
  149. * Tue Apr 21 2009 Debarshi Ray <rishi@fedoraproject.org> R12B-5.7
  150. - Updated rpath patch.
  151. - Fixed configure to respect $RPM_OPT_FLAGS.
  152. * Sun Mar 1 2009 Gerard Milmeister <gemi@bluewin.ch> - R12B-5.6
  153. - new release R12B-5
  154. - link escript and dialyzer to %{_bindir}
  155. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - R12B-5.5
  156. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  157. * Sat Feb 14 2009 Dennis Gilmore <dennis@ausil.us> - R12B-4.5
  158. - fix sparc arches to compile
  159. * Fri Jan 16 2009 Tomas Mraz <tmraz@redhat.com> - R12B-4.4
  160. - rebuild with new openssl
  161. * Sat Oct 25 2008 Gerard Milmeister <gemi@bluewin.ch> - R12B-4.1
  162. - new release R12B-4
  163. * Fri Sep 5 2008 Gerard Milmeister <gemi@bluewin.ch> - R12B-3.3
  164. - fixed sslrpath patch
  165. * Thu Jul 17 2008 Tom "spot" Callaway <tcallawa@redhat.com> - R12B-3.2
  166. - fix license tag
  167. * Sun Jul 6 2008 Gerard Milmeister <gemi@bluewin.ch> - R12B-3.1
  168. - new release R12B-3
  169. * Thu Mar 27 2008 Gerard Milmeister <gemi@bluewin.ch> - R12B-1.1
  170. - new release R12B-1
  171. * Sat Feb 23 2008 Gerard Milmeister <gemi@bluewin.ch> - R12B-0.3
  172. - disable strict aliasing optimization
  173. * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - R12B-0.2
  174. - Autorebuild for GCC 4.3
  175. * Sat Dec 8 2007 Gerard Milmeister <gemi@bluewin.ch> - R12B-0.1
  176. - new release R12B-0
  177. * Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - R11B-6
  178. - Rebuild for deps
  179. * Sun Aug 19 2007 Gerard Milmeister <gemi@bluewin.ch> - R11B-5.3
  180. - fix some permissions
  181. * Sat Aug 18 2007 Gerard Milmeister <gemi@bluewin.ch> - R11B-5.2
  182. - enable dynamic linking for ssl
  183. * Sat Aug 18 2007 Gerard Milmeister <gemi@bluewin.ch> - R11B-5.1
  184. - new release R11B-5
  185. * Sat Mar 24 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - R11B-2.4
  186. - Require java-1.5.0-gcj-devel for build.
  187. * Sun Dec 31 2006 Gerard Milmeister <gemi@bluewin.ch> - R11B-2.3
  188. - remove buildroot from installed files
  189. * Sat Dec 30 2006 Gerard Milmeister <gemi@bluewin.ch> - R11B-2.2
  190. - added patch for compiling with glibc 2.5
  191. * Sat Dec 30 2006 Gerard Milmeister <gemi@bluewin.ch> - R11B-2.1
  192. - new version R11B-2
  193. * Mon Aug 28 2006 Gerard Milmeister <gemi@bluewin.ch> - R11B-0.3
  194. - Rebuild for FE6
  195. * Wed Jul 5 2006 Gerard Milmeister <gemi@bluewin.ch> - R11B-0.2
  196. - add BR m4
  197. * Thu May 18 2006 Gerard Milmeister <gemi@bluewin.ch> - R11B-0.1
  198. - new version R11B-0
  199. * Wed May 3 2006 Gerard Milmeister <gemi@bluewin.ch> - R10B-10.3
  200. - added patch for run_erl by Knut-Håvard Aksnes
  201. * Mon Mar 13 2006 Gerard Milmeister <gemi@bluewin.ch> - R10B-10.1
  202. - new version R10B-10
  203. * Thu Dec 29 2005 Gerard Milmeister <gemi@bluewin.ch> - R10B-9.1
  204. - New Version R10B-9
  205. * Sat Oct 29 2005 Gerard Milmeister <gemi@bluewin.ch> - R10B-8.2
  206. - updated rpath patch
  207. * Sat Oct 29 2005 Gerard Milmeister <gemi@bluewin.ch> - R10B-8.1
  208. - New Version R10B-8
  209. * Sat Oct 1 2005 Gerard Milmeister <gemi@bluewin.ch> - R10B-6.4
  210. - Added tk-devel and tcl-devel to buildreq
  211. - Added tk to req
  212. * Tue Sep 6 2005 Gerard Milmeister <gemi@bluewin.ch> - R10B-6.3
  213. - Remove perl BuildRequires
  214. * Tue Aug 30 2005 Gerard Milmeister <gemi@bluewin.ch> - R10B-6.2
  215. - change /usr/lib to %%{_libdir}
  216. - redirect output in %%post to /dev/null
  217. - add unixODBC-devel to BuildRequires
  218. - split doc off to erlang-doc package
  219. * Sat Jun 25 2005 Gerard Milmeister <gemi@bluewin.ch> - R10B-6.1
  220. - New Version R10B-6
  221. * Sun Feb 13 2005 Gerard Milmeister <gemi@bluewin.ch> - R10B-3.1
  222. - New Version R10B-3
  223. * Mon Dec 27 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:R10B-2-0.fdr.1
  224. - New Version R10B-2
  225. * Wed Oct 6 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:R10B-0.fdr.1
  226. - New Version R10B
  227. * Thu Oct 16 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:R9B-1.fdr.1
  228. - First Fedora release