summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-29 02:16:07 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-29 02:16:07 +0000
commit6415d3ed377dc17b842f1300214d4cfe48ab94cb (patch)
tree8f1591ef8f8d766511dd85f7dbc06993d0078ba0
parent858ed8f2be56f0f7e7085dcda519eed7ba2ac9ba (diff)
automatic import of ghc-transformers-compatopeneuler23.09
-rw-r--r--.gitignore1
-rw-r--r--ghc-transformers-compat.spec85
-rw-r--r--sources1
3 files changed, 87 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..9b69df9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/transformers-compat-0.7.2.tar.gz
diff --git a/ghc-transformers-compat.spec b/ghc-transformers-compat.spec
new file mode 100644
index 0000000..51ec979
--- /dev/null
+++ b/ghc-transformers-compat.spec
@@ -0,0 +1,85 @@
+%global pkg_name transformers-compat
+%global pkgver %{pkg_name}-%{version}
+
+Name: ghc-%{pkg_name}
+Version: 0.7.2
+Release: 1
+Summary: A small compatibility shim for the transformers library
+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-transformers-devel
+BuildRequires: ghc-transformers-prof
+ExcludeArch: %{ix86}
+
+%description
+This package includes backported versions of types that were added to
+transformers in transformers 0.3, 0.4, and 0.5 for users who need strict
+transformers 0.2 or 0.3 compatibility to run on old versions of the platform,
+but also need those types.
+
+Those users should be able to just depend on 'transformers >= 0.2' and
+'transformers-compat >= 0.3'.
+
+Note: missing methods are not supplied, but this at least permits the types to
+be used.
+
+%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.markdown 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
+* Tue Aug 22 2023 Lin Runze <lrzlin@163.com> 0.7.2-1
+- Initial packaging (Version 0.7.2)
diff --git a/sources b/sources
new file mode 100644
index 0000000..1dcde52
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+5bad8867cf0614887a243393ee09c76c transformers-compat-0.7.2.tar.gz