summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-29 01:56:06 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-29 01:56:06 +0000
commit5d855fe8878488c4ed629f88221a876a19832e74 (patch)
treeb459dfc7aa93168f288520a80c5e4a13f07a4914
parent4788bc5914e2b60fd7971314f18bcb75ce3dcf01 (diff)
automatic import of ghc-utf8-stringopeneuler23.09
-rw-r--r--.gitignore1
-rw-r--r--ghc-utf8-string.spec85
-rw-r--r--sources1
3 files changed, 87 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..9324e63 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/utf8-string-1.0.2.tar.gz
diff --git a/ghc-utf8-string.spec b/ghc-utf8-string.spec
new file mode 100644
index 0000000..fa6a9db
--- /dev/null
+++ b/ghc-utf8-string.spec
@@ -0,0 +1,85 @@
+%global pkg_name utf8-string
+%global pkgver %{pkg_name}-%{version}
+%bcond_with tests
+
+Name: ghc-%{pkg_name}
+Version: 1.0.2
+Release: 1
+Summary: Support for reading and writing UTF8 Strings
+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-bytestring-devel
+BuildRequires: ghc-bytestring-prof
+BuildRequires: ghc-rpm-macros
+ExcludeArch: %{ix86}
+%if %{with tests}
+BuildRequires: ghc-HUnit-devel
+BuildRequires: ghc-HUnit-prof
+%endif
+
+%description
+A UTF8 layer for Strings. The utf8-string package provides operations for
+encoding UTF8 strings to Word8 lists and back, and for reading and writing UTF8
+without truncation.
+
+%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 CHANGELOG.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> 1.0.2-1
+- Initial packaging (Version 1.0.2)
diff --git a/sources b/sources
new file mode 100644
index 0000000..2686411
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+15d21b4c87fa3fd1ee73b4fc5b2b322c utf8-string-1.0.2.tar.gz