Browse Source

A small Haskell script to colourise Haskell code

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@10155 ec354946-7b23-47d6-9f5a-488ba84defc7
ara_t 8 years ago
parent
commit
dd1ca950dd
1 changed files with 82 additions and 0 deletions
  1. 82 0
      h/hscolour/hscolour-vl.spec

+ 82 - 0
h/hscolour/hscolour-vl.spec

@@ -0,0 +1,82 @@
+%define pkg_name    hscolour
+%define pkg_version 1.24
+%define pkg_release 3%{?_dist_release}
+
+%define ghc_version 7.10.3
+
+%ifarch %{ix86}
+%define rpmarch i386
+%endif
+%ifarch x86_64
+%define rpmarch x86_64
+%endif
+
+
+Summary: A small Haskell script to colourise Haskell code
+Name:    %{pkg_name}
+Version: %{pkg_version}
+Release: %{pkg_release}
+
+License: GPLv2
+Group:   Applications/Text
+URL:     http://hackage.haskell.org
+Source0: http://hackage.haskell.org/package/%{name}-%{pkg_version}/%{name}-%{pkg_version}.tar.gz
+
+BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-root
+
+BuildRequires: ghc
+BuildRequires: haskell-platform-base cabal-install
+BuildRequires: gmp-devel libffi-devel
+
+Vendor: Project Vine
+Distribution: Vine Linux
+Packager: ara_t
+
+
+%description
+hscolour is a small Haskell script to colourise Haskell code.
+It currently has six output formats: ANSI terminal codes
+(optionally XTerm-256colour codes), HTML 3.2 with font tags,
+HTML 4.01 with CSS, HTML 4.01 with CSS and mouseover annotations,
+XHTML 1.0 with inline CSS styling, LaTeX, and mIRC chat codes.
+
+
+%prep
+%{__rm} -rf ${RPM_BUILD_ROOT}
+%setup -q
+
+%build
+cabal configure \
+      --prefix=%{_prefix} \
+      --libsubdir=%{_libdir}/ghc-lib/%{name}-%{version} \
+      --datasubdir=%{_docdir}/%{name}-%{version} \
+      --docdir=%{_docdir}/%{name}-%{version}
+cabal build
+
+%install
+cabal copy --destdir=${RPM_BUILD_ROOT}
+
+cd ${RPM_BUILD_ROOT}%{_bindir}
+%{__ln_s} HsColour hscolour
+
+
+%clean
+%{__rm} -rf ${RPM_BUILD_ROOT}
+
+
+%files
+%defattr(-, root, root)
+%{_bindir}/
+%{_libdir}/ghc-lib/
+%{_datadir}/
+
+
+%changelog
+* Mon Apr 11 2016 Toshiaki Ara <ara_t@384.jp> 1.24-3
+- correct SPEC file
+
+* Sat Feb 20 2016 Toshiaki Ara <ara_t@384.jp> 1.24-2
+- rebuild under ghc-7.10.3 and haskell-platform-2015.7.10.3
+
+* Tue Feb 09 2016 Toshiaki Ara <ara_t@384.jp> 1.24-1
+- new package