summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-29 02:11:39 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-29 02:11:39 +0000
commit35180b199d6b74e4e2a20bafd51b1f84d2bf52e1 (patch)
tree74149f1c95858240618c5aa3af1d0064237bef0f
parentf39ef15fd46a522755a22bdb05b586a379007b55 (diff)
automatic import of ghc-old-localeopeneuler23.09
-rw-r--r--.gitignore1
-rw-r--r--ghc-old-locale.spec76
-rwxr-xr-xold-locale.cabal36
-rw-r--r--sources1
4 files changed, 114 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..d3c73c5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/old-locale-1.0.0.7.tar.gz
diff --git a/ghc-old-locale.spec b/ghc-old-locale.spec
new file mode 100644
index 0000000..63dce8f
--- /dev/null
+++ b/ghc-old-locale.spec
@@ -0,0 +1,76 @@
+%global pkg_name old-locale
+%global pkgver %{pkg_name}-%{version}
+
+Name: ghc-%{pkg_name}
+Version: 1.0.0.7
+Release: 1
+Summary: Locale 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
+Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal#/%{pkg_name}.cabal
+BuildRequires: ghc-Cabal-devel
+BuildRequires: ghc-base-devel
+BuildRequires: ghc-base-prof
+BuildRequires: ghc-rpm-macros
+ExcludeArch: %{ix86}
+
+%description
+This package provides the ability to adapt to locale conventions such as date
+and time formats.
+
+%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}
+cp -p %{SOURCE1} %{pkg_name}.cabal
+
+%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
+* Tue Aug 22 2023 Lin Runze <lrzlin@163.com> 1.0.0.7-1
+- Initial packaging (Version 1.0.0.7)
diff --git a/old-locale.cabal b/old-locale.cabal
new file mode 100755
index 0000000..13dd2dd
--- /dev/null
+++ b/old-locale.cabal
@@ -0,0 +1,36 @@
+name: old-locale
+version: 1.0.0.7
+x-revision: 2
+-- NOTE: Don't forget to update ./changelog.md
+license: BSD3
+license-file: LICENSE
+maintainer: libraries@haskell.org
+bug-reports: https://github.com/haskell/old-locale/issues
+synopsis: locale library
+category: System
+build-type: Simple
+Cabal-Version:>=1.10
+tested-with: GHC==7.8.3, GHC==7.8.2, GHC==7.8.1, GHC==7.6.3, GHC==7.6.2, GHC==7.6.1, GHC==7.4.2, GHC==7.4.1, GHC==7.2.2, GHC==7.2.1, GHC==7.0.4, GHC==7.0.3, GHC==7.0.2, GHC==7.0.1, GHC==6.12.3
+description:
+ This package provides the ability to adapt to
+ locale conventions such as date and time formats.
+
+extra-source-files:
+ changelog.md
+
+source-repository head
+ type: git
+ location: https://github.com/haskell/old-locale.git
+
+Library
+ default-language: Haskell98
+ other-extensions: CPP
+ if impl(ghc>=7.2)
+ -- && base>=4.4.1
+ other-extensions: Safe
+
+ exposed-modules:
+ System.Locale
+
+ build-depends: base >= 4.2 && < 5
+ ghc-options: -Wall
diff --git a/sources b/sources
new file mode 100644
index 0000000..cfed6a7
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+507bd2d3ce2407403e2a2d1136c3d149 old-locale-1.0.0.7.tar.gz