From f466d0417ad8c1293dc93c7487c6972e95f95bf377956ae591b865183957a0b4 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 10 Nov 2023 14:07:19 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-9.6.x package:ghc-lucid revision:3, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-lucid?expand=0&rev=27 --- .gitattributes | 23 +++++++ .gitignore | 1 + ghc-lucid.changes | 85 ++++++++++++++++++++++++ ghc-lucid.spec | 131 +++++++++++++++++++++++++++++++++++++ lucid-2.11.20230408.tar.gz | 3 + lucid.cabal | 99 ++++++++++++++++++++++++++++ 6 files changed, 342 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ghc-lucid.changes create mode 100644 ghc-lucid.spec create mode 100644 lucid-2.11.20230408.tar.gz create mode 100644 lucid.cabal diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ghc-lucid.changes b/ghc-lucid.changes new file mode 100644 index 0000000..508e9e7 --- /dev/null +++ b/ghc-lucid.changes @@ -0,0 +1,85 @@ +------------------------------------------------------------------- +Sun Oct 29 16:08:49 UTC 2023 - Peter Simons + +- Update lucid to version 2.11.20230408 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Sat Apr 8 12:47:40 UTC 2023 - Peter Simons + +- Update lucid to version 2.11.20230408. + ## 2.11.20230408 + + * Don't expect Control.Monad to be re-exported from mtl anymore + +------------------------------------------------------------------- +Thu Mar 30 17:07:26 UTC 2023 - Peter Simons + +- Updated spec file to conform with ghc-rpm-macros-2.5.2. + +------------------------------------------------------------------- +Tue Sep 27 20:18:07 UTC 2022 - Peter Simons + +- Update lucid to version 2.11.1 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Sun May 8 10:49:30 UTC 2022 - Peter Simons + +- Update lucid to version 2.11.1. + Upstream has edited the change log file since the last release in + a non-trivial way, i.e. they did more than just add a new entry + at the top. You can review the file at: + http://hackage.haskell.org/package/lucid-2.11.1/src/CHANGELOG.md + +------------------------------------------------------------------- +Wed Nov 10 10:02:26 UTC 2021 - psimons@suse.com + +- Update lucid to version 2.11.0 revision 1. + ## 2.11.0 + + * Change internal attributes to `Seq Attribute`. This preserves + ordering. Attributes are merged in a left-biased way, preserving the + key order as first encountered. + +------------------------------------------------------------------- +Tue Oct 19 07:21:39 UTC 2021 - psimons@suse.com + +- Update lucid to version 2.10.0. + ## 2.9.13 + + * Change internal attributes representation from HashMap to Map. This + introduces stable ordering, at a negligible performance cost for + realistic element sizes. This may affect some test suites. + * doctype no longer accepts attributes. You can use `with` with + `doctypeHtml` now, if needed. + +------------------------------------------------------------------- +Tue Mar 2 09:33:12 UTC 2021 - psimons@suse.com + +- Update lucid to version 2.9.12.1. + ## 2.9.12.1 + + * Allow different orderings of attributes in test-suite + +------------------------------------------------------------------- +Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup + +- disable %{ix86} build + +------------------------------------------------------------------- +Mon Aug 31 09:34:30 UTC 2020 - psimons@suse.com + +- Update lucid to version 2.9.12 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Tue Aug 18 10:45:22 UTC 2020 - Peter Simons + +- Replace %setup -q with the more modern %autosetup macro. + +------------------------------------------------------------------- +Tue Jun 9 09:26:21 UTC 2020 - psimons@suse.com + +- Add lucid at version 2.9.12. + diff --git a/ghc-lucid.spec b/ghc-lucid.spec new file mode 100644 index 0000000..1aaf7ed --- /dev/null +++ b/ghc-lucid.spec @@ -0,0 +1,131 @@ +# +# spec file for package ghc-lucid +# +# Copyright (c) 2023 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 +%global pkgver %{pkg_name}-%{version} +%bcond_with tests +Name: ghc-%{pkg_name} +Version: 2.11.20230408 +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-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-blaze-builder-devel +BuildRequires: ghc-blaze-builder-prof +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-bytestring-prof +BuildRequires: ghc-containers-devel +BuildRequires: ghc-containers-prof +BuildRequires: ghc-hashable-devel +BuildRequires: ghc-hashable-prof +BuildRequires: ghc-mmorph-devel +BuildRequires: ghc-mmorph-prof +BuildRequires: ghc-mtl-devel +BuildRequires: ghc-mtl-prof +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-text-devel +BuildRequires: ghc-text-prof +BuildRequires: ghc-transformers-devel +BuildRequires: ghc-transformers-prof +ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-HUnit-prof +BuildRequires: ghc-bifunctors-devel +BuildRequires: ghc-bifunctors-prof +BuildRequires: ghc-hspec-devel +BuildRequires: ghc-hspec-prof +BuildRequires: ghc-parsec-devel +BuildRequires: ghc-parsec-prof +%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 + +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. + +%package -n ghc-%{pkg_name}-doc +Summary: Haskell %{pkg_name} library documentation +Requires: ghc-filesystem +BuildArch: noarch + +%description -n ghc-%{pkg_name}-doc +This package provides the Haskell %{pkg_name} library documentation. + +%package -n ghc-%{pkg_name}-prof +Summary: Haskell %{pkg_name} profiling library +Requires: ghc-%{pkg_name}-devel = %{version}-%{release} +Supplements: (ghc-%{pkg_name}-devel and ghc-prof) + +%description -n ghc-%{pkg_name}-prof +This package provides the Haskell %{pkg_name} profiling library. + +%prep +%autosetup -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 + +%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files +%license LICENSE + +%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files + +%changelog diff --git a/lucid-2.11.20230408.tar.gz b/lucid-2.11.20230408.tar.gz new file mode 100644 index 0000000..7361f7b --- /dev/null +++ b/lucid-2.11.20230408.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f112990fee9c5b1c62c64c926147272534781ed8a7225d39dd0248a670f441d +size 21451 diff --git a/lucid.cabal b/lucid.cabal new file mode 100644 index 0000000..59233f8 --- /dev/null +++ b/lucid.cabal @@ -0,0 +1,99 @@ +name: lucid +version: 2.11.20230408 +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 + . + 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 +copyright: 2014-2021 Chris Done +category: Web +build-type: Simple +cabal-version: >=1.10 +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.4,GHC==8.10.7,GHC==9.0.1,GHC==9.2.1, GHC==9.4.1, GHC==9.8 + +library + default-language: Haskell2010 + 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.20 + , 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 + +source-repository head + type: git + location: https://github.com/chrisdone/lucid.git + +test-suite test + default-language: Haskell2010 + 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 + default-language: Haskell2010 + 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 + default-language: Haskell2010 + type: exitcode-stdio-1.0 + hs-source-dirs: benchmarks + main-is: IO.hs + build-depends: base, + criterion, + transformers, + text, + lucid + ghc-options: -O2