Blame erlang.spec

Gérard Milmeister dfad3f
%define ver R13B
Peter Lemenkov c1353d
%define rel 04
Gérard Milmeister d0c493
Gérard Milmeister 8d9a91
Name:           erlang
Gérard Milmeister d0c493
Version:        %{ver}
Lubomir Rintel 2ee166
Release:        %{rel}.1%{?dist}
Gérard Milmeister 8d9a91
Summary:        General-purpose programming language and runtime environment
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
Group:          Development/Languages
Tom Callaway b499d4
License:        ERPL
Gérard Milmeister 8d9a91
URL:            http://www.erlang.org
Gérard Milmeister dfad3f
Source:         http://www.erlang.org/download/otp_src_%{ver}%{rel}.tar.gz
Gérard Milmeister dfad3f
Source1:        http://www.erlang.org/download/otp_doc_html_%{ver}%{rel}.tar.gz
Gérard Milmeister dfad3f
Source2:        http://www.erlang.org/download/otp_doc_man_%{ver}%{rel}.tar.gz
Peter Lemenkov c1353d
# TODO this patch needs rebase against current tree
Gérard Milmeister dfad3f
Patch0:         otp-links.patch
Peter Lemenkov c1353d
Patch1:		otp-0001-Do-not-format-man-pages.patch
Peter Lemenkov c1353d
Patch2:		otp-0002-Remove-rpath.patch
Gérard Milmeister 8d9a91
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Gérard Milmeister e76567
Gérard Milmeister 9b92d7
BuildRequires:	ncurses-devel
Gérard Milmeister 9b92d7
BuildRequires:  openssl-devel
Peter Lemenkov c1353d
BuildRequires:	zlib-devel
Gérard Milmeister 9b92d7
BuildRequires:  unixODBC-devel
Gérard Milmeister dfad3f
BuildRequires:  wxGTK-devel
Gérard Milmeister 9b92d7
BuildRequires:	tcl-devel
Gérard Milmeister 9b92d7
BuildRequires:	tk-devel
Gérard Milmeister dfad3f
BuildRequires:	java-1.6.0-openjdk-devel
Gérard Milmeister 9b92d7
BuildRequires:  flex
Gérard Milmeister 63aec6
BuildRequires:	m4
Peter Lemenkov c1353d
BuildRequires:	fop
Gérard Milmeister e76567
Gérard Milmeister dfad3f
Requires:       tk
Gérard Milmeister 8d9a91
Peter Lemenkov c1353d
%description
Gérard Milmeister 8d9a91
Erlang is a general-purpose programming language and runtime
Gérard Milmeister 8d9a91
environment. Erlang has built-in support for concurrency, distribution
Gérard Milmeister 8d9a91
and fault tolerance. Erlang is used in several large telecommunication
Gérard Milmeister 8d9a91
systems from Ericsson.
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
%package doc
Gérard Milmeister 8d9a91
Summary:	Erlang documentation
Gérard Milmeister 8d9a91
Group:		Development/Languages
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
%description doc
Gérard Milmeister 8d9a91
Documentation for Erlang.
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
%prep
Gérard Milmeister dfad3f
%setup -q -n otp_src_%{ver}%{rel}
Peter Lemenkov c1353d
%patch1 -p1 -b .do_not_format_manpages
Gérard Milmeister e245b2
%patch2 -p1 -b .rpath
Peter Lemenkov c1353d
# remove shipped zlib sources
Peter Lemenkov c1353d
rm -f erts/emulator/zlib/*.[ch]
Gérard Milmeister d0c493
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
%build
Dennis Gilmore 6d50d6
%ifarch sparcv9 sparc64
Peter Lemenkov c1353d
CFLAGS="$RPM_OPT_FLAGS -mcpu=ultrasparc -fno-strict-aliasing" %configure --enable-shared-zlib
Dennis Gilmore 6d50d6
%else
Peter Lemenkov c1353d
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %configure --enable-shared-zlib
Dennis Gilmore 6d50d6
%endif
Gérard Milmeister 8d9a91
make
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
%install
Gérard Milmeister 8d9a91
rm -rf $RPM_BUILD_ROOT
Gérard Milmeister 8d9a91
make INSTALL_PREFIX=$RPM_BUILD_ROOT install
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
# clean up
Gérard Milmeister 8d9a91
find $RPM_BUILD_ROOT%{_libdir}/erlang -perm 0775 | xargs chmod 755
Gérard Milmeister 8d9a91
find $RPM_BUILD_ROOT%{_libdir}/erlang -name Makefile | xargs chmod 644
Gérard Milmeister 328420
find $RPM_BUILD_ROOT%{_libdir}/erlang -name \*.o | xargs chmod 644
Gérard Milmeister 8d9a91
find $RPM_BUILD_ROOT%{_libdir}/erlang -name \*.bat | xargs rm -f
Gérard Milmeister 8d9a91
find $RPM_BUILD_ROOT%{_libdir}/erlang -name index.txt.old | xargs rm -f
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
# doc
Gérard Milmeister 8d9a91
mkdir -p erlang_doc
Gérard Milmeister 8d9a91
tar -C erlang_doc -zxf %{SOURCE1}
Gérard Milmeister 8d9a91
tar -C $RPM_BUILD_ROOT/%{_libdir}/erlang -zxf %{SOURCE2}
Gérard Milmeister dfad3f
gzip $RPM_BUILD_ROOT/%{_libdir}/erlang/man/man*/*
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
# make links to binaries
Gérard Milmeister 8d9a91
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
Gérard Milmeister 8d9a91
cd $RPM_BUILD_ROOT/%{_bindir}
Gérard Milmeister a219b3
for file in erl erlc escript dialyzer
Gérard Milmeister 8d9a91
do
Gérard Milmeister 8d9a91
  ln -sf ../%{_lib}/erlang/bin/$file .
Gérard Milmeister 8d9a91
done
Gérard Milmeister 8d9a91
Gérard Milmeister 88a85b
# remove buildroot from installed files
Gérard Milmeister 88a85b
cd $RPM_BUILD_ROOT/%{_libdir}/erlang
Gérard Milmeister 88a85b
sed -i "s|$RPM_BUILD_ROOT||" erts*/bin/{erl,start} releases/RELEASES bin/{erl,start}
Gérard Milmeister 88a85b
Peter Lemenkov c1353d
# remove unneeded *.erl sources
Peter Lemenkov c1353d
find $RPM_BUILD_ROOT/%{_libdir}/erlang/lib -maxdepth 2 -type d -name *src -exec rm -rf {} \;
Peter Lemenkov c1353d
Peter Lemenkov c1353d
# fixed permisson for wx library
Peter Lemenkov c1353d
chmod 755 $RPM_BUILD_ROOT/%{_libdir}/erlang/lib/wx-*/priv/*/wxe_driver.so
Peter Lemenkov c1353d
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
%clean
Gérard Milmeister 8d9a91
rm -rf $RPM_BUILD_ROOT
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
Peter Lemenkov c1353d
%files
Gérard Milmeister 8d9a91
%defattr(-,root,root)
Peter Lemenkov c1353d
%doc AUTHORS EPLICENCE README.md
Gérard Milmeister 8d9a91
%{_bindir}/*
Gérard Milmeister 8d9a91
%{_libdir}/erlang
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
%files doc
Gérard Milmeister 8d9a91
%defattr(-,root,root)
Gérard Milmeister 8d9a91
%doc erlang_doc/*
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
%post
Gérard Milmeister 9b92d7
%{_libdir}/erlang/Install -minimal %{_libdir}/erlang >/dev/null 2>/dev/null
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
%changelog
Peter Lemenkov c1353d
* Sat Feb 13 2010 Peter Lemenkov <lemenkov@gmail.com> - R13B-04.1
Peter Lemenkov c1353d
- New release R13B-04
Peter Lemenkov c1353d
- Since now we're using %%configure instead of ./configure
Peter Lemenkov c1353d
- Removed no longer needed fix for newer glibc version
Peter Lemenkov c1353d
- Dropped %%patch3 (applied upstream)
Peter Lemenkov c1353d
- Rebased patches
Peter Lemenkov c1353d
- Added BR fop for rebuilding of docs
Peter Lemenkov c1353d
- Use system-wide zlib instead of shipped one
Peter Lemenkov c1353d
- Dropped BR gd-devel
Peter Lemenkov c1353d
- Removed unneeded sources (should be fixed upstream)
Peter Lemenkov c1353d
- Fixed permission for wx driver (should be fixed upstream)
Peter Lemenkov c1353d
Lubomir Rintel 2ee166
* Thu Oct 22 2009 Lubomir Rintel (Good Data) <lubo.rintel@gooddata.com> - R13B-02-1
Lubomir Rintel 2ee166
- Update to R13B-02 (patched for what's released as 02-1 by upstream)
Lubomir Rintel 2ee166
Tomáš Mráz eddd81
* Tue Aug 25 2009 Tomas Mraz <tmraz@redhat.com> - R13B-01.2
Tomáš Mráz 94dab0
- rebuilt with new openssl
Tomáš Mráz 94dab0
Gérard Milmeister dfad3f
* Mon Aug 10 2009 Gerard Milmeister <gemi@bluewin.ch> - R13B-01.1
Gérard Milmeister dfad3f
- update to R13B01
Gérard Milmeister dfad3f
Jesse Keating ebd1bd
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - R12B-6.7
Jesse Keating ebd1bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
Jesse Keating ebd1bd
Gérard Milmeister e5c813
* Tue Apr 21 2009 Debarshi Ray <rishi@fedoraproject.org> R12B-5.7
Gérard Milmeister e5c813
- Updated rpath patch.
Gérard Milmeister e5c813
- Fixed configure to respect $RPM_OPT_FLAGS.
Gérard Milmeister e5c813
Gérard Milmeister a219b3
* Sun Mar  1 2009 Gerard Milmeister <gemi@bluewin.ch> - R12B-5.6
Gérard Milmeister a219b3
- new release R12B-5
Gérard Milmeister a219b3
- link escript and dialyzer to %{_bindir}
Gérard Milmeister a219b3
Jesse Keating 8d86c9
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - R12B-5.5
Jesse Keating 8d86c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
Jesse Keating 8d86c9
Dennis Gilmore 6d50d6
* Sat Feb 14 2009 Dennis Gilmore <dennis@ausil.us> - R12B-4.5
Dennis Gilmore 6d50d6
- fix sparc arches to compile
Dennis Gilmore 6d50d6
Tomáš Mráz 819bc1
* Fri Jan 16 2009 Tomas Mraz <tmraz@redhat.com> - R12B-4.4
Tomáš Mráz 819bc1
- rebuild with new openssl
Tomáš Mráz 819bc1
Gérard Milmeister e245b2
* Sat Oct 25 2008 Gerard Milmeister <gemi@bluewin.ch> - R12B-4.1
Gérard Milmeister e245b2
- new release R12B-4
Gérard Milmeister e245b2
Gérard Milmeister a219b3
* Fri Sep  5 2008 Gerard Milmeister <gemi@bluewin.ch> - R12B-3.3
Gérard Milmeister af8394
- fixed sslrpath patch
Gérard Milmeister af8394
Tom Callaway b499d4
* Thu Jul 17 2008 Tom "spot" Callaway <tcallawa@redhat.com> - R12B-3.2
Tom Callaway b499d4
- fix license tag
Tom Callaway b499d4
Gérard Milmeister d0c493
* Sun Jul  6 2008 Gerard Milmeister <gemi@bluewin.ch> - R12B-3.1
Gérard Milmeister d0c493
- new release R12B-3
Gérard Milmeister d0c493
Gérard Milmeister e77dba
* Thu Mar 27 2008 Gerard Milmeister <gemi@bluewin.ch> - R12B-1.1
Gérard Milmeister e77dba
- new release R12B-1
Gérard Milmeister e77dba
Gérard Milmeister 58d5f0
* Sat Feb 23 2008 Gerard Milmeister <gemi@bluewin.ch> - R12B-0.3
Gérard Milmeister 58d5f0
- disable strict aliasing optimization
Gérard Milmeister 58d5f0
Jesse Keating 6708aa
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - R12B-0.2
Jesse Keating 6708aa
- Autorebuild for GCC 4.3
Jesse Keating 6708aa
Gérard Milmeister cdc6d1
* Sat Dec  8 2007 Gerard Milmeister <gemi@bluewin.ch> - R12B-0.1
Gérard Milmeister cdc6d1
- new release R12B-0
Gérard Milmeister cdc6d1
Jesse Keating 0a92f9
* Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - R11B-6
Jesse Keating 0a92f9
 - Rebuild for deps
Jesse Keating 0a92f9
Gérard Milmeister 328420
* Sun Aug 19 2007 Gerard Milmeister <gemi@bluewin.ch> - R11B-5.3
Gérard Milmeister 328420
- fix some permissions
Gérard Milmeister 328420
Gérard Milmeister 724004
* Sat Aug 18 2007 Gerard Milmeister <gemi@bluewin.ch> - R11B-5.2
Gérard Milmeister 724004
- enable dynamic linking for ssl
Gérard Milmeister 724004
Gérard Milmeister 37d540
* Sat Aug 18 2007 Gerard Milmeister <gemi@bluewin.ch> - R11B-5.1
Gérard Milmeister 37d540
- new release R11B-5
Gérard Milmeister 37d540
Thomas Fitzsimmons a60bf5
* Sat Mar 24 2007 Thomas Fitzsimmons <fitzsim@redhat.com> - R11B-2.4
Thomas Fitzsimmons a60bf5
- Require java-1.5.0-gcj-devel for build.
Thomas Fitzsimmons a60bf5
Gérard Milmeister 88a85b
* Sun Dec 31 2006 Gerard Milmeister <gemi@bluewin.ch> - R11B-2.3
Gérard Milmeister 88a85b
- remove buildroot from installed files
Gérard Milmeister 88a85b
Gérard Milmeister 717787
* Sat Dec 30 2006 Gerard Milmeister <gemi@bluewin.ch> - R11B-2.2
Gérard Milmeister 717787
- added patch for compiling with glibc 2.5
Gérard Milmeister 717787
Gérard Milmeister 380e40
* Sat Dec 30 2006 Gerard Milmeister <gemi@bluewin.ch> - R11B-2.1
Gérard Milmeister 380e40
- new version R11B-2
Gérard Milmeister 380e40
Gérard Milmeister d64f98
* Mon Aug 28 2006 Gerard Milmeister <gemi@bluewin.ch> - R11B-0.3
Gérard Milmeister d64f98
- Rebuild for FE6
Gérard Milmeister d64f98
Gérard Milmeister 63aec6
* Wed Jul  5 2006 Gerard Milmeister <gemi@bluewin.ch> - R11B-0.2
Gérard Milmeister 63aec6
- add BR m4
Gérard Milmeister 63aec6
Gérard Milmeister 402a17
* Thu May 18 2006 Gerard Milmeister <gemi@bluewin.ch> - R11B-0.1
Gérard Milmeister 402a17
- new version R11B-0
Gérard Milmeister 402a17
Gérard Milmeister 928fb3
* Wed May  3 2006 Gerard Milmeister <gemi@bluewin.ch> - R10B-10.3
Gérard Milmeister 928fb3
- added patch for run_erl by Knut-Håvard Aksnes
Gérard Milmeister 928fb3
Gérard Milmeister b7307b
* Mon Mar 13 2006 Gerard Milmeister <gemi@bluewin.ch> - R10B-10.1
Gérard Milmeister b7307b
- new version R10B-10
Gérard Milmeister b7307b
Gérard Milmeister 9b92d7
* Thu Dec 29 2005 Gerard Milmeister <gemi@bluewin.ch> - R10B-9.1
Gérard Milmeister 9b92d7
- New Version R10B-9
Gérard Milmeister 9b92d7
Gérard Milmeister da518f
* Sat Oct 29 2005 Gerard Milmeister <gemi@bluewin.ch> - R10B-8.2
Gérard Milmeister da518f
- updated rpath patch
Gérard Milmeister da518f
Gérard Milmeister e76567
* Sat Oct 29 2005 Gerard Milmeister <gemi@bluewin.ch> - R10B-8.1
Gérard Milmeister e76567
- New Version R10B-8
Gérard Milmeister e76567
Gérard Milmeister 4613f8
* Sat Oct  1 2005 Gerard Milmeister <gemi@bluewin.ch> - R10B-6.4
Gérard Milmeister 4613f8
- Added tk-devel and tcl-devel to buildreq
Gérard Milmeister 4613f8
- Added tk to req
Gérard Milmeister 4613f8
Gérard Milmeister 4613f8
* Tue Sep  6 2005 Gerard Milmeister <gemi@bluewin.ch> - R10B-6.3
Gérard Milmeister 8d9a91
- Remove perl BuildRequires
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
* Tue Aug 30 2005 Gerard Milmeister <gemi@bluewin.ch> - R10B-6.2
Gérard Milmeister 8d9a91
- change /usr/lib to %%{_libdir}
Gérard Milmeister 8d9a91
- redirect output in %%post to /dev/null
Gérard Milmeister 8d9a91
- add unixODBC-devel to BuildRequires
Gérard Milmeister 8d9a91
- split doc off to erlang-doc package
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
* Sat Jun 25 2005 Gerard Milmeister <gemi@bluewin.ch> - R10B-6.1
Gérard Milmeister 8d9a91
- New Version R10B-6
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
* Sun Feb 13 2005 Gerard Milmeister <gemi@bluewin.ch> - R10B-3.1
Gérard Milmeister 8d9a91
- New Version R10B-3
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
* Mon Dec 27 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:R10B-2-0.fdr.1
Gérard Milmeister 8d9a91
- New Version R10B-2
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
* Wed Oct  6 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:R10B-0.fdr.1
Gérard Milmeister 8d9a91
- New Version R10B
Gérard Milmeister 8d9a91
Gérard Milmeister 8d9a91
* Thu Oct 16 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:R9B-1.fdr.1
Gérard Milmeister 8d9a91
- First Fedora release