| 1 | # https://fedoraproject.org/wiki/Packaging:Haskell |
|---|
| 2 | |
|---|
| 3 | # Link Haskell libs statically for 3x faster startup speed. |
|---|
| 4 | %define ghc_without_dynamic 1 |
|---|
| 5 | |
|---|
| 6 | Name: scripts-static-cat |
|---|
| 7 | Version: 0.0 |
|---|
| 8 | Release: 0.%{scriptsversion}%{?dist} |
|---|
| 9 | Summary: static-cat for scripts.mit.edu |
|---|
| 10 | |
|---|
| 11 | License: GPL+ |
|---|
| 12 | URL: http://scripts.mit.edu/ |
|---|
| 13 | Source0: %{name}.tar.gz |
|---|
| 14 | |
|---|
| 15 | BuildRequires: ghc-Cabal-devel |
|---|
| 16 | BuildRequires: ghc-rpm-macros |
|---|
| 17 | # Begin cabal-rpm deps: |
|---|
| 18 | BuildRequires: ghc-MonadCatchIO-mtl-devel |
|---|
| 19 | BuildRequires: ghc-bytestring-devel |
|---|
| 20 | BuildRequires: ghc-cgi-devel |
|---|
| 21 | BuildRequires: ghc-containers-devel |
|---|
| 22 | BuildRequires: ghc-filepath-devel |
|---|
| 23 | BuildRequires: ghc-old-locale-devel |
|---|
| 24 | BuildRequires: ghc-time-devel |
|---|
| 25 | BuildRequires: ghc-unix-devel |
|---|
| 26 | BuildRequires: ghc-unix-handle-devel |
|---|
| 27 | # End cabal-rpm deps |
|---|
| 28 | |
|---|
| 29 | %description |
|---|
| 30 | static-cat is a binary for serving static content on scripts.mit.edu. |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | %prep |
|---|
| 34 | %setup -q -n %{name} |
|---|
| 35 | |
|---|
| 36 | |
|---|
| 37 | %build |
|---|
| 38 | %ghc_bin_build |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | %install |
|---|
| 42 | %ghc_bin_install |
|---|
| 43 | |
|---|
| 44 | |
|---|
| 45 | %files |
|---|
| 46 | %attr(755,root,root) %{_bindir}/static-cat |
|---|
| 47 | |
|---|
| 48 | |
|---|
| 49 | %changelog |
|---|
| 50 | * Mon May 26 2014 Alexander Chernyakhovsky <achernya@mit.edu> - 0.0-0 |
|---|
| 51 | - Updated for F20 with cabal-rpm |
|---|
| 52 | |
|---|
| 53 | * Fri May 25 2012 Anders Kaseorg <andersk@mit.edu> - 0.0-0 |
|---|
| 54 | - regenerated packaging with cabal2spec-0.25.5 |
|---|
| 55 | |
|---|
| 56 | * Mon May 2 2011 Alexander Chernyakhovsky <achernya@mit.edu> - 0.0-0 |
|---|
| 57 | - regenerated packaging with cabal2spec-0.22.5 |
|---|
| 58 | |
|---|
| 59 | * Thu Sep 9 2010 Anders Kaseorg <andersk@mit.edu> - 0.0-0 |
|---|
| 60 | - initial packaging for Fedora automatically generated by cabal2spec-0.22.1 |
|---|