forked from pool/ghc-hjsmin
Accepting request 953470 from devel:languages:haskell
version update OBS-URL: https://build.opensuse.org/request/show/953470 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-hjsmin?expand=0&rev=4
This commit is contained in:
commit
a4141e4019
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 1 20:12:17 UTC 2021 - Peter Simons <psimons@suse.com>
|
||||||
|
|
||||||
|
- Update hjsmin to version 0.2.0.4 revision 1.
|
||||||
|
Upstream has revised the Cabal build instructions on Hackage.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
|
Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package ghc-hjsmin
|
# spec file for package ghc-hjsmin
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -25,6 +25,7 @@ Summary: Haskell implementation of a javascript minifier
|
|||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: https://hackage.haskell.org/package/%{pkg_name}
|
URL: https://hackage.haskell.org/package/%{pkg_name}
|
||||||
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
||||||
|
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
|
||||||
BuildRequires: ghc-Cabal-devel
|
BuildRequires: ghc-Cabal-devel
|
||||||
BuildRequires: ghc-bytestring-devel
|
BuildRequires: ghc-bytestring-devel
|
||||||
BuildRequires: ghc-language-javascript-devel
|
BuildRequires: ghc-language-javascript-devel
|
||||||
@ -56,6 +57,7 @@ This package provides the Haskell %{pkg_name} library development files.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{pkg_name}-%{version}
|
%autosetup -n %{pkg_name}-%{version}
|
||||||
|
cp -p %{SOURCE1} %{pkg_name}.cabal
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ghc_lib_build
|
%ghc_lib_build
|
||||||
|
70
hjsmin.cabal
Normal file
70
hjsmin.cabal
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
name: hjsmin
|
||||||
|
version: 0.2.0.4
|
||||||
|
x-revision: 1
|
||||||
|
license: BSD3
|
||||||
|
license-file: LICENSE
|
||||||
|
author: Alan Zimmerman <alan.zimm@gmail.com>
|
||||||
|
maintainer: Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||||
|
synopsis: Haskell implementation of a javascript minifier
|
||||||
|
description:
|
||||||
|
Reduces size of javascript files by stripping out extraneous whitespace and
|
||||||
|
other syntactic elements, without changing the semantics.
|
||||||
|
category: Web
|
||||||
|
stability: unstable
|
||||||
|
cabal-version: >= 1.10
|
||||||
|
build-type: Simple
|
||||||
|
homepage: http://github.com/erikd/hjsmin
|
||||||
|
bug-reports: http://github.com/erikd/hjsmin/issues
|
||||||
|
|
||||||
|
Extra-source-files:
|
||||||
|
Readme.md
|
||||||
|
test/cli/core/runner
|
||||||
|
test/cli/empty-input/run
|
||||||
|
test/cli/minimal-input/run
|
||||||
|
|
||||||
|
|
||||||
|
library
|
||||||
|
default-language: Haskell2010
|
||||||
|
ghc-options: -Wall
|
||||||
|
hs-source-dirs: src
|
||||||
|
|
||||||
|
exposed-modules: Text.Jasmine
|
||||||
|
|
||||||
|
build-depends: base >= 4.8 && < 5
|
||||||
|
, bytestring >= 0.10 && < 0.12
|
||||||
|
, language-javascript >= 0.6 && < 0.8
|
||||||
|
, text == 1.2.*
|
||||||
|
|
||||||
|
|
||||||
|
executable hjsmin
|
||||||
|
default-language: Haskell2010
|
||||||
|
ghc-options: -Wall -threaded
|
||||||
|
hs-source-dirs: src main
|
||||||
|
main-is: hjsmin.hs
|
||||||
|
|
||||||
|
-- Need this here because the library and the executable have the same name.
|
||||||
|
other-modules: Text.Jasmine
|
||||||
|
|
||||||
|
build-depends: base >= 4.8 && < 5
|
||||||
|
, bytestring == 0.10.*
|
||||||
|
, language-javascript
|
||||||
|
, optparse-applicative >= 0.7
|
||||||
|
, text
|
||||||
|
|
||||||
|
test-suite test-cli
|
||||||
|
type: exitcode-stdio-1.0
|
||||||
|
ghc-options: -Wall -fwarn-tabs
|
||||||
|
default-language: Haskell2010
|
||||||
|
hs-source-dirs: test
|
||||||
|
main-is: test-cli.hs
|
||||||
|
|
||||||
|
build-depends: base
|
||||||
|
, directory
|
||||||
|
, extra
|
||||||
|
, filepath
|
||||||
|
, process
|
||||||
|
, unix
|
||||||
|
|
||||||
|
source-repository head
|
||||||
|
type: git
|
||||||
|
location: https://github.com/erikd/hjsmin.git
|
Loading…
Reference in New Issue
Block a user