diff options
author | CoprDistGit <infra@openeuler.org> | 2023-10-29 08:38:38 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-10-29 08:38:38 +0000 |
commit | ad7f90bc1bb4bd6298959af853b610c9092f79df (patch) | |
tree | 3520096f7bd32d485e2ee49a1a098cf95a7293e8 | |
parent | aa644428a3e8aae941922ada77a142d212d89964 (diff) |
automatic import of ghc-old-timeopeneuler23.09
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | ghc-old-time.spec | 80 | ||||
-rwxr-xr-x | old-time.cabal | 60 | ||||
-rw-r--r-- | sources | 1 |
4 files changed, 142 insertions, 0 deletions
@@ -0,0 +1 @@ +/old-time-1.1.0.3.tar.gz diff --git a/ghc-old-time.spec b/ghc-old-time.spec new file mode 100644 index 0000000..039edd6 --- /dev/null +++ b/ghc-old-time.spec @@ -0,0 +1,80 @@ +%global pkg_name old-time +%global pkgver %{pkg_name}-%{version} + +Name: ghc-%{pkg_name} +Version: 1.1.0.3 +Release: 1 +Summary: Time 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-old-locale-devel +BuildRequires: ghc-old-locale-prof +BuildRequires: ghc-rpm-macros +ExcludeArch: %{ix86} + +%description +This package provides the old time library. + +For new projects, the newer <http://hackage.haskell.org/package/time time +library> is recommended. + +%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 +* Thu Sep 28 2023 Lin Runze <lrzlin@163.com> 1.1.0.3-1 +- Initial packaging (Version 1.1.0.3) diff --git a/old-time.cabal b/old-time.cabal new file mode 100755 index 0000000..4aefcbd --- /dev/null +++ b/old-time.cabal @@ -0,0 +1,60 @@ +name: old-time
+version: 1.1.0.3
+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-time/issues
+synopsis: Time library
+category: System
+build-type: Configure
+cabal-Version: >=1.10
+description:
+ This package provides the old time library.
+ .
+ For new projects, the newer
+ <http://hackage.haskell.org/package/time time library>
+ is recommended.
+
+extra-source-files:
+ aclocal.m4
+ changelog.md
+ config.guess
+ config.sub
+ configure
+ configure.ac
+ include/HsTimeConfig.h.in
+ install-sh
+ old-time.buildinfo
+
+extra-tmp-files:
+ autom4te.cache
+ config.log
+ config.status
+ include/HsTimeConfig.h
+
+source-repository head
+ type: git
+ location: https://github.com/haskell/old-time.git
+
+Library
+ default-language: Haskell2010
+ other-extensions: Trustworthy
+
+ exposed-modules:
+ System.Time
+
+ c-sources:
+ cbits/timeUtils.c
+
+ include-dirs: include
+ includes: HsTime.h
+ install-includes:
+ HsTime.h
+
+ build-depends:
+ base >= 4.7 && < 5,
+ old-locale == 1.0.*
+
+ ghc-options: -Wall
@@ -0,0 +1 @@ +1868eaf39e616176d898bcd5510e1f09 old-time-1.1.0.3.tar.gz |