|
@@ -1,11 +1,24 @@
|
|
%define pkg_name haskell-platform
|
|
%define pkg_name haskell-platform
|
|
-%define year_version 2015
|
|
+%define year_version 2016
|
|
-%define pkg_version 7.10.3
|
|
+%define pkg_version 8.0.1
|
|
-%define pkg_release 3%{?_dist_release}
|
|
+%define pkg_release 1%{?_dist_release}
|
|
|
|
+
|
|
|
|
+%define ghc_version 8.0.1
|
|
|
|
+
|
|
|
|
+%define hscolour_version 1.24
|
|
|
|
+%define cabal_version 1.24.0.0
|
|
|
|
+%define stack_version 1.1.2
|
|
|
|
+
|
|
|
|
+# to fix wrong dependencies in cabal files
|
|
|
|
+# do not use '-'
|
|
|
|
+%define ed25519_version 0.0.5.0
|
|
|
|
+%define hackagesecurity_version 0.5.2.2
|
|
|
|
+
|
|
|
|
+%define hastache_version 0.6.1
|
|
|
|
+%define oldlocale_version 1.0.0.7
|
|
|
|
+%define oldtime_version 1.1.0.3
|
|
|
|
+%define utf8string_version 1.0.1.1
|
|
|
|
|
|
-%define ghc_version 7.10.3
|
|
|
|
-%define alex_version 3.1.4
|
|
|
|
-%define happy_version 1.19.5
|
|
|
|
|
|
|
|
%ifarch %{ix86}
|
|
%ifarch %{ix86}
|
|
%define rpmarch i386
|
|
%define rpmarch i386
|
|
@@ -25,19 +38,170 @@ Group: Applications/Languages
|
|
|
|
|
|
Source0: %{name}-%{pkg_version}.tar.gz
|
|
Source0: %{name}-%{pkg_version}.tar.gz
|
|
|
|
|
|
|
|
+Source1: packages.cabal-install
|
|
|
|
+Source2: packages.stack
|
|
|
|
+
|
|
|
|
+# LTS Haskell 7.18 (ghc-8.0.1): Published on 2017-01-29
|
|
|
|
+# cabal-install
|
|
|
|
+# num=11; for pkg in `cat packages.cabal-install`; do echo "Source${num}: ${pkg}.tar.gz"; num=`expr ${num} + 1`; done
|
|
|
|
+Source11: base16-bytestring-0.1.1.6.tar.gz
|
|
|
|
+Source12: base64-bytestring-1.0.0.1.tar.gz
|
|
|
|
+Source13: cryptohash-sha256-0.11.100.1.tar.gz
|
|
|
|
+Source14: ed25519-0.0.5.0.tar.gz
|
|
|
|
+Source15: tar-0.5.0.3.tar.gz
|
|
|
|
+Source16: hackage-security-0.5.2.2.tar.gz
|
|
|
|
+Source17: cabal-install-1.24.0.0.tar.gz
|
|
|
|
+
|
|
|
|
+# stack
|
|
|
|
+# num=101; for pkg in `cat packages.stack`; do echo "Source${num}: ${pkg}.tar.gz"; num=`expr ${num} + 1`; done
|
|
|
|
+Source101: SHA-1.6.4.2.tar.gz
|
|
|
|
+Source102: ansi-terminal-0.6.2.3.tar.gz
|
|
|
|
+Source103: ansi-wl-pprint-0.6.7.3.tar.gz
|
|
|
|
+Source104: auto-update-0.1.4.tar.gz
|
|
|
|
+Source105: base-compat-0.9.1.tar.gz
|
|
|
|
+Source106: base-orphans-0.5.4.tar.gz
|
|
|
|
+Source107: blaze-builder-0.4.0.2.tar.gz
|
|
|
|
+Source108: blaze-markup-0.7.1.1.tar.gz
|
|
|
|
+Source109: blaze-html-0.8.1.3.tar.gz
|
|
|
|
+Source110: byteable-0.1.1.tar.gz
|
|
|
|
+Source111: bytestring-builder-0.10.8.1.0.tar.gz
|
|
|
|
+Source112: cereal-0.5.4.0.tar.gz
|
|
|
|
+Source113: data-default-class-0.1.2.0.tar.gz
|
|
|
|
+Source114: digest-0.0.1.2.tar.gz
|
|
|
|
+Source115: dlist-0.8.0.2.tar.gz
|
|
|
|
+Source116: transformers-compat-0.5.1.4.tar.gz
|
|
|
|
+Source117: Glob-0.7.14.tar.gz
|
|
|
|
+Source118: easy-file-0.2.1.tar.gz
|
|
|
|
+Source119: edit-distance-0.2.2.1.tar.gz
|
|
|
|
+Source120: extra-1.4.10.tar.gz
|
|
|
|
+Source121: fail-4.9.0.0.tar.gz
|
|
|
|
+Source122: filelock-0.1.0.1.tar.gz
|
|
|
|
+Source123: generic-deriving-1.11.1.tar.gz
|
|
|
|
+Source124: generics-sop-0.2.3.0.tar.gz
|
|
|
|
+Source125: gitrev-1.2.0.tar.gz
|
|
|
|
+Source126: hinotify-0.3.9.tar.gz
|
|
|
|
+Source127: hourglass-0.2.10.tar.gz
|
|
|
|
+Source128: http-types-0.9.1.tar.gz
|
|
|
|
+Source129: ieee754-0.7.9.tar.gz
|
|
|
|
+Source130: hastache-0.6.1.tar.gz
|
|
|
|
+Source131: memory-0.13.tar.gz
|
|
|
|
+Source132: asn1-types-0.3.2.tar.gz
|
|
|
|
+Source133: asn1-encoding-0.9.4.tar.gz
|
|
|
|
+Source134: asn1-parse-0.9.4.tar.gz
|
|
|
|
+Source135: cryptonite-0.21.tar.gz
|
|
|
|
+Source136: cryptohash-0.11.9.tar.gz
|
|
|
|
+Source137: microlens-0.4.7.0.tar.gz
|
|
|
|
+Source138: mime-types-0.1.0.7.tar.gz
|
|
|
|
+Source139: monad-loops-0.4.3.tar.gz
|
|
|
|
+Source140: nats-1.1.1.tar.gz
|
|
|
|
+Source141: old-locale-1.0.0.7.tar.gz
|
|
|
|
+Source142: cookie-0.4.2.1.tar.gz
|
|
|
|
+Source143: old-time-1.1.0.3.tar.gz
|
|
|
|
+Source144: open-browser-0.2.1.0.tar.gz
|
|
|
|
+Source145: path-pieces-0.2.1.tar.gz
|
|
|
|
+Source146: patience-0.1.1.tar.gz
|
|
|
|
+Source147: pem-0.2.2.tar.gz
|
|
|
|
+Source148: prelude-extras-0.4.0.3.tar.gz
|
|
|
|
+Source149: regex-applicative-0.3.3.tar.gz
|
|
|
|
+Source150: regex-applicative-text-0.1.0.1.tar.gz
|
|
|
|
+Source151: safe-0.3.11.tar.gz
|
|
|
|
+Source152: semigroups-0.18.2.tar.gz
|
|
|
|
+Source153: silently-1.2.5.tar.gz
|
|
|
|
+Source154: socks-0.5.5.tar.gz
|
|
|
|
+Source155: split-0.2.3.1.tar.gz
|
|
|
|
+Source156: stm-chans-3.0.0.4.tar.gz
|
|
|
|
+Source157: streaming-commons-0.1.17.tar.gz
|
|
|
|
+Source158: system-filepath-0.4.13.4.tar.gz
|
|
|
|
+Source159: system-fileio-0.3.16.3.tar.gz
|
|
|
|
+Source160: tagged-0.8.5.tar.gz
|
|
|
|
+Source161: aeson-0.11.3.0.tar.gz
|
|
|
|
+Source162: binary-tagged-0.1.4.2.tar.gz
|
|
|
|
+Source163: text-binary-0.2.1.1.tar.gz
|
|
|
|
+Source164: time-locale-compat-0.1.1.3.tar.gz
|
|
|
|
+Source165: http-api-data-0.2.4.tar.gz
|
|
|
|
+Source166: MonadRandom-0.4.2.3.tar.gz
|
|
|
|
+Source167: constraints-0.8.tar.gz
|
|
|
|
+Source168: distributive-0.5.1.tar.gz
|
|
|
|
+Source169: exceptions-0.8.3.tar.gz
|
|
|
|
+Source170: aeson-compat-0.3.6.tar.gz
|
|
|
|
+Source171: http-client-0.4.31.2.tar.gz
|
|
|
|
+Source172: mmorph-1.0.9.tar.gz
|
|
|
|
+Source173: optparse-applicative-0.12.1.0.tar.gz
|
|
|
|
+Source174: path-0.5.11.tar.gz
|
|
|
|
+Source175: retry-0.7.4.2.tar.gz
|
|
|
|
+Source176: temporary-1.2.0.4.tar.gz
|
|
|
|
+Source177: unix-compat-0.4.3.1.tar.gz
|
|
|
|
+Source178: path-io-1.2.2.tar.gz
|
|
|
|
+Source179: transformers-base-0.4.4.tar.gz
|
|
|
|
+Source180: monad-control-1.0.1.0.tar.gz
|
|
|
|
+Source181: lifted-base-0.2.3.8.tar.gz
|
|
|
|
+Source182: enclosed-exceptions-1.0.2.tar.gz
|
|
|
|
+Source183: monad-unlift-0.2.0.tar.gz
|
|
|
|
+Source184: resource-pool-0.2.3.2.tar.gz
|
|
|
|
+Source185: resourcet-1.1.9.tar.gz
|
|
|
|
+Source186: conduit-1.2.8.tar.gz
|
|
|
|
+Source187: conduit-extra-1.1.15.tar.gz
|
|
|
|
+Source188: cryptohash-conduit-0.1.1.tar.gz
|
|
|
|
+Source189: project-template-0.2.0.tar.gz
|
|
|
|
+Source190: unexceptionalio-0.3.0.tar.gz
|
|
|
|
+Source191: errors-2.1.3.tar.gz
|
|
|
|
+Source192: fsnotify-0.2.1.tar.gz
|
|
|
|
+Source193: unix-time-0.3.7.tar.gz
|
|
|
|
+Source194: fast-logger-2.4.8.tar.gz
|
|
|
|
+Source195: monad-logger-0.3.20.1.tar.gz
|
|
|
|
+Source196: persistent-2.6.tar.gz
|
|
|
|
+Source197: persistent-sqlite-2.6.tar.gz
|
|
|
|
+Source198: persistent-template-2.5.1.6.tar.gz
|
|
|
|
+Source199: utf8-string-1.0.1.1.tar.gz
|
|
|
|
+Source200: vector-binary-instances-0.2.3.4.tar.gz
|
|
|
|
+Source201: void-0.7.1.tar.gz
|
|
|
|
+Source202: contravariant-1.4.tar.gz
|
|
|
|
+Source203: comonad-5.tar.gz
|
|
|
|
+Source204: bifunctors-5.4.1.tar.gz
|
|
|
|
+Source205: profunctors-5.2.tar.gz
|
|
|
|
+Source206: semigroupoids-5.1.tar.gz
|
|
|
|
+Source207: free-4.12.4.tar.gz
|
|
|
|
+Source208: either-4.4.1.1.tar.gz
|
|
|
|
+Source209: optparse-simple-0.0.3.tar.gz
|
|
|
|
+Source210: x509-1.6.5.tar.gz
|
|
|
|
+Source211: x509-store-1.6.2.tar.gz
|
|
|
|
+Source212: x509-system-1.6.4.tar.gz
|
|
|
|
+Source213: x509-validation-1.6.5.tar.gz
|
|
|
|
+Source214: tls-1.3.9.tar.gz
|
|
|
|
+Source215: connection-0.2.7.tar.gz
|
|
|
|
+Source216: http-client-tls-0.2.4.1.tar.gz
|
|
|
|
+Source217: http-conduit-2.1.11.tar.gz
|
|
|
|
+Source218: yaml-0.8.21.2.tar.gz
|
|
|
|
+Source219: hpack-0.14.1.tar.gz
|
|
|
|
+Source220: zip-archive-0.3.0.5.tar.gz
|
|
|
|
+Source221: zlib-bindings-0.1.1.5.tar.gz
|
|
|
|
+Source222: hit-0.6.3.tar.gz
|
|
|
|
+Source223: stack-1.1.2.tar.gz
|
|
|
|
+
|
|
|
|
+# to fix wrong dependencies in cabal files
|
|
|
|
+Source301: ed25519.cabal
|
|
|
|
+
|
|
|
|
+Source401: hastache.cabal
|
|
|
|
+Source402: old-locale.cabal
|
|
|
|
+Source403: old-time.cabal
|
|
|
|
+Source404: utf8-string.cabal
|
|
|
|
+Source405: stack.cabal
|
|
|
|
+
|
|
BuildRoot: %{_tmppath}/%{name}-%{pkg_version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{pkg_version}-root
|
|
|
|
|
|
-BuildRequires: ghc
|
|
+BuildRequires: ghc = %{ghc_version}
|
|
BuildRequires: gmp-devel zlib-devel freeglut-devel
|
|
BuildRequires: gmp-devel zlib-devel freeglut-devel
|
|
BuildRequires: libffi-devel
|
|
BuildRequires: libffi-devel
|
|
BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl
|
|
BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl
|
|
-BuildRequires: hscolour
|
|
|
|
|
|
|
|
-Requires: haskell-platform-base = %{version}
|
|
+Requires: ghc = %{ghc_version}
|
|
-Requires: alex
|
|
+Requires: freeglut-devel
|
|
-Requires: happy
|
|
+
|
|
-Requires: cabal-install
|
|
+Conflicts: alex
|
|
-Requires: hscolour
|
|
+Conflicts: happy
|
|
|
|
+Conflicts: haskell-platform-base
|
|
|
|
+Conflicts: cabal-install
|
|
|
|
+Conflicts: hscolour
|
|
|
|
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
@@ -51,176 +215,161 @@ functional language, quite different from most other programming languages.
|
|
The language is named for Haskell Brooks Curry, whose work in mathematical
|
|
The language is named for Haskell Brooks Curry, whose work in mathematical
|
|
logic serves as a foundation for functional languages.
|
|
logic serves as a foundation for functional languages.
|
|
|
|
|
|
-This is a meta package for installing haskell-platform, alex, happy and
|
|
|
|
-cabal-install.
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-%package base
|
|
|
|
-Version: %{version}
|
|
|
|
-Summary: base package of haskell-platform
|
|
|
|
-Summary(ja): haskell-platformの基本パッケージ
|
|
|
|
-License: BSD-like
|
|
|
|
-Group: Applications/Languages
|
|
|
|
-
|
|
|
|
-Requires: ghc = %{ghc_version}
|
|
|
|
-Requires: freeglut
|
|
|
|
-Requires: gmp-devel
|
|
|
|
-
|
|
|
|
-%description base
|
|
|
|
-Base package for haskell-platform without alex, cabal, happy and HsColour.
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-%package -n alex
|
|
|
|
-Version: %{alex_version}
|
|
|
|
-Summary: lexical analyser generator for Haskell
|
|
|
|
-Summary(ja): Haskell用の構文解析器生成器
|
|
|
|
-License: BSD3
|
|
|
|
-Group: Applications/Text
|
|
|
|
-
|
|
|
|
-%description -n alex
|
|
|
|
-Alex is a tool for generating lexical analysers in Haskell,
|
|
|
|
-given a description of the tokens to be recognised
|
|
|
|
-in the form of regular expressions.
|
|
|
|
-It is similar to the tool lex or flex for C/C++.
|
|
|
|
-
|
|
|
|
-%description -l ja -n alex
|
|
|
|
-AlexはHaskellで字句解析器を生成するツールで、
|
|
|
|
-トークン群の記述を正規表現の形式で認識します。
|
|
|
|
-C/C++用のlexやflexといったツールに似ています。
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-%package -n happy
|
|
|
|
-Version: %{happy_version}
|
|
|
|
-Summary: a parser generator system for Haskell
|
|
|
|
-Summary(ja): Haskell 用の構文解析器生成器
|
|
|
|
-License: BSD3
|
|
|
|
-Group: Applications/Text
|
|
|
|
-
|
|
|
|
-%description -n happy
|
|
|
|
-Happy is a parser generator system for Haskell, similar to the tool 'yacc'
|
|
|
|
-for C. Like 'yacc', it takes a file containing an annotated BNF specification
|
|
|
|
-of a grammar and produces a Haskell module containing a parser for the grammar.
|
|
|
|
-
|
|
|
|
-%description -l ja -n happy
|
|
|
|
-HappyはHaskell用の構文解析器生成器のシステムで、C用ツールの'yacc'に似ています。
|
|
|
|
-'yacc'の様に注釈付きのBNF形式の文法の仕様を含んだファイルを受け取って、
|
|
|
|
-その文法の構文解析器を含んだHaskellモジュールを生成します。
|
|
|
|
-
|
|
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
%setup -q -n %{name}-%{pkg_version}
|
|
%setup -q -n %{name}-%{pkg_version}
|
|
-%{__cat} etc/build.packages | \
|
|
|
|
- %{__sed} -e /hscolour/d | \
|
|
|
|
- %{__sed} -e /cabal-install/d > build.packages
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
-PKGCONFDIR=${RPM_BUILD_ROOT}%{_libdir}/ghc-%{ghc_version}/package.conf.d/%{name}
|
|
+PKGNAME=%{name}-%{version}
|
|
|
|
+PKGCONFDIR=${RPM_BUILD_ROOT}%{_libdir}/ghc-%{ghc_version}/package.conf.d
|
|
%{__mkdir_p} ${PKGCONFDIR}
|
|
%{__mkdir_p} ${PKGCONFDIR}
|
|
|
|
|
|
-export PATH=${RPM_BUILD_ROOT}%{_bindir}:${PATH}
|
|
+export PATH=${RPM_BUILD_ROOT}%{_bindir}:${HOME}/.cabal/bin:${PATH}
|
|
export LANG=en_US.utf8
|
|
export LANG=en_US.utf8
|
|
|
|
|
|
-# build and install
|
|
+# hscolour (bootstrap)
|
|
|
|
+pkg=hscolour-%{hscolour_version}
|
|
|
|
+cd %{_builddir}/%{name}-%{pkg_version}/packages/${pkg}
|
|
|
|
+ghc --make Setup
|
|
|
|
+./Setup configure --user
|
|
|
|
+./Setup build
|
|
|
|
+./Setup copy
|
|
|
|
+./Setup register --inplace
|
|
|
|
+
|
|
|
|
+# haskell-platform
|
|
|
|
+cd %{_builddir}/%{name}-%{pkg_version}
|
|
cd packages
|
|
cd packages
|
|
-for pkg in `cat ../build.packages`; do
|
|
+for pkg in `cat ../etc/build.packages`; do
|
|
- cd ${pkg}
|
|
+ cd ${pkg}
|
|
- ghc --make Setup
|
|
+ ghc --make Setup
|
|
- if [ ${pkg} = "alex-%{alex_version}" ] || \
|
|
+ ./Setup configure \
|
|
- [ ${pkg} = "happy-%{happy_version}" ]
|
|
+ --user \
|
|
- then
|
|
+ --prefix=%{_prefix} \
|
|
- ./Setup configure \
|
|
+ --libdir=%{_libdir}/${PKGNAME}/${pkg} \
|
|
- --user \
|
|
+ --libsubdir= \
|
|
- --prefix=%{_prefix} \
|
|
+ --datadir=%{_datadir}/${PKGNAME}/${pkg} \
|
|
- --datadir=%{_datadir}/${pkg} \
|
|
+ --datasubdir= \
|
|
- --datasubdir= \
|
|
+ --docdir=%{_docdir}/${PKGNAME}/${pkg}
|
|
- --docdir=%{_docdir}/${pkg}
|
|
+
|
|
- else
|
|
+ ./Setup build
|
|
- ./Setup configure \
|
|
+ ./Setup haddock || :
|
|
- --user \
|
|
+ ./Setup copy --destdir=${RPM_BUILD_ROOT}
|
|
- --prefix=%{_prefix} \
|
|
+ ./Setup register --inplace
|
|
- --libdir=%{_libdir}/%{name}/${pkg} \
|
|
+ ./Setup register --gen-pkg-config=${PKGCONFDIR}/${pkg}.conf
|
|
- --libsubdir= \
|
|
+ cd ..
|
|
- --datadir=%{_datadir}/%{name}/${pkg} \
|
|
+done
|
|
- --datasubdir= \
|
|
+
|
|
- --docdir=%{_docdir}/%{name}-%{year_version}.%{pkg_version}/${pkg}
|
|
+# cabal-install
|
|
- fi
|
|
+cd %{_builddir}
|
|
-
|
|
+for pkg in `cat %{SOURCE1}`; do
|
|
- ./Setup build
|
|
+ %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz
|
|
- ./Setup haddock || :
|
|
+ cd ${pkg}
|
|
- ./Setup copy --destdir=${RPM_BUILD_ROOT}
|
|
+ # fix wrong dependencies
|
|
- ./Setup register --inplace
|
|
+ case ${pkg} in
|
|
- ./Setup register --gen-pkg-config=${PKGCONFDIR}/${pkg}
|
|
+ "ed25519-%{ed25519_version}") %{__cp} %{SOURCE301} . ;;
|
|
- cd ..
|
|
+ *) ;;
|
|
|
|
+ esac
|
|
|
|
+
|
|
|
|
+ ghc --make Setup
|
|
|
|
+ if [ ${pkg} = "cabal-install-%{cabal_version}" ]
|
|
|
|
+ then
|
|
|
|
+ ./Setup configure \
|
|
|
|
+ --user \
|
|
|
|
+ --prefix=%{_prefix} \
|
|
|
|
+ --docdir=%{_docdir}/${PKGNAME}/${pkg}
|
|
|
|
+
|
|
|
|
+ ./Setup build
|
|
|
|
+ ./Setup copy --destdir=${RPM_BUILD_ROOT}
|
|
|
|
+ else
|
|
|
|
+ ./Setup configure --user
|
|
|
|
+ ./Setup build
|
|
|
|
+ ./Setup copy
|
|
|
|
+ ./Setup register --inplace
|
|
|
|
+ fi
|
|
|
|
+ cd ..
|
|
|
|
+done
|
|
|
|
+
|
|
|
|
+# stack
|
|
|
|
+cd %{_builddir}
|
|
|
|
+for pkg in `cat %{SOURCE2}`; do
|
|
|
|
+ %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz
|
|
|
|
+ cd ${pkg}
|
|
|
|
+ # fix wrong dependencies
|
|
|
|
+ case ${pkg} in
|
|
|
|
+ "hastache-%{hastache_version}") %{__cp} %{SOURCE401} . ;;
|
|
|
|
+ "old-locale-%{oldlocale_version}") %{__cp} %{SOURCE402} . ;;
|
|
|
|
+ "old-time-%{oldtime_version}") %{__cp} %{SOURCE403} . ;;
|
|
|
|
+ "utf8-string-%{utf8string_version}") %{__cp} %{SOURCE404} . ;;
|
|
|
|
+ "stack-%{stack_version}") %{__cp} %{SOURCE405} . ;;
|
|
|
|
+ *) ;;
|
|
|
|
+ esac
|
|
|
|
+
|
|
|
|
+ if [ ${pkg} = "stack-%{stack_version}" ]
|
|
|
|
+ then
|
|
|
|
+ cabal install --enable-documentation
|
|
|
|
+ else
|
|
|
|
+ cabal install
|
|
|
|
+ fi
|
|
|
|
+ cd ..
|
|
done
|
|
done
|
|
|
|
|
|
%install
|
|
%install
|
|
-# copy document files each directory
|
|
+# stack
|
|
-%{__cp} LICENSE README \
|
|
+%{__install} -m 755 ${HOME}/.cabal/bin/stack \
|
|
- ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{year_version}.%{pkg_version}
|
|
+ ${RPM_BUILD_ROOT}%{_bindir}
|
|
-%{__cp} packages/alex-%{alex_version}/{ANNOUNCE,README,TODO} \
|
|
+
|
|
- ${RPM_BUILD_ROOT}%{_docdir}/alex-%{alex_version}/
|
|
+cd ${HOME}/.cabal/share/doc/%{rpmarch}-linux-ghc-%{ghc_version}
|
|
-%{__cp} packages/happy-%{happy_version}/{ANNOUNCE,CHANGES,README,TODO} \
|
|
+%{__mv} stack-%{stack_version} \
|
|
- ${RPM_BUILD_ROOT}%{_docdir}/happy-%{happy_version}/
|
|
+ ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}
|
|
|
|
+
|
|
|
|
+# hscolour
|
|
|
|
+cd ${RPM_BUILD_ROOT}%{_bindir}
|
|
|
|
+%{__ln_s} HsColour hscolour
|
|
|
|
|
|
%clean
|
|
%clean
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
-%post base
|
|
+%post
|
|
-cd %{_libdir}/ghc-%{ghc_version}/package.conf.d/%{name}
|
|
+ghc-pkg recache
|
|
-for conf in *
|
|
|
|
-do
|
|
|
|
- ghc-pkg register --verbose=0 --force $conf 2> /dev/null
|
|
|
|
-done
|
|
|
|
|
|
|
|
-%preun base
|
|
+%postun
|
|
-cd %{_libdir}/ghc-%{ghc_version}/package.conf.d/%{name}
|
|
+ghc-pkg recache
|
|
-for conf in *
|
|
|
|
-do
|
|
|
|
- ghc-pkg unregister --verbose=0 --force $conf 2> /dev/null
|
|
|
|
-done
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
%files
|
|
-
|
|
|
|
-%files base
|
|
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
-%{_libdir}/ghc-%{ghc_version}/package.conf.d/%{name}
|
|
+%{_bindir}/
|
|
-%{_libdir}/%{name}/
|
|
+%{_libdir}/%{name}-%{version}/
|
|
-%{_datadir}/%{name}/
|
|
+%{_libdir}/ghc-%{ghc_version}/package.conf.d/
|
|
-%{_docdir}/%{name}-%{year_version}.%{pkg_version}/
|
|
+%{_datadir}/%{name}-%{version}/
|
|
-
|
|
+%{_docdir}/%{name}-%{version}/
|
|
-%files -n alex
|
|
+%{_mandir}/man1/
|
|
-%{_bindir}/alex
|
|
|
|
-%{_datadir}/alex-%{alex_version}/
|
|
|
|
-%{_docdir}/alex-%{alex_version}/
|
|
|
|
-
|
|
|
|
-%files -n happy
|
|
|
|
-%{_bindir}/happy
|
|
|
|
-%{_datadir}/happy-%{happy_version}/
|
|
|
|
-%{_docdir}/happy-%{happy_version}/
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
-* Tue May 03 2016 Toshiaki Ara <ara_t@384.jp> 7.10.3-3
|
|
+* Wed Feb 01 2017 Toshiaki Ara <ara_t@384.jp> 2016.8.0.1-1
|
|
|
|
+- update to 2016.8.0.1
|
|
|
|
+
|
|
|
|
+* Tue May 03 2016 Toshiaki Ara <ara_t@384.jp> 2015.7.10.3-3
|
|
- modify SPEC file without usage of cabal-install
|
|
- modify SPEC file without usage of cabal-install
|
|
|
|
|
|
-* Mon Apr 11 2016 Toshiaki Ara <ara_t@384.jp> 7.10.3-2
|
|
+* Mon Apr 11 2016 Toshiaki Ara <ara_t@384.jp> 2015.7.10.3-2
|
|
- correct SPEC file
|
|
- correct SPEC file
|
|
|
|
|
|
-* Fri Feb 19 2016 Toshiaki Ara <ara_t@384.jp> 7.10.3-1
|
|
+* Fri Feb 19 2016 Toshiaki Ara <ara_t@384.jp> 2015.7.10.3-1
|
|
- update to 7.10.3
|
|
- update to 7.10.3
|
|
|
|
|
|
* Mon Feb 15 2016 Toshiaki Ara <ara_t@384.jp> 2013.2.0.0-4
|
|
* Mon Feb 15 2016 Toshiaki Ara <ara_t@384.jp> 2013.2.0.0-4
|
|
- delete subpackage cabal-install
|
|
- delete subpackage cabal-install
|
|
-- delete %{cabal_version} from Requires: cabal-install-%{cabal_version}
|
|
+- delete %%{cabal_version} from Requires: cabal-install-%%{cabal_version}
|
|
- add BuildRequires: libffi-devel
|
|
- add BuildRequires: libffi-devel
|
|
|
|
|
|
* Thu Feb 11 2016 Toshiaki Ara <ara_t@384.jp> 2013.2.0.0-3
|
|
* Thu Feb 11 2016 Toshiaki Ara <ara_t@384.jp> 2013.2.0.0-3
|
|
- correct Requires
|
|
- correct Requires
|
|
|
|
|
|
* Thu Feb 11 2016 Toshiaki Ara <ara_t@384.jp> 2013.2.0.0-2
|
|
* Thu Feb 11 2016 Toshiaki Ara <ara_t@384.jp> 2013.2.0.0-2
|
|
-- install Haskell libraries into %{_libdir}/ghc-lib
|
|
+- install Haskell libraries into %%{_libdir}/ghc-lib
|
|
- add BuildRequires: hscolour
|
|
- add BuildRequires: hscolour
|
|
- devide insto subpackages
|
|
- devide insto subpackages
|
|
|
|
|