# https://fedoraproject.org/wiki/Packaging:Haskell %global upstream_version 7.10.3 %global ghc_compiler_version %{upstream_version} %global alex_version 3.1.7 %global cabal_install_version 1.22.9.0 %global happy_version 1.19.5 %global hscolour_version 1.23 %global async_version 2.1.0 %global attoparsec_version 0.13.0.2 %global case_insensitive_version 1.2.0.6 %global hashable_version 1.2.4.0 %global HTTP_version 4000.3.3 %global HUnit_version 1.3.1.1 %global html_version 1.0.1.2 %global mtl_version 2.2.1 %global old_locale_version 1.0.0.7 %global old_time_version 1.1.0.3 %global network_version 2.6.2.1 %global parallel_version 3.2.1.0 %global parsec_version 3.1.11 %global primitive_version 0.6.1.0 %global QuickCheck_version 2.8.2 %global random_version 1.1 %global regex_base_version 0.93.2 %global regex_compat_version 0.95.1 %global regex_posix_version 0.95.2 %global split_version 0.2.3.1 %global stm_version 2.4.4 %global syb_version 0.6 %global text_version 1.2.2.1 %global unordered_containers_version 0.2.7.1 %global vector_version 0.11.0.0 %global xhtml_version 3000.2.1 %global zlib_version 0.6.1.1 # new in HP 7.10 %global exceptions_version 0.8.0.2 %global network_uri_version 2.6.1.0 %global scientific_version 0.3.4.7 %global tf_random_version 0.5 %global transformers_compat_version 0.4.0.4 %global separate_packages QuickCheck|HTTP|HUnit|alex|cabal-install|happy|html|mtl|network|parallel|parsec|random|regex-base|regex-compat|regex-posix|stm|syb|text|zlib|async|primitive|split|vector|attoparsec|case-insensitive|hashable|unordered-containers|xhtml|hscolour|tf-random|exceptions|transformers-compat|scientific|network-uri|old-locale|old-time %ifarch armv7hl %global separate_packages %{separate_packages}|OpenGL|OpenGLRaw|GLUT|GLURaw %endif Name: haskell-platform Version: 2016.%{upstream_version} # Since library subpackages are versioned: # - release can only be reset if all library versions get bumped simultaneously # (eg for a major release) # - minor release numbers should be incremented monotonically Release: 3%{?dist} Summary: Standard Haskell distribution Group: Development/Tools License: BSD URL: http://www.haskell.org/platform/ Source0: http://www.haskell.org/platform/download/%{version}/%{name}-%{upstream_version}.tar.gz Patch1: haskell-platform-build-tools-cabal-install.patch Patch2: haskell-platform-7.10.3-version.patch Patch3: haskell-platform-armv7-disable-GL.patch BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros-extra >= 1.6.4 BuildRequires: alex = %{alex_version} BuildRequires: cabal-install = %{cabal_install_version} BuildRequires: ghc-compiler = %{ghc_compiler_version} # GLUT BuildRequires: freeglut-devel%{?_isa} BuildRequires: happy = %{happy_version} BuildRequires: hscolour = %{hscolour_version} # OpenGL BuildRequires: mesa-libGL-devel%{?_isa},mesa-libGLU-devel%{?_isa} BuildRequires: ghc-async-devel = %{async_version} BuildRequires: ghc-attoparsec-devel = %{attoparsec_version} BuildRequires: ghc-bytestring-devel BuildRequires: ghc-case-insensitive-devel = %{case_insensitive_version} BuildRequires: ghc-deepseq-devel BuildRequires: ghc-hashable-devel = %{hashable_version} BuildRequires: ghc-hscolour-devel = %{hscolour_version} BuildRequires: ghc-HUnit-devel = %{HUnit_version} BuildRequires: ghc-HTTP-devel = %{HTTP_version} BuildRequires: ghc-html-devel = %{html_version} BuildRequires: ghc-mtl-devel = %{mtl_version} BuildRequires: ghc-old-locale-devel = %{old_locale_version} BuildRequires: ghc-old-time-devel = %{old_time_version} BuildRequires: ghc-network-devel = %{network_version} BuildRequires: ghc-parallel-devel = %{parallel_version} BuildRequires: ghc-parsec-devel = %{parsec_version} BuildRequires: ghc-primitive-devel = %{primitive_version} BuildRequires: ghc-QuickCheck-devel = %{QuickCheck_version} BuildRequires: ghc-random-devel = %{random_version} BuildRequires: ghc-regex-base-devel = %{regex_base_version} BuildRequires: ghc-regex-compat-devel = %{regex_compat_version} BuildRequires: ghc-regex-posix-devel = %{regex_posix_version} BuildRequires: ghc-split-devel = %{split_version} BuildRequires: ghc-stm-devel = %{stm_version} BuildRequires: ghc-syb-devel = %{syb_version} BuildRequires: ghc-template-haskell-devel BuildRequires: ghc-text-devel = %{text_version} BuildRequires: ghc-time-devel BuildRequires: ghc-unordered-containers-devel = %{unordered_containers_version} BuildRequires: ghc-vector-devel = %{vector_version} BuildRequires: ghc-xhtml-devel = %{xhtml_version} BuildRequires: ghc-zlib-devel = %{zlib_version} # new in HP 7.10 BuildRequires: ghc-exceptions-devel = %{exceptions_version} BuildRequires: ghc-network-uri-devel = %{network_uri_version} BuildRequires: ghc-scientific-devel = %{scientific_version} BuildRequires: ghc-tf-random-devel = %{tf_random_version} BuildRequires: ghc-transformers-compat-devel = %{transformers_compat_version} # ghci "ghc" library is not officially part of hackage-platform Requires: ghc-compiler = %{ghc_compiler_version} Requires: alex = %{alex_version} Requires: cabal-install >= %{cabal_install_version} Requires: happy = %{happy_version} Requires: ghc-haskell-platform-devel = %{version}-%{release} Requires: hscolour = %{hscolour_version} %description Haskell Platform is a suite of stable and well used Haskell libraries and tools. It provides a good starting environment for Haskell development. %global BSDHaskellReport BSD%{space}and%{space}HaskellReport %global haskell_platform_version %{version} %if %{defined ghclibdir} %ghc_lib_subpackage cgi-3001.2.2.2 %ghc_lib_subpackage fgl-5.5.2.3 # OpenGLRaw-2.6.0.0 started failing: %ifnarch armv7hl %ghc_lib_subpackage -c mesa-libGLU-devel%{?_isa} GLURaw-1.5.0.2 %ghc_lib_subpackage -c freeglut-devel%{?_isa} GLUT-2.7.0.3 %ghc_lib_subpackage OpenGL-2.13.1.0 %ghc_lib_subpackage -c mesa-libGL-devel%{?_isa} OpenGLRaw-2.6.0.0 %endif %ghc_lib_subpackage half-0.2.2.1 %ghc_lib_subpackage haskell-src-1.0.2.0 %ghc_lib_subpackage multipart-0.1.2 %ghc_lib_subpackage ObjectName-1.1.0.0 %ghc_lib_subpackage StateVar-1.1.0.1 %endif %package -n ghc-haskell-platform-devel Summary: Haskell Platform library development files Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} %{?ghc_packages_list:Requires: %(echo %{ghc_packages_list} | sed -e "s/\([^ ]*\)-\([^ ]*\)/ghc-\1-devel = \2-%{release},/g")} # pull in all of ghc for least surprise # even though libghc is not formally part of HP Requires: ghc = %{ghc_compiler_version} Requires: ghc-HUnit-devel = %{HUnit_version} Requires: ghc-HTTP-devel = %{HTTP_version} Requires: ghc-html-devel = %{html_version} Requires: ghc-mtl-devel = %{mtl_version} Requires: ghc-network-devel = %{network_version} Requires: ghc-parallel-devel = %{parallel_version} Requires: ghc-parsec-devel = %{parsec_version} Requires: ghc-QuickCheck-devel = %{QuickCheck_version} Requires: ghc-random-devel = %{random_version} Requires: ghc-regex-base-devel = %{regex_base_version} Requires: ghc-regex-compat-devel = %{regex_compat_version} Requires: ghc-regex-posix-devel = %{regex_posix_version} Requires: ghc-stm-devel = %{stm_version} Requires: ghc-syb-devel = %{syb_version} Requires: ghc-text-devel = %{text_version} Requires: ghc-xhtml-devel = %{xhtml_version} Requires: ghc-zlib-devel = %{zlib_version} # part of HP-2012.4 Requires: ghc-async-devel = %{async_version} Requires: ghc-primitive-devel = %{primitive_version} Requires: ghc-split-devel = %{split_version} Requires: ghc-vector-devel = %{vector_version} # part of HP-2013.2 Requires: ghc-attoparsec-devel = %{attoparsec_version} Requires: ghc-case-insensitive-devel = %{case_insensitive_version} Requires: ghc-hashable-devel = %{hashable_version} Requires: ghc-unordered-containers-devel = %{unordered_containers_version} # part of HP-2014.2 Requires: ghc-hscolour-devel = %{hscolour_version} # 7.10.3 Requires: ghc-old-locale-devel = %{old_locale_version} Requires: ghc-old-time-devel = %{old_time_version} # added in F17 devel cycle Obsoletes: ghc-haskell-platform < %{version}-%{release} %description -n ghc-haskell-platform-devel This provides the haskell-platform meta library package. %global version %{haskell_platform_version} %prep %setup -q -c -n %{name}-%{version} cd %{name}-%{upstream_version} %patch1 -p1 -b .orig %patch2 -p1 %ifarch armv7hl %patch3 -p1 %endif # hack for h-p.cabal in top dir mkdir packages/%{name}-%{version} cp LICENSE hptool/Setup.hs packages/%{name}-%{version} cabal-tweak-dep-ver alex '==3.1.4' '==%{alex_version}' cabal-tweak-dep-ver async '==2.0.2' '==%{async_version}' cabal-tweak-dep-ver attoparsec '==0.13.0.1' '==%{attoparsec_version}' cabal-tweak-dep-ver case-insensitive '==1.2.0.5' '==%{case_insensitive_version}' cabal-tweak-dep-ver hashable '==1.2.3.3' '==%{hashable_version}' # HsColour reports 1.22 cabal-tweak-dep-ver hscolour '==1.23' '==1.22' cabal-tweak-dep-ver HTTP '==4000.2.20' '==%{HTTP_version}' cabal-tweak-dep-ver HUnit '==1.3.0.0' '==%{HUnit_version}' cabal-tweak-dep-ver network-uri '==2.6.0.3' '==%{network_uri_version}' cabal-tweak-dep-ver parallel '==3.2.0.6' '==%{parallel_version}' cabal-tweak-dep-ver parsec '==3.1.9' '==%{parsec_version}' cabal-tweak-dep-ver QuickCheck '==2.8.1' '==%{QuickCheck_version}' cabal-tweak-dep-ver scientific '==0.3.3.8' '==%{scientific_version}' cabal-tweak-dep-ver split '==0.2.2' '==%{split_version}' cabal-tweak-dep-ver text '==1.2.1.3' '==%{text_version}' cabal-tweak-dep-ver unordered-containers '==0.2.5.1' '==%{unordered_containers_version}' cabal-tweak-dep-ver zlib '==0.5.4.2' '==%{zlib_version}' mv %{name}.cabal packages/%{name}-%{version} mv packages/* .. %build %ghc_libs_build $(egrep \-v "^(%{?separate_packages})-[0-9]" %{name}-%{upstream_version}/etc/build.packages) %{name}-%{version} %install %ghc_libs_install $(egrep \-v "^(%{?separate_packages})-[0-9]" %{name}-%{upstream_version}/etc/build.packages) %{name}-%{version} mv %{buildroot}%{_datadir}/licenses/ghc-haskell-platform{,-devel} %ghc_strip_dynlinked %post -n ghc-haskell-platform-devel %ghc_pkg_recache %postun -n ghc-haskell-platform-devel %ghc_pkg_recache %files %license %{name}-%{version}/LICENSE %files -n ghc-haskell-platform-devel -f ghc-haskell-platform-devel.files %license %{name}-%{version}/LICENSE %changelog * Wed Sep 28 2016 Jens Petersen - 2016.7.10.3-3 - rebuild * Fri Jul 29 2016 Jens Petersen - 2016.7.10.3-2 - split-0.2.3.1 - use new ghc_libs_build and ghc_libs_install macros - disable GL packages for armv7hl (#1372527) * Thu Jun 23 2016 Jens Petersen - 2016.7.10.3-1 - update to new haskell-platform version 7.10.3 - new half multipart ObjectName StateVar subpackages - haskell98 dropped and cgi is back - old-locale and old-time packages added - bump version to 2016 for version bumps and to avoid epoch - alex-3.1.7, async-2.1.0, attoparsec-0.13.0.2, cabal-install-1.22.9.0, HUnit-1.3.1.1, network-uri 2.6.1.0, parallel-3.2.1.0, parsec-3.1.11, QuickCheck-2.8.2, scientific-0.3.4.7, split-0.2.3, text-1.2.2.1, zlib-0.6.1.1 * Wed Feb 03 2016 Fedora Release Engineering - 2014.2.0.0.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 2014.2.0.0.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed May 13 2015 Jens Petersen - 2014.2.0.0.3-4 - bump cabal-install to 1.18.1.0 and allow newer versions * Fri Apr 10 2015 Jens Petersen - 2014.2.0.0.2-3 - workaround build-tools version detection failures on aarch64 (#1210323) * Fri Apr 3 2015 Jens Petersen - 2014.2.0.0.2-2 - bump alex to 3.1.4 - bump cabal-install to 1.18.0.8 - bump happy to 1.19.5 - bump QuickCheck to 2.7.6 * Fri Feb 6 2015 Jens Petersen - 2014.2.0.0.1-1 - use ghc-7.8.4 - bump attoparsec to 0.11.3.4 - bump text to 1.1.1.3 * Wed Aug 20 2014 Jens Petersen - 2014.2.0.0-1 - update to haskell-platform-2014.2 - ghc-7.8.3+ ships xhtml - cgi dropped - requires hscolour * Tue Jul 8 2014 Jens Petersen - 2013.2.0.0-37 - rebuild for F21 * Mon Apr 21 2014 Jens Petersen - 2013.2.0.0-36 - fix build for versioned docdirs * Mon Apr 21 2014 Jens Petersen - 2013.2.0.0-35 - alex and syb are separate packages again * Mon Apr 14 2014 Jens Petersen - 2013.2.0.0-34 - cabal-install, happy, parallel, regex-compat are now separate packages * Thu Mar 27 2014 Jens Petersen - 2013.2.0.0-33 - transformers lib is now separate package * Wed Mar 26 2014 Jens Petersen - 2013.2.0.0-32 - QuickCheck and HTTP are separate packages again * Mon Mar 17 2014 Jens Petersen - 2013.2.0.0-31 - HUnit is a separate package again - network is a separate package again * Thu Feb 6 2014 Jens Petersen - only show cabal-install upgrade notice for verbose * Mon Feb 3 2014 Jens Petersen - 2013.2.0.0-30 - parsec is now a separate package again - async is now a new separate package * Wed Jan 8 2014 Jens Petersen - 2013.2.0.0-29 - regex-posix is now a separate package * Fri Jan 3 2014 Jens Petersen - 2013.2.0.0-28 - html and regex-base are now separate packages * Wed Dec 4 2013 Jens Petersen - 2013.2.0.0-27 - mtl and zlib are now separate packages again * Thu Oct 31 2013 Jens Petersen - 2013.2.0.0-26 - fix alex patching for ppc and s390 archs * Sat Oct 26 2013 Jens Petersen - 2013.2.0.0-25 - random and stm are separate packages again * Fri Jul 26 2013 Jens Petersen - 2013.2.0.0-24 - fix packaging of license files when building without shared libraries - tweaks for F20 unversioned docdir * Sat May 4 2013 Jens Petersen - 2013.2.0.0-23 - update to 2013.2.0.0 - new packages: GLURaw, OpenGLRaw - new depends: attoparsec, case-insensitive, hashable, unordered-containers - use ghc_fix_dynamic_rpath - text lib is separate package again * Thu Feb 14 2013 Fedora Release Engineering - 2012.4.0.0-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Dec 6 2012 Jens Petersen - 2012.4.0.0-21 - vector was patched to build on all archs (#883479) * Wed Dec 5 2012 Jens Petersen - 2012.4.0.0-20 - keep split, vector, and primitive in their own existing src packages - allow building on ghc archs without ghci: ie without vector library (#883479) * Sat Oct 20 2012 Jens Petersen - 2012.4.0.0-19 - update to 2012.4.0.0 - new subpackages: async, split, vector, and primitive (vector dep) - drop explicit BR hscolour * Mon Jul 23 2012 Jens Petersen - 2012.2.0.0-18 - also apply the alex fix-bang-pattern patch for s390 and s390x * Thu Jul 19 2012 Fedora Release Engineering - 2012.2.0.0-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Jul 16 2012 Jens Petersen - 2012.2.0.0-16 - change prof BRs to devel * Thu Jun 7 2012 Jens Petersen - 2012.2.0.0-15 - update to 2012.2.0.0 - build the whole of haskell-platform now from this package and subpackage like ghc's libraries - add alex fix-bang-pattern.diff patch from Debian to fix build on ppc archs - requires BR alex - drop common_summary and common_description for subpackaging - no longer need to unset debug_package - make sure all the dynamically linked files get stripped - needs ghc-rpm-macros 0.95.2 or later to build - use chrpath to fix the program RPATHs when dynamically linked to HP libs * Wed May 9 2012 Jens Petersen - 2011.4.0.741-2 - update cabal-install to 0.14.0 * Sat Mar 24 2012 Jens Petersen - 2011.4.0.741-1 - update to ghc-7.4.1 and latest libraries - temporarily just a meta-package * Wed Mar 21 2012 Jens Petersen - 2011.4.0.0-7 - require ghc-compiler instead of ghc to avoid the ghc lib * Fri Jan 20 2012 Jens Petersen - 2011.4.0.0-6 - update to cabal2spec-0.25.2 * Thu Jan 19 2012 Jens Petersen - 2011.4.0.0-5 - update the description * Thu Jan 19 2012 Jens Petersen - 2011.4.0.0-4 - update the source url * Fri Jan 13 2012 Fedora Release Engineering - 2011.4.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Sun Jan 1 2012 Jens Petersen - 2011.4.0.0-2 - define ghc_without_shared since ghc-haskell-platform-devel no longer requires ghc-haskell-platform * Wed Dec 28 2011 Jens Petersen - 2011.4.0.0-1 - update to 2011.4.0.0 - reenable ppc64 - drop ghc-haskell-platform subpackage - require ghc-libraries instead of ghc-devel * Tue Jun 21 2011 Jens Petersen - 2011.2.0.1-2 - ghc_arches replaces ghc_excluded_archs (cabal2spec-0.23.2) * Mon Jun 20 2011 Jens Petersen - 2011.2.0.1-1 - update to 2011.2.0.1: ghc-7.0.3 and text-0.11.0.6 - update source url - use ghc_excluded_archs - exclude ppc64: no QuickCheck - bump ghc to 7.0.4 - use top_prefix for path to haskell-platform subdir in large tarball - drop upstream_version * Fri May 27 2011 Jens Petersen - 2011.2.0.0-5 - drop the prof subpackage * Wed May 25 2011 Jens Petersen - 2011.2.0.0-4 - add ppc64 arch * Mon Mar 28 2011 Jens Petersen - 2011.2.0.0-3 - remove duplicate license file from ghc-haskell-platform * Mon Mar 28 2011 Jens Petersen - 2011.2.0.0-2 - fix the install scripts: - ghc_reindex_haddock is now redundant - use ghc_pkg_recache * Fri Mar 11 2011 Jens Petersen - 2011.2.0.0-1 - 2011.2.0.0 final * Thu Mar 10 2011 Fabio M. Di Nitto - 2011.1.0.0-0.6 - Enable build on sparcv9 * Tue Feb 15 2011 Jens Petersen - 2011.1.0.0-0.5 - update to latest haskell-platform-2011.1 snapshot * Wed Feb 09 2011 Fedora Release Engineering - 2011.1.0.0-0.4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sat Jan 22 2011 Jens Petersen - 2011.1.0.0-0.3 - make ghc-haskell-platform-devel require ghc-devel and ghc_devel_requires - build with ghc_lib_build and without_haddock * Tue Jan 18 2011 Jens Petersen - 2011.1.0.0-0.2 - update to cabal2spec-0.22.4 * Sun Dec 5 2010 Jens Petersen - 2011.1.0.0-0.1 - update to 2011.1.0.0 alpha snapshot * Fri Nov 26 2010 Jens Petersen - 2010.2.0.0.701-1 - bump some versions for ghc-7.0.1 - add hscolour - no haddock documentation to build - remove duplicate LICENSE file * Fri Jul 23 2010 Jens Petersen - 2010.2.0.0-1 - update to 2010.2.0.0 final release (no actual changes) * Sun Jul 18 2010 Jens Petersen - 2010.2.0.0-0.1 - drop debuginfo again: ghc_strip_dynlinked got fixed in ghc-rpm-macros-0.8.1 * Fri Jul 16 2010 Jens Petersen - 2010.2.0.0-0.1 - update to 2010.2.0.0 RC - obsolete ghc-haskell-platform-doc in line with ghc-rpm-macros-0.8.0 - add License to base library too * Sun Jun 27 2010 Jens Petersen - 2010.1.0.0.6123-1 - bump ghc to 6.12.3 - sync cabal2spec-0.22.1 - enable debugging for now to avoid empty strip error * Thu Apr 29 2010 Jens Petersen - 2010.1.0.0.6122-1 - break haskell-platform-2010.1.0.0 with ghc-6.12.2 * Wed Mar 24 2010 Jens Petersen - 2010.1.0.0-1 - update to 2010.1.0.0 beta release - update versions of alex, cgi, network, parallel, QuickCheck, HTTP - new deepseq dep (#576482) * Thu Jan 28 2010 Jens Petersen - 2009.3.1.20100115-0.2 - add filelist for shared libs - update devel post and postun * Sat Jan 16 2010 Jens Petersen - 2009.3.1.20100115-0.1 - update to darcs snapshot patched for ghc-6.12.1 - update to ghc-rpm-macros-0.5.1 and cabal2spec-0.21.1: - drop doc and prof bcond - use common_summary and common_description - use ghc_lib_package and ghc_pkg_deps - build shared library - drop redundant buildroot and its install cleaning * Mon Sep 28 2009 Jens Petersen - 2009.2.0.2-3 - fix rpmlint warnings (bos, #523883) * Mon Sep 28 2009 Jens Petersen - 2009.2.0.2-2 - add all the buildrequires (#523883) - create ghcpkgdir since metapackage - nothing in bindir * Thu Sep 17 2009 Jens Petersen - 2009.2.0.2-1 - initial packaging for Fedora