forked from pool/ghc-lucid
osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-lucid revision:2, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-lucid?expand=0&rev=1
This commit is contained in:
commit
173fb907c2
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
5
ghc-lucid.changes
Normal file
5
ghc-lucid.changes
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 9 09:26:21 UTC 2020 - psimons@suse.com
|
||||||
|
|
||||||
|
- Add lucid at version 2.9.12.
|
||||||
|
|
95
ghc-lucid.spec
Normal file
95
ghc-lucid.spec
Normal file
@ -0,0 +1,95 @@
|
|||||||
|
#
|
||||||
|
# spec file for package ghc-lucid
|
||||||
|
#
|
||||||
|
# Copyright (c) 2020 SUSE LLC
|
||||||
|
#
|
||||||
|
# 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 https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%global pkg_name lucid
|
||||||
|
%bcond_with tests
|
||||||
|
Name: ghc-%{pkg_name}
|
||||||
|
Version: 2.9.12
|
||||||
|
Release: 0
|
||||||
|
Summary: Clear to write, read and edit DSL for HTML
|
||||||
|
License: BSD-3-Clause
|
||||||
|
URL: https://hackage.haskell.org/package/%{pkg_name}
|
||||||
|
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-blaze-builder-devel
|
||||||
|
BuildRequires: ghc-bytestring-devel
|
||||||
|
BuildRequires: ghc-containers-devel
|
||||||
|
BuildRequires: ghc-hashable-devel
|
||||||
|
BuildRequires: ghc-mmorph-devel
|
||||||
|
BuildRequires: ghc-mtl-devel
|
||||||
|
BuildRequires: ghc-rpm-macros
|
||||||
|
BuildRequires: ghc-text-devel
|
||||||
|
BuildRequires: ghc-transformers-devel
|
||||||
|
BuildRequires: ghc-unordered-containers-devel
|
||||||
|
%if %{with tests}
|
||||||
|
BuildRequires: ghc-HUnit-devel
|
||||||
|
BuildRequires: ghc-bifunctors-devel
|
||||||
|
BuildRequires: ghc-hspec-devel
|
||||||
|
BuildRequires: ghc-parsec-devel
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description
|
||||||
|
Clear to write, read and edit DSL for HTML.
|
||||||
|
|
||||||
|
* Names are consistent, and do not conflict with base or are keywords (all have
|
||||||
|
suffix '_')
|
||||||
|
|
||||||
|
* Same combinator can be used for attributes and elements (e.g.
|
||||||
|
'style_')
|
||||||
|
|
||||||
|
* For more, read <https://chrisdone.com/posts/lucid the blog post>
|
||||||
|
|
||||||
|
See the "Lucid" module for more documentation.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Haskell %{pkg_name} library development files
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: ghc-compiler = %{ghc_version}
|
||||||
|
Requires(post): ghc-compiler = %{ghc_version}
|
||||||
|
Requires(postun): ghc-compiler = %{ghc_version}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package provides the Haskell %{pkg_name} library development files.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{pkg_name}-%{version}
|
||||||
|
cp -p %{SOURCE1} %{pkg_name}.cabal
|
||||||
|
|
||||||
|
%build
|
||||||
|
%ghc_lib_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%ghc_lib_install
|
||||||
|
|
||||||
|
%check
|
||||||
|
%cabal_test
|
||||||
|
|
||||||
|
%post devel
|
||||||
|
%ghc_pkg_recache
|
||||||
|
|
||||||
|
%postun devel
|
||||||
|
%ghc_pkg_recache
|
||||||
|
|
||||||
|
%files -f %{name}.files
|
||||||
|
%license LICENSE
|
||||||
|
|
||||||
|
%files devel -f %{name}-devel.files
|
||||||
|
%doc CHANGELOG.md README.md
|
||||||
|
|
||||||
|
%changelog
|
3
lucid-2.9.12.tar.gz
Normal file
3
lucid-2.9.12.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:304bc31b4b5d65b0e7bc4ad88ca2a2c84f64e92fa9aee7f3591486d67cb4dc94
|
||||||
|
size 20264
|
92
lucid.cabal
Normal file
92
lucid.cabal
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
name: lucid
|
||||||
|
version: 2.9.12
|
||||||
|
x-revision: 1
|
||||||
|
synopsis: Clear to write, read and edit DSL for HTML
|
||||||
|
description:
|
||||||
|
Clear to write, read and edit DSL for HTML.
|
||||||
|
.
|
||||||
|
* Names are consistent, and do not conflict with base or are keywords (all have suffix @_@)
|
||||||
|
.
|
||||||
|
* Same combinator can be used for attributes and elements (e.g. 'style_')
|
||||||
|
.
|
||||||
|
* For more, read <https://chrisdone.com/posts/lucid the blog post>
|
||||||
|
.
|
||||||
|
See the "Lucid" module for more documentation.
|
||||||
|
homepage: https://github.com/chrisdone/lucid
|
||||||
|
license: BSD3
|
||||||
|
license-file: LICENSE
|
||||||
|
author: Chris Done
|
||||||
|
maintainer: chrisdone@gmail.com, oleg.grenrus@iki.fi
|
||||||
|
copyright: 2014-2017 Chris Done
|
||||||
|
category: Web
|
||||||
|
build-type: Simple
|
||||||
|
cabal-version: >=1.8
|
||||||
|
extra-source-files: README.md, CHANGELOG.md
|
||||||
|
tested-with: GHC==7.10.3,GHC==8.0.2,GHC==8.2.2,GHC==8.4.4,GHC==8.6.5,GHC==8.8.3,GHC==8.10.1
|
||||||
|
|
||||||
|
library
|
||||||
|
hs-source-dirs: src/
|
||||||
|
ghc-options: -Wall -O2
|
||||||
|
exposed-modules: Lucid
|
||||||
|
Lucid.Base
|
||||||
|
Lucid.Html5
|
||||||
|
Lucid.Bootstrap
|
||||||
|
|
||||||
|
-- GHC boot libraries
|
||||||
|
build-depends: base >=4.8 && <4.15
|
||||||
|
, bytestring >=0.10.6.0
|
||||||
|
, containers >=0.5.6.2
|
||||||
|
, transformers >=0.4.2.0
|
||||||
|
|
||||||
|
-- GHC boot libraries since 8.4.
|
||||||
|
build-depends: mtl >=2.2
|
||||||
|
, text >=1.2.0.2
|
||||||
|
|
||||||
|
-- compat packages
|
||||||
|
if !impl(ghc >= 8.0)
|
||||||
|
build-depends: semigroups >=0.16.1
|
||||||
|
|
||||||
|
-- other dependencies
|
||||||
|
build-depends: blaze-builder >=0.4.0.0
|
||||||
|
, hashable >=1.2.3.2
|
||||||
|
, mmorph >=1.0.3
|
||||||
|
, unordered-containers >=0.2.5.1
|
||||||
|
|
||||||
|
test-suite test
|
||||||
|
type: exitcode-stdio-1.0
|
||||||
|
main-is: Main.hs
|
||||||
|
hs-source-dirs: test
|
||||||
|
other-modules: Example1
|
||||||
|
build-depends: base,
|
||||||
|
lucid,
|
||||||
|
HUnit,
|
||||||
|
hspec,
|
||||||
|
parsec,
|
||||||
|
bifunctors,
|
||||||
|
text,
|
||||||
|
mtl
|
||||||
|
|
||||||
|
benchmark bench
|
||||||
|
type: exitcode-stdio-1.0
|
||||||
|
hs-source-dirs: benchmarks
|
||||||
|
main-is: Main.hs
|
||||||
|
other-modules: HtmlBenchmarks
|
||||||
|
build-depends: base,
|
||||||
|
deepseq,
|
||||||
|
criterion,
|
||||||
|
blaze-builder,
|
||||||
|
text,
|
||||||
|
bytestring,
|
||||||
|
lucid
|
||||||
|
ghc-options: -O2
|
||||||
|
|
||||||
|
benchmark bench-io
|
||||||
|
type: exitcode-stdio-1.0
|
||||||
|
hs-source-dirs: benchmarks
|
||||||
|
main-is: IO.hs
|
||||||
|
build-depends: base,
|
||||||
|
criterion,
|
||||||
|
transformers,
|
||||||
|
text,
|
||||||
|
lucid
|
||||||
|
ghc-options: -O2
|
Loading…
Reference in New Issue
Block a user