From ad7f90bc1bb4bd6298959af853b610c9092f79df Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sun, 29 Oct 2023 08:38:38 +0000 Subject: automatic import of ghc-old-time --- .gitignore | 1 + ghc-old-time.spec | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ old-time.cabal | 60 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 142 insertions(+) create mode 100644 ghc-old-time.spec create mode 100755 old-time.cabal create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..951f05c 100644 --- a/.gitignore +++ b/.gitignore @@ -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 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 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 + + 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 diff --git a/sources b/sources new file mode 100644 index 0000000..f6e3c7e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +1868eaf39e616176d898bcd5510e1f09 old-time-1.1.0.3.tar.gz -- cgit v1.2.3