summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-30 03:15:56 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-30 03:15:56 +0000
commit5cd385d5097da0d0792ab11a5d8220d8173b29dc (patch)
treed6823028aafdc7c097f05c0e5b70e615f4fcd07d
parentbe9577399a0db98377f8e8567f2bb9de356fd250 (diff)
automatic import of ghc-data-defaultopeneuler23.09
-rw-r--r--.gitignore1
-rw-r--r--ghc-data-default.spec80
-rw-r--r--sources1
3 files changed, 82 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..726d0e3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/data-default-0.7.1.1.tar.gz
diff --git a/ghc-data-default.spec b/ghc-data-default.spec
new file mode 100644
index 0000000..b72d0c6
--- /dev/null
+++ b/ghc-data-default.spec
@@ -0,0 +1,80 @@
+%global pkg_name data-default
+%global pkgver %{pkg_name}-%{version}
+
+Name: ghc-%{pkg_name}
+Version: 0.7.1.1
+Release: 1
+Summary: A class for types with a default value
+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-data-default-class-devel
+BuildRequires: ghc-data-default-class-prof
+BuildRequires: ghc-data-default-instances-containers-devel
+BuildRequires: ghc-data-default-instances-containers-prof
+BuildRequires: ghc-data-default-instances-dlist-devel
+BuildRequires: ghc-data-default-instances-dlist-prof
+BuildRequires: ghc-data-default-instances-old-locale-devel
+BuildRequires: ghc-data-default-instances-old-locale-prof
+BuildRequires: ghc-rpm-macros
+ExcludeArch: %{ix86}
+
+%description
+A class for types with a default value.
+
+%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
+
+%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.1.1-1
+- Initial packaging (Version 0.7.1.1)
diff --git a/sources b/sources
new file mode 100644
index 0000000..7965b49
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+13ddcc28e24cd58937c7d130e885749a data-default-0.7.1.1.tar.gz