summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rwxr-xr-xblaze-html.cabal110
-rw-r--r--ghc-blaze-html.spec103
-rw-r--r--sources1
4 files changed, 215 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..f04f77d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/blaze-html-0.9.1.2.tar.gz
diff --git a/blaze-html.cabal b/blaze-html.cabal
new file mode 100755
index 0000000..b19ff8c
--- /dev/null
+++ b/blaze-html.cabal
@@ -0,0 +1,110 @@
+Cabal-version: >= 1.8
+Name: blaze-html
+Version: 0.9.1.2
+x-revision: 4
+Homepage: http://jaspervdj.be/blaze
+Bug-Reports: http://github.com/jaspervdj/blaze-html/issues
+License: BSD3
+License-file: LICENSE
+Author: Jasper Van der Jeugt, Simon Meier
+Maintainer: Jasper Van der Jeugt <m@jaspervdj.be>
+Stability: Experimental
+Category: Text
+Synopsis: A blazingly fast HTML combinator library for Haskell
+Description:
+ A blazingly fast HTML combinator library for the Haskell
+ programming language. The Text.Blaze module is a good
+ starting point, as well as this tutorial:
+ <http://jaspervdj.be/blaze/tutorial.html>.
+
+Build-type: Simple
+
+Tested-with:
+ GHC == 9.8.0
+ GHC == 9.6.2
+ GHC == 9.4.7
+ GHC == 9.2.8
+ GHC == 9.0.2
+ GHC == 8.10.7
+ GHC == 8.8.4
+ GHC == 8.6.5
+ GHC == 8.4.4
+ GHC == 8.2.2
+ GHC == 8.0.2
+ GHC == 7.10.3
+ GHC == 7.8.4
+
+Extra-source-files:
+ CHANGELOG
+ src/Util/Sanitize.hs
+ src/Util/GenerateHtmlCombinators.hs
+
+Library
+ Hs-source-dirs: src
+ Ghc-Options: -Wall
+
+ Exposed-modules:
+ Text.Blaze.Html
+ Text.Blaze.Html.Renderer.Pretty
+ Text.Blaze.Html.Renderer.String
+ Text.Blaze.Html.Renderer.Text
+ Text.Blaze.Html.Renderer.Utf8
+ Text.Blaze.Html4.FrameSet
+ Text.Blaze.Html4.FrameSet.Attributes
+ Text.Blaze.Html4.Strict
+ Text.Blaze.Html4.Strict.Attributes
+ Text.Blaze.Html4.Transitional
+ Text.Blaze.Html4.Transitional.Attributes
+ Text.Blaze.Html5
+ Text.Blaze.Html5.Attributes
+ Text.Blaze.XHtml1.FrameSet
+ Text.Blaze.XHtml1.FrameSet.Attributes
+ Text.Blaze.XHtml1.Strict
+ Text.Blaze.XHtml1.Strict.Attributes
+ Text.Blaze.XHtml1.Transitional
+ Text.Blaze.XHtml1.Transitional.Attributes
+ Text.Blaze.XHtml5
+ Text.Blaze.XHtml5.Attributes
+
+ Build-depends:
+ base >= 4 && < 5,
+ blaze-builder >= 0.3 && < 0.5,
+ blaze-markup >= 0.8 && < 0.9,
+ bytestring >= 0.9 && < 0.13,
+ text >= 0.10 && < 2.2
+
+Test-suite blaze-html-tests
+ Type: exitcode-stdio-1.0
+ Hs-source-dirs: src tests
+ Main-is: TestSuite.hs
+ Ghc-options: -Wall
+
+ Other-modules:
+ Text.Blaze.Html
+ Text.Blaze.Html.Renderer.String
+ Text.Blaze.Html.Renderer.Text
+ Text.Blaze.Html.Renderer.Utf8
+ Text.Blaze.Html.Tests
+ Text.Blaze.Html.Tests.Util
+ Text.Blaze.Html5
+ Text.Blaze.Html5.Attributes
+ Util.Sanitize
+ Util.Tests
+
+ Build-depends:
+ HUnit >= 1.2 && < 1.7,
+ QuickCheck >= 2.4 && < 2.15,
+ containers >= 0.3 && < 0.7,
+ test-framework >= 0.4 && < 0.9,
+ test-framework-hunit >= 0.3 && < 0.4,
+ test-framework-quickcheck2 >= 0.3 && < 0.4,
+ -- Copied from regular dependencies...
+ base >= 4 && < 5,
+ blaze-builder >= 0.3 && < 0.5,
+ blaze-markup >= 0.8 && < 0.9,
+ bytestring >= 0.9 && < 0.13,
+ text >= 0.10 && < 2.2
+
+Source-repository head
+ Type: git
+ Location: http://github.com/jaspervdj/blaze-html.git
diff --git a/ghc-blaze-html.spec b/ghc-blaze-html.spec
new file mode 100644
index 0000000..57e77d5
--- /dev/null
+++ b/ghc-blaze-html.spec
@@ -0,0 +1,103 @@
+%global pkg_name blaze-html
+%global pkgver %{pkg_name}-%{version}
+%bcond_with tests
+
+Name: ghc-%{pkg_name}
+Version: 0.9.1.2
+Release: 1
+Summary: A blazingly fast HTML combinator library for Haskell
+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/4.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-blaze-markup-devel
+BuildRequires: ghc-blaze-markup-prof
+BuildRequires: ghc-bytestring-devel
+BuildRequires: ghc-bytestring-prof
+BuildRequires: ghc-rpm-macros
+BuildRequires: ghc-text-devel
+BuildRequires: ghc-text-prof
+ExcludeArch: %{ix86}
+%if %{with tests}
+BuildRequires: ghc-HUnit-devel
+BuildRequires: ghc-HUnit-prof
+BuildRequires: ghc-QuickCheck-devel
+BuildRequires: ghc-QuickCheck-prof
+BuildRequires: ghc-containers-devel
+BuildRequires: ghc-containers-prof
+BuildRequires: ghc-test-framework-devel
+BuildRequires: ghc-test-framework-hunit-devel
+BuildRequires: ghc-test-framework-hunit-prof
+BuildRequires: ghc-test-framework-prof
+BuildRequires: ghc-test-framework-quickcheck2-devel
+BuildRequires: ghc-test-framework-quickcheck2-prof
+%endif
+
+%description
+A blazingly fast HTML combinator library for the Haskell programming language.
+The Text.Blaze module is a good starting point, as well as this tutorial:
+<http://jaspervdj.be/blaze/tutorial.html>.
+
+%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}-help
+Summary: Haskell %{pkg_name} library documentation
+BuildArch: noarch
+
+%description -n ghc-%{pkg_name}-help
+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
+
+%files -n ghc-%{pkg_name}-help -f ghc-%{pkg_name}-help.files
+%license LICENSE
+
+%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
+
+%changelog
+* Tue Aug 22 2023 Lin Runze <lrzlin@163.com> 0.9.1.2-1
+- Initial packaging (Version 0.9.1.2)
diff --git a/sources b/sources
new file mode 100644
index 0000000..9316cdb
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+a1b7997875d18d26b13de20aa032e2ec blaze-html-0.9.1.2.tar.gz