123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- %define pkg_name ghc
- %define pkg_version 8.0.1
- # %define pkg_subversion b
- %define pkg_release 1%{?_dist_release}
- %ifarch %{ix86}
- %define rpmarch i386
- %endif
- %ifarch x86_64
- %define rpmarch x86_64
- %endif
- Summary: A state-of-the-art, open source, compiler and interactive environment for the functional language Haskell
- Name: %{pkg_name}
- Version: %{pkg_version}
- Release: %{pkg_release}
- License: BSD-like
- Group: Applications/Languages
- URL: https://www.haskell.org/ghc
- # Source0: %{name}-%{version}%{pkg_subversion}-src.tar.bz2
- Source0: %{name}-%{version}-src.tar.xz
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- BuildRequires: ghc
- BuildRequires: gmp-devel
- BuildRequires: libffi-devel
- BuildRequires: ncurses-devel readline-devel freeglut-devel
- BuildRequires: gtk2-devel
- BuildRequires: python-sphinx
- Requires: gmp-devel
- Requires: libffi-devel
- Requires: freeglut
- Conflicts: ghc-bootstrap
- Conflicts: haskell-platform-base
- Vendor: Project Vine
- Distribution: Vine Linux
- Packager: ara_t
- %description
- The Glasgow Haskell Compiler (GHC) is a state-of-the-art, open source,
- compiler and interactive environment for the functional language Haskell.
- Highlights:
- - GHC supports the entire Haskell 2010 language plus a wide variety of
- extensions.
- - GHC has particularly good support for concurrency and parallelism,
- including support for Software Transactional Memory (STM).
- - GHC generates fast code, particularly for concurrent programs.
- - Take a look at GHC's performance on The Computer Language Benchmarks Game.
- GHC works on several platforms including Windows, Mac, Linux,
- most varieties of Unix, and several different processor architectures.
- There are detailed instructions for porting GHC to a new platform.
- - GHC has extensive optimisation capabilities, including inter-module
- optimisation.
- - GHC compiles Haskell code either directly to native code or using LLVM
- as a back-end.
- GHC can also generate C code as an intermediate target for porting to
- new platforms.
- The interactive environment compiles Haskell to bytecode,
- and supports execution of mixed bytecode/compiled programs.
- - Profiling is supported, both by time/allocation and various kinds of heap
- profiling.
- - GHC comes with several libraries, and thousands more are available on Hackage.
- #'
- %prep
- %{__rm} -rf ${RPM_BUILD_ROOT}
- %setup -q
- %build
- ./configure \
- --prefix=%{_prefix} \
- --libdir=%{_libdir} \
- --docdir=%{_docdir}/%{name}-%{version} \
- --with-system-libffi
- %{__make} %{?_smp_mflags}
- %install
- %{make_install}
- %{__cp} ANNOUNCE LICENSE \
- ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}
- %clean
- %{__rm} -rf ${RPM_BUILD_ROOT}
- %post -p %{_syssbindir}/ldconfig
- %postun -p %{_syssbindir}/ldconfig
- %files
- %defattr(-, root, root)
- %{_bindir}/
- %{_libdir}/ghc-%{version}/
- %{_docdir}/ghc-%{version}/
- %{_mandir}/man1/
- %changelog
- * Tue Jan 31 2017 Toshiaki Ara <ara_t@384.jp> 8.0.1-1
- - update to 8.0.1
- - add Requires: libffi-devel
- - add Requires: freeglut
- - add BuildRequires: python-sphinx for building HTML documents
- - add Conflicts: ghc-bootstrap
- - add Conflicts: haskell-platform-base
- - delete BuildRequires: hscolour
- - delete bindist subpackage
- * Tue May 03 2016 Toshiaki Ara <ara_t@384.jp> 7.10.3-3
- - add Requires: gmp-devel
- * Mon Apr 11 2016 Toshiaki Ara <ara_t@384.jp> 7.10.3-2
- - correct SPEC file
- * Wed Feb 17 2016 Toshiaki Ara <ara_t@384.jp> 7.10.3-1
- - update to 7.10.3
- - add BuildRequires: texlive-collection-fontutils
- - add Requires: libffi
- - add Requires: freeglut
- - provide binary tarball for building haskell-platform
- * Sun Feb 14 2016 Toshiaki Ara <ara_t@384.jp> 7.6.3-5
- - rebuild with ghc-7.6.3-4
- * Sun Feb 14 2016 Toshiaki Ara <ara_t@384.jp> 7.6.3-4
- - add Patchs to use --with-system-libffi option
- * Fri Feb 12 2016 Toshiaki Ara <ara_t@384.jp> 7.6.3-3
- - empty
- * Mon Feb 08 2016 Toshiaki Ara <ara_t@384.jp> 7.6.3-2
- - add BuildRequires: dblatex
- - add BuildRequires: texlive-collection-bibtexextra
- - add BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl
- - change BuildRequires from ghc-bootstrap to ghc
- * Tue Feb 02 2016 Toshiaki Ara <ara_t@384.jp> 7.6.3-1
- - new package
|