# # spec file for package mole # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %bcond_with tests Name: mole Version: 0.0.6 Release: 0 Summary: A glorified string replacement tool License: MIT Group: Development/Libraries/Haskell URL: https://hackage.haskell.org/package/%{name} Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-attoparsec-devel BuildRequires: ghc-base64-bytestring-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-cryptohash-devel BuildRequires: ghc-css-syntax-devel BuildRequires: ghc-directory-devel BuildRequires: ghc-filemanip-devel BuildRequires: ghc-filepath-devel BuildRequires: ghc-fsnotify-devel BuildRequires: ghc-kraken-devel BuildRequires: ghc-mtl-devel BuildRequires: ghc-network-uri-devel BuildRequires: ghc-optparse-applicative-devel BuildRequires: ghc-process-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-snap-core-devel BuildRequires: ghc-snap-server-devel BuildRequires: ghc-stm-devel BuildRequires: ghc-tagsoup-devel BuildRequires: ghc-text-devel BuildRequires: ghc-time-devel BuildRequires: ghc-transformers-devel BuildRequires: ghc-unix-devel %if %{with tests} BuildRequires: ghc-hspec-devel BuildRequires: ghc-hspec-smallcheck-devel BuildRequires: ghc-smallcheck-devel BuildRequires: ghc-unordered-containers-devel BuildRequires: ghc-vector-devel %endif %description A glorified string replacement tool. For a very specific purpose. That purpose being to compile and optimize a static website (or a single-page application). Mole inspects source, builds a complete dependency tree, minifies and compresses the files, adds fingerprints and writes the result to a directory. %prep %setup -q %build %ghc_bin_build %install %ghc_bin_install %check %cabal_test %files %license LICENSE %{_bindir}/%{name} %changelog