summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-30 02:52:10 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-30 02:52:10 +0000
commitf18988ad6a03c9aa9c21fb7de34d08c94ab9d635 (patch)
treef5bf24f780d44f7188ef66a9e878d6f9514e3560
parentb3b7f7914cfb501c2014fb779654b2843639936f (diff)
automatic import of ghc-data-fixopeneuler23.09
-rw-r--r--.gitignore1
-rwxr-xr-xdata-fix.cabal73
-rw-r--r--ghc-data-fix.spec82
-rw-r--r--sources1
4 files changed, 157 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..94ff962 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/data-fix-0.3.2.tar.gz
diff --git a/data-fix.cabal b/data-fix.cabal
new file mode 100755
index 0000000..92f60bc
--- /dev/null
+++ b/data-fix.cabal
@@ -0,0 +1,73 @@
+Name: data-fix
+Version: 0.3.2
+x-revision: 4
+Cabal-Version: >= 1.10
+License: BSD3
+License-file: LICENSE
+Author: Anton Kholomiov, Edward Kmett, Oleg Grenrus
+Maintainer: <anton.kholomiov@gmail.com>
+Category: Data
+Synopsis: Fixpoint data types
+Build-Type: Simple
+Description:
+ Fixpoint types and recursion schemes. If you define your AST as
+ fixpoint type, you get fold and unfold operations for free.
+ .
+ Thanks for contribution to: Matej Kollar, Herbert Valerio Riedel
+
+Stability: Experimental
+
+Homepage: https://github.com/spell-music/data-fix
+Bug-Reports: https://github.com/spell-music/data-fix/issues
+
+Tested-With:
+ GHC ==7.2.2
+ || ==7.4.2
+ || ==7.6.3
+ || ==7.8.4
+ || ==7.10.3
+ || ==8.0.2
+ || ==8.2.2
+ || ==8.4.4
+ || ==8.6.5
+ || ==8.8.4
+ || ==8.10.7
+ || ==9.0.2
+ || ==9.2.7
+ || ==9.4.4
+ || ==9.6.1
+
+extra-source-files:
+ CHANGELOG.md
+
+Source-repository head
+ Type: git
+ Location: https://github.com/spell-music/data-fix
+
+library
+ hs-source-dirs: src
+ default-language: Haskell2010
+ ghc-options: -Wall
+ exposed-modules: Data.Fix
+
+ if impl(ghc >=8.0)
+ ghc-options: -Wno-trustworthy-safe
+
+ if impl(ghc >=8.4)
+ ghc-options:
+ -Wincomplete-uni-patterns -Wincomplete-record-updates
+ -Wredundant-constraints -Widentities -Wmissing-export-lists
+
+ build-depends:
+ base >=4.4 && <4.19
+ , deepseq >=1.3.0.0 && <1.5
+ , hashable >=1.2.7.0 && <1.5
+
+ if impl(ghc <7.6)
+ -- for GHC.Generics
+ build-depends: ghc-prim
+
+ if !impl(ghc >=8.0)
+ build-depends:
+ transformers >=0.3 && <0.7
+ , transformers-compat >=0.6.5 && <0.8
diff --git a/ghc-data-fix.spec b/ghc-data-fix.spec
new file mode 100644
index 0000000..ead7a0f
--- /dev/null
+++ b/ghc-data-fix.spec
@@ -0,0 +1,82 @@
+%global pkg_name data-fix
+%global pkgver %{pkg_name}-%{version}
+
+Name: ghc-%{pkg_name}
+Version: 0.3.2
+Release: 1
+Summary: Fixpoint data types
+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-deepseq-devel
+BuildRequires: ghc-deepseq-prof
+BuildRequires: ghc-hashable-devel
+BuildRequires: ghc-hashable-prof
+BuildRequires: ghc-rpm-macros
+ExcludeArch: %{ix86}
+
+%description
+Fixpoint types and recursion schemes. If you define your AST as fixpoint type,
+you get fold and unfold operations for free.
+
+Thanks for contribution to: Matej Kollar, Herbert Valerio Riedel.
+
+%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
+
+%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
+
+%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.3.2-1
+- Initial packaging (Version 0.3.2)
diff --git a/sources b/sources
new file mode 100644
index 0000000..14b6cc8
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+18b28d6e72e5656d33b49ac010e58321 data-fix-0.3.2.tar.gz