haskell-platform-vl.spec 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  1. %bcond_with bootstrap
  2. %bcond_without stack
  3. %define pkg_name haskell-platform
  4. %define year_version 2018
  5. %define pkg_version 8.6.3
  6. %define pkg_release 1%{?_dist_release}
  7. %define ghc_version %{pkg_version}
  8. %define cabal_version 2.4.0.0
  9. %define stack_version 1.9.3
  10. %ifarch %{ix86}
  11. %define rpmarch i386
  12. %endif
  13. %ifarch x86_64
  14. %define rpmarch x86_64
  15. %endif
  16. Summary: An advanced purely-functional programming language
  17. Name: %{pkg_name}
  18. Version: %{year_version}.%{pkg_version}
  19. Release: %{pkg_release}
  20. License: BSD-like
  21. Group: Applications/Languages
  22. Source0: %{name}-%{pkg_version}.tar.gz
  23. Source1: packages.haskell
  24. Source2: packages.cabal-install
  25. Source3: packages.stack
  26. Source11: macros.cabal
  27. Source21: download-packages.pl
  28. Source22: generate-list.sh
  29. %if !%{with bootstrap}
  30. # ./download-packages.pl
  31. # ./generate-list.sh
  32. Source101: ObjectName-1.1.0.1.tar.gz
  33. Source102: ObjectName.cabal
  34. Source103: call-stack-0.1.0.tar.gz
  35. Source104: call-stack.cabal
  36. Source105: HUnit-1.6.0.0.tar.gz
  37. Source106: HUnit.cabal
  38. Source107: fgl-5.7.0.1.tar.gz
  39. Source108: fgl.cabal
  40. Source109: fixed-0.2.1.1.tar.gz
  41. Source110: fixed.cabal
  42. Source111: half-0.3.tar.gz
  43. Source112: half.cabal
  44. Source113: html-1.0.1.2.tar.gz
  45. Source114: html.cabal
  46. Source115: integer-logarithms-1.0.2.2.tar.gz
  47. Source116: integer-logarithms.cabal
  48. Source117: network-2.8.0.0.tar.gz
  49. Source118: network.cabal
  50. Source119: parallel-3.2.2.0.tar.gz
  51. Source120: parallel.cabal
  52. Source121: primitive-0.6.4.0.tar.gz
  53. Source122: primitive.cabal
  54. Source123: random-1.1.tar.gz
  55. Source124: random.cabal
  56. Source125: regex-base-0.93.2.tar.gz
  57. Source126: regex-base.cabal
  58. Source127: regex-posix-0.95.2.tar.gz
  59. Source128: regex-posix.cabal
  60. Source129: regex-compat-0.95.1.tar.gz
  61. Source130: regex-compat.cabal
  62. Source131: split-0.2.3.3.tar.gz
  63. Source132: split.cabal
  64. Source133: hashable-1.2.7.0.tar.gz
  65. Source134: hashable.cabal
  66. Source135: async-2.2.1.tar.gz
  67. Source136: async.cabal
  68. Source137: StateVar-1.1.1.1.tar.gz
  69. Source138: StateVar.cabal
  70. Source139: syb-0.7.tar.gz
  71. Source140: syb.cabal
  72. Source141: haskell-src-1.0.3.0.tar.gz
  73. Source142: haskell-src.cabal
  74. Source143: network-uri-2.6.1.0.tar.gz
  75. Source144: network-uri.cabal
  76. Source145: scientific-0.3.6.2.tar.gz
  77. Source146: scientific.cabal
  78. Source147: case-insensitive-1.2.0.11.tar.gz
  79. Source148: case-insensitive.cabal
  80. Source149: attoparsec-0.13.2.2.tar.gz
  81. Source150: attoparsec.cabal
  82. Source151: OpenGLRaw-3.3.1.0.tar.gz
  83. Source152: OpenGLRaw.cabal
  84. Source153: HTTP-4000.3.12.tar.gz
  85. Source154: HTTP.cabal
  86. Source155: GLURaw-2.0.0.4.tar.gz
  87. Source156: GLURaw.cabal
  88. Source157: OpenGL-3.0.2.2.tar.gz
  89. Source158: OpenGL.cabal
  90. Source159: GLUT-2.7.0.14.tar.gz
  91. Source160: GLUT.cabal
  92. Source161: tf-random-0.5.tar.gz
  93. Source162: tf-random.cabal
  94. Source163: erf-2.0.0.0.tar.gz
  95. Source164: erf.cabal
  96. Source165: QuickCheck-2.12.6.1.tar.gz
  97. Source166: QuickCheck.cabal
  98. Source167: unordered-containers-0.2.9.0.tar.gz
  99. Source168: unordered-containers.cabal
  100. Source169: vector-0.12.0.1.tar.gz
  101. Source170: vector.cabal
  102. Source171: zlib-0.6.2.tar.gz
  103. Source172: zlib.cabal
  104. Source173: base16-bytestring-0.1.1.6.tar.gz
  105. Source174: base16-bytestring.cabal
  106. Source175: base64-bytestring-1.0.0.2.tar.gz
  107. Source176: base64-bytestring.cabal
  108. Source177: cryptohash-sha256-0.11.101.0.tar.gz
  109. Source178: cryptohash-sha256.cabal
  110. Source179: ed25519-0.0.5.0.tar.gz
  111. Source180: ed25519.cabal
  112. Source181: tar-0.5.1.0.tar.gz
  113. Source182: tar.cabal
  114. Source183: hackage-security-0.5.3.0.tar.gz
  115. Source184: hackage-security.cabal
  116. Source185: echo-0.1.3.tar.gz
  117. Source186: echo.cabal
  118. Source187: edit-distance-0.2.2.1.tar.gz
  119. Source188: edit-distance.cabal
  120. Source189: resolv-0.1.1.2.tar.gz
  121. Source190: resolv.cabal
  122. Source191: digest-0.0.1.2.tar.gz
  123. Source192: digest.cabal
  124. Source193: zip-archive-0.3.3.tar.gz
  125. Source194: zip-archive.cabal
  126. Source195: cabal-install-2.4.0.0.tar.gz
  127. Source196: cabal-install.cabal
  128. %if %{with stack}
  129. Source197: annotated-wl-pprint-0.7.0.tar.gz
  130. Source198: annotated-wl-pprint.cabal
  131. Source199: auto-update-0.1.4.tar.gz
  132. Source200: auto-update.cabal
  133. Source201: base-compat-0.10.5.tar.gz
  134. Source202: base-compat.cabal
  135. Source203: base-orphans-0.8.tar.gz
  136. Source204: base-orphans.cabal
  137. Source205: base-prelude-1.3.tar.gz
  138. Source206: base-prelude.cabal
  139. Source207: basement-0.0.8.tar.gz
  140. Source208: basement.cabal
  141. Source209: bindings-uname-0.1.tar.gz
  142. Source210: bindings-uname.cabal
  143. Source211: bitarray-0.0.1.1.tar.gz
  144. Source212: bitarray.cabal
  145. Source213: blaze-builder-0.4.1.0.tar.gz
  146. Source214: blaze-builder.cabal
  147. Source215: byteable-0.1.1.tar.gz
  148. Source216: byteable.cabal
  149. Source217: cabal-doctest-1.0.6.tar.gz
  150. Source218: cabal-doctest.cabal
  151. Source219: cereal-0.5.7.0.tar.gz
  152. Source220: cereal.cabal
  153. Source221: clock-0.7.2.tar.gz
  154. Source222: clock.cabal
  155. Source223: cmdargs-0.10.20.tar.gz
  156. Source224: cmdargs.cabal
  157. Source225: colour-2.3.4.tar.gz
  158. Source226: colour.cabal
  159. Source227: contravariant-1.5.tar.gz
  160. Source228: contravariant.cabal
  161. Source229: data-default-class-0.1.2.0.tar.gz
  162. Source230: data-default-class.cabal
  163. Source231: dlist-0.8.0.5.tar.gz
  164. Source232: dlist.cabal
  165. Source233: easy-file-0.2.2.tar.gz
  166. Source234: easy-file.cabal
  167. Source235: file-embed-0.0.11.tar.gz
  168. Source236: file-embed.cabal
  169. Source237: filelock-0.1.1.2.tar.gz
  170. Source238: filelock.cabal
  171. Source239: githash-0.1.3.0.tar.gz
  172. Source240: githash.cabal
  173. Source241: hinotify-0.4.tar.gz
  174. Source242: hinotify.cabal
  175. Source243: hourglass-0.2.12.tar.gz
  176. Source244: hourglass.cabal
  177. Source245: hspec-discover-2.6.0.tar.gz
  178. Source246: hspec-discover.cabal
  179. Source247: hspec-expectations-0.8.2.tar.gz
  180. Source248: hspec-expectations.cabal
  181. Source249: http-types-0.12.2.tar.gz
  182. Source250: http-types.cabal
  183. Source251: logict-0.6.0.2.tar.gz
  184. Source252: logict.cabal
  185. Source253: microlens-0.4.10.tar.gz
  186. Source254: microlens.cabal
  187. Source255: mime-types-0.1.0.8.tar.gz
  188. Source256: mime-types.cabal
  189. Source257: mintty-0.1.2.tar.gz
  190. Source258: mintty.cabal
  191. Source259: monad-loops-0.4.3.tar.gz
  192. Source260: monad-loops.cabal
  193. Source261: old-locale-1.0.0.7.tar.gz
  194. Source262: old-locale.cabal
  195. Source263: open-browser-0.2.1.0.tar.gz
  196. Source264: open-browser.cabal
  197. Source265: parser-combinators-1.0.0.tar.gz
  198. Source266: parser-combinators.cabal
  199. Source267: path-pieces-0.2.1.tar.gz
  200. Source268: path-pieces.cabal
  201. Source269: quickcheck-io-0.2.0.tar.gz
  202. Source270: quickcheck-io.cabal
  203. Source271: regex-applicative-0.3.3.tar.gz
  204. Source272: regex-applicative.cabal
  205. Source273: safe-0.3.17.tar.gz
  206. Source274: safe.cabal
  207. Source275: semigroups-0.18.5.tar.gz
  208. Source276: semigroups.cabal
  209. Source277: setenv-0.1.1.3.tar.gz
  210. Source278: setenv.cabal
  211. Source279: silently-1.2.5.tar.gz
  212. Source280: silently.cabal
  213. Source281: stm-chans-3.0.0.4.tar.gz
  214. Source282: stm-chans.cabal
  215. Source283: store-core-0.4.4.tar.gz
  216. Source284: store-core.cabal
  217. Source285: streaming-commons-0.2.1.0.tar.gz
  218. Source286: streaming-commons.cabal
  219. Source287: system-filepath-0.4.14.tar.gz
  220. Source288: system-filepath.cabal
  221. Source289: tagged-0.8.6.tar.gz
  222. Source290: tagged.cabal
  223. Source291: text-metrics-0.3.0.tar.gz
  224. Source292: text-metrics.cabal
  225. Source293: th-abstraction-0.2.8.0.tar.gz
  226. Source294: th-abstraction.cabal
  227. Source295: th-expand-syns-0.4.4.0.tar.gz
  228. Source296: th-expand-syns.cabal
  229. Source297: time-locale-compat-0.1.1.5.tar.gz
  230. Source298: time-locale-compat.cabal
  231. Source299: transformers-compat-0.6.2.tar.gz
  232. Source300: transformers-compat.cabal
  233. Source301: typed-process-0.2.3.0.tar.gz
  234. Source302: typed-process.cabal
  235. Source303: unix-compat-0.5.1.tar.gz
  236. Source304: unix-compat.cabal
  237. Source305: unliftio-core-0.1.2.0.tar.gz
  238. Source306: unliftio-core.cabal
  239. Source307: uuid-types-1.0.3.tar.gz
  240. Source308: uuid-types.cabal
  241. Source309: vector-algorithms-0.8.0.1.tar.gz
  242. Source310: vector-algorithms.cabal
  243. Source311: void-0.7.2.tar.gz
  244. Source312: void.cabal
  245. Source313: gitrev-1.3.1.tar.gz
  246. Source314: gitrev.cabal
  247. Source315: attoparsec-iso8601-1.0.1.0.tar.gz
  248. Source316: attoparsec-iso8601.cabal
  249. Source317: memory-0.14.18.tar.gz
  250. Source318: memory.cabal
  251. Source319: unicode-transforms-0.3.5.tar.gz
  252. Source320: unicode-transforms.cabal
  253. Source321: blaze-markup-0.8.2.2.tar.gz
  254. Source322: blaze-markup.cabal
  255. Source323: socks-0.5.6.tar.gz
  256. Source324: socks.cabal
  257. Source325: extra-1.6.14.tar.gz
  258. Source326: extra.cabal
  259. Source327: ansi-terminal-0.8.2.tar.gz
  260. Source328: ansi-terminal.cabal
  261. Source329: cookie-0.4.4.tar.gz
  262. Source330: cookie.cabal
  263. Source331: smallcheck-1.1.5.tar.gz
  264. Source332: smallcheck.cabal
  265. Source333: old-time-1.1.0.3.tar.gz
  266. Source334: old-time.cabal
  267. Source335: megaparsec-7.0.4.tar.gz
  268. Source336: megaparsec.cabal
  269. Source337: regex-applicative-text-0.1.0.1.tar.gz
  270. Source338: regex-applicative-text.cabal
  271. Source339: system-fileio-0.3.16.4.tar.gz
  272. Source340: system-fileio.cabal
  273. Source341: distributive-0.6.tar.gz
  274. Source342: distributive.cabal
  275. Source343: infer-license-0.2.0.tar.gz
  276. Source344: infer-license.cabal
  277. Source345: th-lift-0.7.11.tar.gz
  278. Source346: th-lift.cabal
  279. Source347: microlens-th-0.4.2.3.tar.gz
  280. Source348: microlens-th.cabal
  281. Source349: generic-deriving-1.12.2.tar.gz
  282. Source350: generic-deriving.cabal
  283. Source351: th-reify-many-0.1.8.tar.gz
  284. Source352: th-reify-many.cabal
  285. Source353: transformers-base-0.4.5.2.tar.gz
  286. Source354: transformers-base.cabal
  287. Source355: exceptions-0.10.0.tar.gz
  288. Source356: exceptions.cabal
  289. Source357: constraints-0.10.1.tar.gz
  290. Source358: constraints.cabal
  291. Source359: Glob-0.9.3.tar.gz
  292. Source360: Glob.cabal
  293. Source361: unliftio-0.2.9.0.tar.gz
  294. Source362: unliftio.cabal
  295. Source363: aeson-1.4.2.0.tar.gz
  296. Source364: aeson.cabal
  297. Source365: mono-traversable-1.0.9.0.tar.gz
  298. Source366: mono-traversable.cabal
  299. Source367: pem-0.2.4.tar.gz
  300. Source368: pem.cabal
  301. Source369: cryptonite-0.25.tar.gz
  302. Source370: cryptonite.cabal
  303. Source371: asn1-types-0.3.2.tar.gz
  304. Source372: asn1-types.cabal
  305. Source373: blaze-html-0.9.1.1.tar.gz
  306. Source374: blaze-html.cabal
  307. Source375: hspec-core-2.6.0.tar.gz
  308. Source376: hspec-core.cabal
  309. Source377: ansi-wl-pprint-0.6.8.2.tar.gz
  310. Source378: ansi-wl-pprint.cabal
  311. Source379: http-api-data-0.4.tar.gz
  312. Source380: http-api-data.cabal
  313. Source381: unix-time-0.4.0.tar.gz
  314. Source382: unix-time.cabal
  315. Source383: neat-interpolation-0.3.2.4.tar.gz
  316. Source384: neat-interpolation.cabal
  317. Source385: comonad-5.0.4.tar.gz
  318. Source386: comonad.cabal
  319. Source387: th-lift-instances-0.1.11.tar.gz
  320. Source388: th-lift-instances.cabal
  321. Source389: monad-control-1.0.2.3.tar.gz
  322. Source390: monad-control.cabal
  323. Source391: temporary-1.3.tar.gz
  324. Source392: temporary.cabal
  325. Source393: retry-0.7.7.0.tar.gz
  326. Source394: retry.cabal
  327. Source395: resourcet-1.2.2.tar.gz
  328. Source396: resourcet.cabal
  329. Source397: http-client-0.5.14.tar.gz
  330. Source398: http-client.cabal
  331. Source399: rio-0.1.6.0.tar.gz
  332. Source400: rio.cabal
  333. Source401: path-0.6.1.tar.gz
  334. Source402: path.cabal
  335. Source403: aeson-compat-0.3.9.tar.gz
  336. Source404: aeson-compat.cabal
  337. Source405: cryptohash-0.11.9.tar.gz
  338. Source406: cryptohash.cabal
  339. Source407: asn1-encoding-0.9.5.tar.gz
  340. Source408: asn1-encoding.cabal
  341. Source409: hspec-smallcheck-0.5.2.tar.gz
  342. Source410: hspec-smallcheck.cabal
  343. Source411: hspec-2.6.0.tar.gz
  344. Source412: hspec.cabal
  345. Source413: optparse-applicative-0.14.3.0.tar.gz
  346. Source414: optparse-applicative.cabal
  347. Source415: fast-logger-2.4.11.tar.gz
  348. Source416: fast-logger.cabal
  349. Source417: bifunctors-5.5.3.tar.gz
  350. Source418: bifunctors.cabal
  351. Source419: th-orphans-0.13.6.tar.gz
  352. Source420: th-orphans.cabal
  353. Source421: resource-pool-0.2.3.2.tar.gz
  354. Source422: resource-pool.cabal
  355. Source423: lifted-base-0.2.3.12.tar.gz
  356. Source424: lifted-base.cabal
  357. Source425: conduit-1.3.1.tar.gz
  358. Source426: conduit.cabal
  359. Source427: path-io-1.4.0.tar.gz
  360. Source428: path-io.cabal
  361. Source429: asn1-parse-0.9.4.tar.gz
  362. Source430: asn1-parse.cabal
  363. Source431: optparse-simple-0.1.0.tar.gz
  364. Source432: optparse-simple.cabal
  365. Source433: semigroupoids-5.3.1.tar.gz
  366. Source434: semigroupoids.cabal
  367. Source435: profunctors-5.3.tar.gz
  368. Source436: profunctors.cabal
  369. Source437: th-utilities-0.2.0.1.tar.gz
  370. Source438: th-utilities.cabal
  371. Source439: lifted-async-0.10.0.3.tar.gz
  372. Source440: lifted-async.cabal
  373. Source441: enclosed-exceptions-1.0.3.tar.gz
  374. Source442: enclosed-exceptions.cabal
  375. Source443: yaml-0.10.4.0.tar.gz
  376. Source444: yaml.cabal
  377. Source445: conduit-extra-1.3.0.tar.gz
  378. Source446: conduit-extra.cabal
  379. Source447: x509-1.7.5.tar.gz
  380. Source448: x509.cabal
  381. Source449: free-5.1.tar.gz
  382. Source450: free.cabal
  383. Source451: either-5.0.1.tar.gz
  384. Source452: either.cabal
  385. Source453: shelly-1.8.1.tar.gz
  386. Source454: shelly.cabal
  387. Source455: project-template-0.2.0.1.tar.gz
  388. Source456: project-template.cabal
  389. Source457: monad-logger-0.3.30.tar.gz
  390. Source458: monad-logger.cabal
  391. Source459: cryptonite-conduit-0.2.2.tar.gz
  392. Source460: cryptonite-conduit.cabal
  393. Source461: x509-store-1.6.7.tar.gz
  394. Source462: x509-store.cabal
  395. Source463: store-0.5.0.1.tar.gz
  396. Source464: store.cabal
  397. Source465: mustache-2.3.0.tar.gz
  398. Source466: mustache.cabal
  399. Source467: fsnotify-0.3.0.1.tar.gz
  400. Source468: fsnotify.cabal
  401. Source469: persistent-2.9.0.tar.gz
  402. Source470: persistent.cabal
  403. Source471: x509-validation-1.6.11.tar.gz
  404. Source472: x509-validation.cabal
  405. Source473: x509-system-1.6.6.tar.gz
  406. Source474: x509-system.cabal
  407. Source475: persistent-template-2.5.4.tar.gz
  408. Source476: persistent-template.cabal
  409. Source477: persistent-sqlite-2.9.0.tar.gz
  410. Source478: persistent-sqlite.cabal
  411. Source479: tls-1.4.1.tar.gz
  412. Source480: tls.cabal
  413. Source481: connection-0.2.8.tar.gz
  414. Source482: connection.cabal
  415. Source483: http-client-tls-0.3.5.3.tar.gz
  416. Source484: http-client-tls.cabal
  417. Source485: http-conduit-2.3.4.tar.gz
  418. Source486: http-conduit.cabal
  419. Source487: hpack-0.31.1.tar.gz
  420. Source488: hpack.cabal
  421. Source489: stack-1.9.3.tar.gz
  422. Source490: stack.cabal
  423. %endif
  424. %endif
  425. BuildRoot: %{_tmppath}/%{name}-%{pkg_version}-root
  426. BuildRequires: ghc = %{ghc_version}
  427. BuildRequires: gmp-devel zlib-devel freeglut-devel
  428. BuildRequires: libffi-devel
  429. %if !%{with bootstrap}
  430. BuildRequires: haskell-platform = %{%version}
  431. %if %{with stack}
  432. BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl
  433. %endif
  434. %endif
  435. Requires: ghc = %{ghc_version}
  436. Requires: freeglut-devel
  437. Conflicts: alex
  438. Conflicts: happy
  439. Conflicts: haskell-platform-base
  440. Conflicts: cabal-install
  441. Conflicts: hscolour
  442. Vendor: Project Vine
  443. Distribution: Vine Linux
  444. Packager: ara_t
  445. %description
  446. Haskell is a computer programming language.
  447. In particular, it is a polymorphically statically typed, lazy, purely
  448. functional language, quite different from most other programming languages.
  449. The language is named for Haskell Brooks Curry, whose work in mathematical
  450. logic serves as a foundation for functional languages.
  451. %if !%{with bootstrap}
  452. %package dep
  453. Summary: Dummy package to delete haskell-related packages
  454. Group: Applications/Languages
  455. BuildArch: noarch
  456. Requires: haskell-platform = %{version}-%{release}
  457. %description dep
  458. This package is a dummy package to delete haskell-related packages
  459. such as libghc-*, yaml and xmonad.
  460. %endif
  461. %prep
  462. %{__rm} -rf ${RPM_BUILD_ROOT}
  463. %setup -q -n %{name}-%{pkg_version}
  464. %{__mkdir_p} %{ghc_pkg_confdir}
  465. %build
  466. export PATH=${RPM_BUILD_ROOT}%{_bindir}:${PATH}
  467. export LANG=en_US.utf8
  468. PKGNAME=%{name}-%{version}
  469. ########################################
  470. # alex / happy / HsColour
  471. ########################################
  472. cd %{_builddir}/%{name}-%{pkg_version}
  473. cd packages
  474. for pkg in `cat ../etc/build.packages`; do
  475. pushd ${pkg}
  476. %ghc_make_setup
  477. %ghc_setup_configure ${PKGNAME} ${pkg}
  478. %ghc_setup_build
  479. %if !%{with bootstrap}
  480. %if %{with stack}
  481. %{ghc_setup_haddock}
  482. %endif
  483. %endif
  484. %ghc_setup_copy_resister ${pkg}
  485. popd
  486. done
  487. ########################################
  488. # haskell-platform (full packages without stack)
  489. ########################################
  490. %if !%{with bootstrap}
  491. for pkg in `cat %{SOURCE1}`; do
  492. %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz
  493. pushd ${pkg}
  494. %ghc_fix_dependencies ${pkg}
  495. %ghc_make_setup
  496. %ghc_setup_configure ${PKGNAME} ${pkg}
  497. %ghc_setup_build
  498. %if %{with stack}
  499. %ghc_setup_haddock
  500. %endif
  501. %ghc_setup_copy_resister ${pkg}
  502. popd
  503. done
  504. # cabal-install
  505. cd %{_builddir}
  506. for pkg in `cat %{SOURCE2}`; do
  507. %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz
  508. pushd ${pkg}
  509. %ghc_fix_dependencies ${pkg}
  510. %ghc_make_setup
  511. if [ ${pkg} = "cabal-install-%{cabal_version}" ]
  512. then
  513. %ghc_setup configure \
  514. --user \
  515. --prefix=%{_prefix} \
  516. --docdir=%{_docdir}/${PKGNAME}/${pkg}
  517. %ghc_setup_build
  518. %ghc_setup copy --destdir=${RPM_BUILD_ROOT}
  519. else
  520. %ghc_setup configure --user
  521. %ghc_setup_build
  522. %ghc_setup copy
  523. %ghc_setup register --inplace
  524. fi
  525. popd
  526. done
  527. %endif # %if !%{with bootstrap}
  528. ########################################
  529. # haskell-platform (stack)
  530. ########################################
  531. %if !%{with bootstrap}
  532. %if %{with stack}
  533. cd %{_builddir}
  534. for pkg in `cat %{SOURCE3}`; do
  535. %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz
  536. pushd ${pkg}
  537. %ghc_fix_dependencies ${pkg}
  538. case ${pkg} in
  539. "stack-%{stack_version}") cabal install --enable-documentation ;;
  540. *) cabal install --force-reinstalls ;;
  541. esac
  542. popd
  543. done
  544. %endif # %if %{with stack}
  545. %endif # %if !%{with bootstrap}
  546. %install
  547. %if !%{with bootstrap}
  548. # hscolour
  549. cd ${RPM_BUILD_ROOT}%{_bindir}
  550. %{__ln_s} HsColour hscolour
  551. # stack
  552. %if %{with stack}
  553. %{__install} -m 755 ${HOME}/.cabal/bin/stack \
  554. ${RPM_BUILD_ROOT}%{_bindir}
  555. cd ${HOME}/.cabal/share/doc/%{rpmarch}-linux-ghc-%{ghc_version}
  556. %{__mv} stack-%{stack_version} \
  557. ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}
  558. %endif # %if %{with stack}
  559. %endif # %if !%{with bootstrap}
  560. # macros for building haskell-platform-related packages
  561. %{__mkdir_p} ${RPM_BUILD_ROOT}%{_sysconfdir}/rpm
  562. %{__cp} %{SOURCE11} ${RPM_BUILD_ROOT}/%{_sysconfdir}/rpm/
  563. %clean
  564. %{__rm} -rf ${RPM_BUILD_ROOT}
  565. %post
  566. %ghc_pkg_recache
  567. %postun
  568. %ghc_pkg_recache
  569. %files
  570. %defattr(-, root, root)
  571. %{_bindir}/
  572. %{_libdir}/%{name}-%{version}/
  573. %{_libdir}/ghc-%{ghc_version}/package.conf.d/
  574. %{_datadir}/%{name}-%{version}/
  575. %{_docdir}/%{name}-%{version}/
  576. %if !%{with bootstrap}
  577. %{_mandir}/man1/
  578. %endif
  579. %{_sysconfdir}/rpm/
  580. %if !%{with bootstrap}
  581. %files dep
  582. %endif
  583. %changelog
  584. * Sat Dec 15 2018 Toshiaki Ara <ara_t@384.jp> 2018.8.6.3-1
  585. - update to 8.6.3
  586. * Wed Aug 08 2018 Toshiaki Ara <ara_t@384.jp> 2018.8.4.3-2
  587. - rebuild with ghc-8.4.3-2
  588. * Fri Jul 20 2018 Toshiaki Ara <ara_t@384.jp> 2018.8.4.3-1
  589. - update to 8.4.3
  590. * Thu May 17 2018 Toshiaki Ara <ara_t@384.jp> 2018.8.4.2-1
  591. - update to 8.4.2
  592. - add /etc/rpm/macros.cabal
  593. - add haskell-platform-dep package for deleting haskell-related packages
  594. - rewrite using macro
  595. * Sat Jan 06 2018 Toshiaki Ara <ara_t@384.jp> 2017.8.2.2-1
  596. - update to 8.2.2
  597. * Wed Feb 01 2017 Toshiaki Ara <ara_t@384.jp> 2016.8.0.1-1
  598. - update to 2016.8.0.1
  599. * Tue May 03 2016 Toshiaki Ara <ara_t@384.jp> 2015.7.10.3-3
  600. - modify SPEC file without usage of cabal-install
  601. * Mon Apr 11 2016 Toshiaki Ara <ara_t@384.jp> 2015.7.10.3-2
  602. - correct SPEC file
  603. * Fri Feb 19 2016 Toshiaki Ara <ara_t@384.jp> 2015.7.10.3-1
  604. - update to 7.10.3
  605. * Mon Feb 15 2016 Toshiaki Ara <ara_t@384.jp> 2013.2.0.0-4
  606. - delete subpackage cabal-install
  607. - delete %%{cabal_version} from Requires: cabal-install-%%{cabal_version}
  608. - add BuildRequires: libffi-devel
  609. * Thu Feb 11 2016 Toshiaki Ara <ara_t@384.jp> 2013.2.0.0-3
  610. - correct Requires
  611. * Thu Feb 11 2016 Toshiaki Ara <ara_t@384.jp> 2013.2.0.0-2
  612. - install Haskell libraries into %%{_libdir}/ghc-lib
  613. - add BuildRequires: hscolour
  614. - devide insto subpackages
  615. * Thu Feb 04 2016 Toshiaki Ara <ara_t@384.jp> 2013.2.0.0-1
  616. - new package