summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-30 02:16:23 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-30 02:16:23 +0000
commit350839f914bdbd66555028f7480364cc18625632 (patch)
tree156a7f0aa2782384a0da288f800b38427a24242d
parent416d69b0611666bf9ef28046a19b13dd049eb4bc (diff)
automatic import of ghc-base-unicode-symbolsopeneuler23.09
-rw-r--r--.gitignore1
-rw-r--r--ghc-base-unicode-symbols.spec89
-rw-r--r--sources1
3 files changed, 91 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..a097e28 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/base-unicode-symbols-0.2.4.2.tar.gz
diff --git a/ghc-base-unicode-symbols.spec b/ghc-base-unicode-symbols.spec
new file mode 100644
index 0000000..1e01666
--- /dev/null
+++ b/ghc-base-unicode-symbols.spec
@@ -0,0 +1,89 @@
+%global pkg_name base-unicode-symbols
+%global pkgver %{pkg_name}-%{version}
+
+Name: ghc-%{pkg_name}
+Version: 0.2.4.2
+Release: 1
+Summary: Unicode alternatives for common functions and operators
+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}
+
+%description
+This package defines new symbols for a number of functions, operators and types
+in the base package.
+
+All symbols are documented with their actual definition and information
+regarding their Unicode code point. They should be completely interchangeable
+with their definitions.
+
+For further Unicode goodness you can enable the 'UnicodeSyntax' language
+extension [1]. This extension enables Unicode characters to be used to stand
+for certain ASCII character sequences, i.e. &#x2192; instead of '->', &#x2200;
+instead of 'forall' and many others.
+
+Original idea by P&#xE9;ter Divi&#xE1;nszky.
+
+[1]
+<https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/glasgow_exts.html#unicode-syntax>.
+
+%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 README.markdown
+
+%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.4.2-1
+- Initial packaging (Version 0.2.4.2)
diff --git a/sources b/sources
new file mode 100644
index 0000000..83e0c78
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+8f6bf2b5f9dd94d3d8913e770c3989d3 base-unicode-symbols-0.2.4.2.tar.gz