From 35180b199d6b74e4e2a20bafd51b1f84d2bf52e1 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sun, 29 Oct 2023 02:11:39 +0000 Subject: automatic import of ghc-old-locale --- .gitignore | 1 + ghc-old-locale.spec | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++ old-locale.cabal | 36 +++++++++++++++++++++++++ sources | 1 + 4 files changed, 114 insertions(+) create mode 100644 ghc-old-locale.spec create mode 100755 old-locale.cabal create mode 100644 sources 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 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 -- cgit v1.2.3