diff options
author | CoprDistGit <infra@openeuler.org> | 2023-10-29 02:11:39 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-10-29 02:11:39 +0000 |
commit | 35180b199d6b74e4e2a20bafd51b1f84d2bf52e1 (patch) | |
tree | 74149f1c95858240618c5aa3af1d0064237bef0f | |
parent | f39ef15fd46a522755a22bdb05b586a379007b55 (diff) |
automatic import of ghc-old-localeopeneuler23.09
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | ghc-old-locale.spec | 76 | ||||
-rwxr-xr-x | old-locale.cabal | 36 | ||||
-rw-r--r-- | sources | 1 |
4 files changed, 114 insertions, 0 deletions
@@ -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
@@ -0,0 +1 @@ +507bd2d3ce2407403e2a2d1136c3d149 old-locale-1.0.0.7.tar.gz |