summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-29 02:20:37 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-29 02:20:37 +0000
commit9c9da2f55620db829b3961fdc5bf8365c7d24004 (patch)
tree2909d47e81931c6cd1d315d6061fc09b490c496a
parent4b8dc48e252005554726509d6bbfd12a0dd9797d (diff)
automatic import of ghc-splitopeneuler23.09
-rw-r--r--.gitignore1
-rw-r--r--ghc-split.spec96
-rw-r--r--sources1
3 files changed, 98 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..5b53f6e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/split-0.2.3.5.tar.gz
diff --git a/ghc-split.spec b/ghc-split.spec
new file mode 100644
index 0000000..a430a05
--- /dev/null
+++ b/ghc-split.spec
@@ -0,0 +1,96 @@
+%global pkg_name split
+%global pkgver %{pkg_name}-%{version}
+%bcond_with tests
+
+Name: ghc-%{pkg_name}
+Version: 0.2.3.5
+Release: 1
+Summary: Combinator library for splitting lists
+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
+BuildRequires: ghc-Cabal-devel
+BuildRequires: ghc-base-devel
+BuildRequires: ghc-base-prof
+BuildRequires: ghc-rpm-macros
+ExcludeArch: %{ix86}
+%if %{with tests}
+BuildRequires: ghc-QuickCheck-devel
+BuildRequires: ghc-QuickCheck-prof
+%endif
+
+%description
+A collection of various methods for splitting lists into parts, akin to the
+"split" function found in several mainstream languages. Here is its tale:
+
+Once upon a time the standard "Data.List" module held no function for splitting
+a list into parts according to a delimiter. Many a brave lambda-knight strove
+to add such a function, but their striving was in vain, for Lo, the Supreme
+Council fell to bickering amongst themselves what was to be the essential
+nature of the One True Function which could cleave a list in twain (or thrain,
+or any required number of parts).
+
+And thus came to pass the split package, comprising divers functions for
+splitting a list asunder, each according to its nature. And the Supreme Council
+had no longer any grounds for argument, for the favored method of each was
+contained therein.
+
+To get started, see the "Data.List.Split" module.
+
+%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}
+
+%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 CHANGES README
+
+%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.2.3.5-1
+- Initial packaging (Version 0.2.3.5)
diff --git a/sources b/sources
new file mode 100644
index 0000000..a982044
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+3426ff2a7f64549f4c2628b246e18a19 split-0.2.3.5.tar.gz