summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-26 22:52:42 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-26 22:52:42 +0000
commitf85e56d4a473ff31a3bffcb5125f0065ef6d46d3 (patch)
treea68b4046759779bce82e472ee4ef1cb371769478
parentcb9b028d1da4646660be85f95f0fed491236210c (diff)
automatic import of ghc-boringopeneuler23.09
-rw-r--r--.gitignore1
-rw-r--r--ghc-boring.spec82
-rw-r--r--sources1
3 files changed, 84 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..ec609e5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/boring-0.2.1.tar.gz
diff --git a/ghc-boring.spec b/ghc-boring.spec
new file mode 100644
index 0000000..0f72c71
--- /dev/null
+++ b/ghc-boring.spec
@@ -0,0 +1,82 @@
+%global pkg_name boring
+%global pkgver %{pkg_name}-%{version}
+
+Name: ghc-%{pkg_name}
+Version: 0.2.1
+Release: 1
+Summary: Boring and Absurd 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
+BuildRequires: ghc-Cabal-devel
+BuildRequires: ghc-base-devel
+BuildRequires: ghc-base-prof
+BuildRequires: ghc-rpm-macros
+BuildRequires: ghc-tagged-devel
+BuildRequires: ghc-tagged-prof
+BuildRequires: ghc-transformers-devel
+BuildRequires: ghc-transformers-prof
+ExcludeArch: %{ix86}
+
+%description
+* 'Boring' types are isomorphic to '()'.
+
+* 'Absurd' types are isomorphic to 'Void'.
+
+See [What does () mean in Haskell -answer by Conor
+McBride](https://stackoverflow.com/questions/33112439/what-does-mean-in-haskell/33115522#33115522).
+
+%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
+
+%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
+* Thu Sep 28 2023 Lin Runze <lrzlin@163.com> 0.2.1-1
+- Initial packaging (Version 0.2.1)
diff --git a/sources b/sources
new file mode 100644
index 0000000..832c8be
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+61a11fc6fc6af1cfcd76c5edc3e7043e boring-0.2.1.tar.gz