summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-29 08:40:08 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-29 08:40:08 +0000
commitd08d9e830b90e06d2907bd7b75815f9ecd16b8a2 (patch)
tree7300f4c82a48e230ab6913092692486011fe8940
parent23e290076a27f9539bf971532085e3a3f5af6851 (diff)
automatic import of ghc-Onlyopeneuler23.09
-rw-r--r--.gitignore1
-rwxr-xr-xOnly.cabal42
-rw-r--r--ghc-Only.spec83
-rw-r--r--sources1
4 files changed, 127 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..709ad77 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Only-0.1.tar.gz
diff --git a/Only.cabal b/Only.cabal
new file mode 100755
index 0000000..5490658
--- /dev/null
+++ b/Only.cabal
@@ -0,0 +1,42 @@
+name: Only
+version: 0.1
+x-revision: 2
+synopsis: The 1-tuple type or single-value "collection"
+license: BSD3
+license-file: LICENSE
+author: Herbert Valerio Riedel
+maintainer: hvr@gnu.org
+bug-reports: https://github.com/haskell-hvr/Only/issues
+category: Data
+build-type: Simple
+cabal-version: >=1.10
+description:
+ This package provides a canonical anonymous 1-tuple type missing
+ from Haskell for attaching typeclass instances.
+ .
+ NOTE: There is also the </package/OneTuple OneTuple package> which
+ by using a boxed @data@-type provides a 1-tuple type which has
+ laziness properties which are more faithful to the ones of Haskell's
+ native tuples; whereas the primary purpose of 'Only' is to
+ provide the traditionally so named type-wrapper for attaching typeclass
+ instances.
+
+Source-Repository head
+ Type: git
+ Location: https://github.com/haskell-hvr/Only.git
+
+library
+ hs-source-dirs: src
+ exposed-modules: Data.Tuple.Only
+
+ default-language: Haskell2010
+ other-extensions: DeriveGeneric
+ , DeriveDataTypeable
+ , DeriveFunctor
+ , Safe
+
+ build-depends: base >= 4.5 && <5
+ , deepseq >= 1.1 && <1.6
+
+ if impl(ghc == 7.4.*)
+ build-depends: ghc-prim
diff --git a/ghc-Only.spec b/ghc-Only.spec
new file mode 100644
index 0000000..49aab73
--- /dev/null
+++ b/ghc-Only.spec
@@ -0,0 +1,83 @@
+%global pkg_name Only
+%global pkgver %{pkg_name}-%{version}
+
+Name: ghc-%{pkg_name}
+Version: 0.1
+Release: 1
+Summary: The 1-tuple type or single-value "collection"
+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/2.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-rpm-macros
+ExcludeArch: %{ix86}
+
+%description
+This package provides a canonical anonymous 1-tuple type missing from Haskell
+for attaching typeclass instances.
+
+NOTE: There is also the </package/OneTuple OneTuple package> which by using a
+boxed 'data'-type provides a 1-tuple type which has laziness properties which
+are more faithful to the ones of Haskell's native tuples; whereas the primary
+purpose of 'Only' is to provide the traditionally so named type-wrapper for
+attaching typeclass instances.
+
+%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
+
+%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.1-1
+- Initial packaging (Version 0.1)
diff --git a/sources b/sources
new file mode 100644
index 0000000..369fd46
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+acf9dae221a0a31946d4c757a339c4a0 Only-0.1.tar.gz