summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-30 09:37:41 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-30 09:37:41 +0000
commitbfd0a5414fcea7bbebc01c24179e1baa86724618 (patch)
tree8a4a73065454977b9ff99319562645c14bcad6d7
parent1c36159cacb4d15b69a80af7ea83c1f2fb432c8f (diff)
automatic import of ghc-libyamlopeneuler23.09
-rw-r--r--.gitignore1
-rw-r--r--ghc-libyaml.spec85
-rwxr-xr-xlibyaml.cabal83
-rw-r--r--sources1
4 files changed, 170 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..697f0f9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libyaml-0.1.2.tar.gz
diff --git a/ghc-libyaml.spec b/ghc-libyaml.spec
new file mode 100644
index 0000000..dc47d2e
--- /dev/null
+++ b/ghc-libyaml.spec
@@ -0,0 +1,85 @@
+%global pkg_name libyaml
+%global pkgver %{pkg_name}-%{version}
+
+Name: ghc-%{pkg_name}
+Version: 0.1.2
+Release: 1
+Summary: Low-level, streaming YAML interface
+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-bytestring-devel
+BuildRequires: ghc-bytestring-prof
+BuildRequires: ghc-conduit-devel
+BuildRequires: ghc-conduit-prof
+BuildRequires: ghc-resourcet-devel
+BuildRequires: ghc-resourcet-prof
+BuildRequires: ghc-rpm-macros
+BuildRequires: libyaml-devel
+ExcludeArch: %{ix86}
+
+%description
+README and API documentation are available at
+<https://www.stackage.org/package/libyaml>.
+
+%package devel
+Summary: Haskell %{pkg_name} library development files
+Requires: %{name} = %{version}-%{release}
+Requires: ghc-compiler = %{ghc_version}
+Requires: libyaml-devel
+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
+%define cabal_configure_options -fsystem-libyaml
+%ghc_lib_build
+
+%install
+%ghc_lib_install
+
+%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}-help -f ghc-%{pkg_name}-help.files
+%license LICENSE
+
+%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
+
+%changelog
+* Thu Sep 28 2023 Lin Runze <lrzlin@163.com> 0.1.2-1
+- Initial packaging (Version 0.1.2)
diff --git a/libyaml.cabal b/libyaml.cabal
new file mode 100755
index 0000000..383cb6a
--- /dev/null
+++ b/libyaml.cabal
@@ -0,0 +1,83 @@
+cabal-version: 1.12
+
+-- This file has been generated from package.yaml by hpack version 0.31.2.
+--
+-- see: https://github.com/sol/hpack
+--
+-- hash: 93d917f62be86415287d10db638b1d5422a21b7a4c5b229fbe16b62c47717555
+
+name: libyaml
+version: 0.1.2
+x-revision: 1
+synopsis: Low-level, streaming YAML interface.
+description: README and API documentation are available at <https://www.stackage.org/package/libyaml>
+category: Text
+stability: stable
+homepage: https://github.com/snoyberg/yaml#readme
+bug-reports: https://github.com/snoyberg/yaml/issues
+author: Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>,Kirill Simonov
+maintainer: Michael Snoyman <michael@snoyman.com>
+license: BSD3
+license-file: LICENSE
+build-type: Simple
+extra-source-files:
+ c/helper.h
+ libyaml_src/yaml_private.h
+ libyaml_src/yaml.h
+ libyaml_src/LICENSE
+ README.md
+ ChangeLog.md
+
+source-repository head
+ type: git
+ location: https://github.com/snoyberg/yaml
+
+flag no-unicode
+ description: Don't enable unicode output. Instead, unicode characters will be escaped.
+ manual: False
+ default: False
+
+flag system-libyaml
+ description: Use the system-wide libyaml instead of the bundled copy
+ manual: False
+ default: False
+
+library
+ exposed-modules:
+ Text.Libyaml
+ other-modules:
+ Paths_libyaml
+ hs-source-dirs:
+ src
+ ghc-options: -Wall
+ include-dirs:
+ c
+ c-sources:
+ c/helper.c
+ build-depends:
+ base >=4.9.1 && <5
+ , bytestring >=0.9.1.4
+ , conduit >=1.2.8 && <1.4
+ , resourcet >=0.3 && <1.4
+ if flag(no-unicode)
+ cpp-options: -D__NO_UNICODE__
+ if !(flag(system-libyaml))
+ include-dirs:
+ libyaml_src
+ c-sources:
+ libyaml_src/api.c
+ libyaml_src/dumper.c
+ libyaml_src/emitter.c
+ libyaml_src/loader.c
+ libyaml_src/parser.c
+ libyaml_src/reader.c
+ libyaml_src/scanner.c
+ libyaml_src/writer.c
+ else
+ extra-libraries:
+ yaml
+ if os(windows)
+ cpp-options: -DWINDOWS
+ build-depends:
+ directory
+ default-language: Haskell2010
diff --git a/sources b/sources
new file mode 100644
index 0000000..990f66b
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+330d02162ac413cdc435f69b5b2d1bc6 libyaml-0.1.2.tar.gz