From ca37ac2ffaed8bb8fa25e15fbafcac1b72639b66 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 30 Oct 2023 07:31:06 +0000 Subject: automatic import of ghc-uuid-types --- .gitignore | 1 + ghc-uuid-types.spec | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + uuid-types.cabal | 99 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 211 insertions(+) create mode 100644 ghc-uuid-types.spec create mode 100644 sources create mode 100755 uuid-types.cabal diff --git a/.gitignore b/.gitignore index e69de29..5873515 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/uuid-types-1.0.5.tar.gz diff --git a/ghc-uuid-types.spec b/ghc-uuid-types.spec new file mode 100644 index 0000000..aa8c8e2 --- /dev/null +++ b/ghc-uuid-types.spec @@ -0,0 +1,110 @@ +%global pkg_name uuid-types +%global pkgver %{pkg_name}-%{version} +%bcond_with tests + +Name: ghc-%{pkg_name} +Version: 1.0.5 +Release: 1 +Summary: Type definitions for Universally Unique Identifiers +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/4.cabal#/%{pkg_name}.cabal +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-binary-devel +BuildRequires: ghc-binary-prof +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-bytestring-prof +BuildRequires: ghc-deepseq-devel +BuildRequires: ghc-deepseq-prof +BuildRequires: ghc-hashable-devel +BuildRequires: ghc-hashable-prof +BuildRequires: ghc-random-devel +BuildRequires: ghc-random-prof +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-template-haskell-devel +BuildRequires: ghc-template-haskell-prof +BuildRequires: ghc-text-devel +BuildRequires: ghc-text-prof +ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-QuickCheck-prof +BuildRequires: ghc-ghc-byteorder-devel +BuildRequires: ghc-ghc-byteorder-prof +BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-hunit-devel +BuildRequires: ghc-tasty-hunit-prof +BuildRequires: ghc-tasty-prof +BuildRequires: ghc-tasty-quickcheck-devel +BuildRequires: ghc-tasty-quickcheck-prof +%endif + +%description +This library contains type definitions for (as specified in +) and basic conversion functions. + +See also the +providing a high-level API for managing the different UUID versions. + +%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 + +%check +%cabal_test + +%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.5-1 +- Initial packaging (Version 1.0.5) diff --git a/sources b/sources new file mode 100644 index 0000000..a1a8a7e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +4d01259910b30ba841129c9b98d20f04 uuid-types-1.0.5.tar.gz diff --git a/uuid-types.cabal b/uuid-types.cabal new file mode 100755 index 0000000..69f1aa1 --- /dev/null +++ b/uuid-types.cabal @@ -0,0 +1,99 @@ +cabal-version: 1.12 +name: uuid-types +version: 1.0.5 +x-revision: 4 +copyright: + (c) 2017-2018 Herbert Valerio Riedel + (c) 2008-2014 Antoine Latter + +author: Antoine Latter +maintainer: Oleg Grenrus +license: BSD3 +license-file: LICENSE +category: Data +build-type: Simple +tested-with: + GHC ==7.4.2 + || ==7.6.3 + || ==7.8.4 + || ==7.10.3 + || ==8.0.2 + || ==8.2.2 + || ==8.4.4 + || ==8.6.4 + || ==8.8.4 + || ==8.10.7 + || ==9.0.2 + || ==9.2.7 + || ==9.4.4 + || ==9.6.1 + +synopsis: Type definitions for Universally Unique Identifiers +description: + This library contains type definitions for + + (as specified in + ) + and basic conversion functions. + . + See also the + providing a high-level API for managing the different UUID versions. + +homepage: https://github.com/haskell-hvr/uuid +bug-reports: https://github.com/haskell-hvr/uuid/issues +extra-source-files: ChangeLog.md + +source-repository head + type: git + location: https://github.com/haskell-hvr/uuid.git + subdir: uuid-types + +library + build-depends: + base >=4.5 && <5 + , binary >=0.5.1.0 && <0.9 + , bytestring >=0.9.2.1 && <0.12 + , deepseq >=1.3.0.0 && <1.5 + , hashable >=1.2.7.0 && <1.5 + , random >=1.1 && <1.3 + , template-haskell >=2.7.0.0 && <2.21 + , text >=1.2.3.0 && <1.3 || >=2.0 && <2.1 + + exposed-modules: Data.UUID.Types + + -- Exposed for companion projects; *NOT* part of the official API: + exposed-modules: + Data.UUID.Types.Internal + Data.UUID.Types.Internal.Builder + + default-language: Haskell2010 + other-extensions: + DeriveDataTypeable + TypeFamilies + + ghc-options: -Wall + hs-source-dirs: src + +test-suite testuuid + type: exitcode-stdio-1.0 + main-is: TestUUID.hs + hs-source-dirs: tests + default-language: Haskell2010 + other-extensions: ViewPatterns + ghc-options: -Wall + + -- inherited constraints + build-depends: + base + , binary + , bytestring + , uuid-types + , template-haskell + + -- deps w/o inherited constraints + build-depends: + ghc-byteorder >=4.11 && <4.12 + , QuickCheck >=2.14.2 && <2.15 + , tasty >=1.4.0.1 && <1.5 + , tasty-hunit >=0.10 && <0.11 + , tasty-quickcheck >=0.10 && <0.11 -- cgit v1.2.3