diff --git a/.gitignore b/.gitignore index e69de29..28c6245 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/uuid-types-1.0.3.tar.gz diff --git a/ghc-uuid-types.spec b/ghc-uuid-types.spec new file mode 100644 index 0000000..a2082a0 --- /dev/null +++ b/ghc-uuid-types.spec @@ -0,0 +1,166 @@ +# generated by cabal-rpm-2.0.6 +# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ + +%global pkg_name uuid-types +%global pkgver %{pkg_name}-%{version} + +%bcond_with tests + +Name: ghc-%{pkg_name} +Version: 1.0.3 +Release: 16%{?dist} +Summary: Type definitions for Universally Unique Identifiers + +License: BSD +Url: https://hackage.haskell.org/package/%{pkg_name} +# Begin cabal-rpm sources: +Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal +# End cabal-rpm sources + +# Begin cabal-rpm deps: +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-base-prof +BuildRequires: ghc-binary-prof +BuildRequires: ghc-bytestring-prof +BuildRequires: ghc-deepseq-prof +BuildRequires: ghc-hashable-prof +BuildRequires: ghc-random-prof +BuildRequires: ghc-text-prof +%if %{with tests} +BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-hunit-devel +BuildRequires: ghc-tasty-quickcheck-devel +%endif +# End cabal-rpm deps + +%description +This library contains type definitions for Universally Unique Identifiers and +basic conversion functions. See https://en.wikipedia.org/wiki/UUID for the +general idea. + + +%package devel +Summary: Haskell %{pkg_name} library development files +Provides: %{name}-static = %{version}-%{release} +Provides: %{name}-static%{?_isa} = %{version}-%{release} +%if %{defined ghc_version} +Requires: ghc-compiler = %{ghc_version} +%endif +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package provides the Haskell %{pkg_name} library development files. + + +%if %{with haddock} +%package doc +Summary: Haskell %{pkg_name} library documentation +BuildArch: noarch + +%description doc +This package provides the Haskell %{pkg_name} library documentation. +%endif + + +%if %{with ghc_prof} +%package prof +Summary: Haskell %{pkg_name} profiling library +Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Supplements: (%{name}-devel and ghc-prof) + +%description prof +This package provides the Haskell %{pkg_name} profiling library. +%endif + + +%prep +# Begin cabal-rpm setup: +%setup -q -n %{pkgver} +cp -bp %{SOURCE1} %{pkg_name}.cabal +# End cabal-rpm setup + + +%build +# Begin cabal-rpm build: +%ghc_lib_build +# End cabal-rpm build + + +%install +# Begin cabal-rpm install +%ghc_lib_install +# End cabal-rpm install + + +%check +%cabal_test + + +%files -f %{name}.files +# Begin cabal-rpm files: +%license LICENSE +# End cabal-rpm files + + +%files devel -f %{name}-devel.files +%doc CHANGES + + +%if %{with haddock} +%files doc -f %{name}-doc.files +%license LICENSE +%endif + + +%if %{with ghc_prof} +%files prof -f %{name}-prof.files +%endif + + +%changelog +* Sat Aug 01 2020 Fedora Release Engineering - 1.0.3-16 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jul 27 2020 Fedora Release Engineering - 1.0.3-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jul 17 2020 Jens Petersen - 1.0.3-14 +- refresh to cabal-rpm-2.0.6 + +* Tue Jan 28 2020 Fedora Release Engineering - 1.0.3-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Aug 02 2019 Jens Petersen - 1.0.3-12 +- add doc and prof subpackages (cabal-rpm-1.0.0) + +* Thu Jul 25 2019 Fedora Release Engineering - 1.0.3-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Feb 17 2019 Jens Petersen - 1.0.3-10 +- refresh to cabal-rpm-0.13 + +* Thu Jan 31 2019 Fedora Release Engineering - 1.0.3-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 28 2018 Jens Petersen - 1.0.3-8 +- revise .cabal + +* Fri Jul 13 2018 Fedora Release Engineering - 1.0.3-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 1.0.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Jan 26 2018 Jens Petersen - 1.0.3-5 +- rebuild + +* Thu Oct 5 2017 Elliott Sales de Andrade - 1.0.3-4 +- Bump release to be newer than existing bundled version. + +* Wed Oct 4 2017 Fedora Haskell SIG - 1.0.3-1 +- spec file generated by cabal-rpm-0.11.2 diff --git a/sources b/sources new file mode 100644 index 0000000..21c5d7a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (uuid-types-1.0.3.tar.gz) = 039bccea9ee22388a50e3e233c95afdd3a59f01aa5f552dcd8e8c1ded8f9da210933c58a4d9cc0913c768b587c24ee27fa0eed15e531846ea841b666f513df9e diff --git a/uuid-types-1.0.3.cabal b/uuid-types-1.0.3.cabal new file mode 100644 index 0000000..fb41162 --- /dev/null +++ b/uuid-types-1.0.3.cabal @@ -0,0 +1,78 @@ +Name: uuid-types +Version: 1.0.3 +x-revision: 3 +Copyright: (c) 2008-2014 Antoine Latter +Author: Antoine Latter +Maintainer: aslatter@gmail.com +License: BSD3 +License-file: LICENSE + +Category: Data +Build-Type: Simple +Cabal-Version: >= 1.8 + +Description: + This library contains type definitions for Universally Unique Identifiers + and basic conversion functions. + + See for the general idea. + +Synopsis: Type definitions for Universally Unique Identifiers + +Homepage: https://github.com/aslatter/uuid +Bug-Reports: https://github.com/aslatter/uuid/issues + +Extra-Source-Files: + CHANGES + + +Library + Build-Depends: base >=3 && < 5, + binary >= 0.4 && < 0.9, + bytestring >= 0.9 && < 0.11, + deepseq >= 1.3 && < 1.5, + hashable (>= 1.1.1.0 && < 1.2.0) || (>= 1.2.1 && < 1.4), + random >= 1.0.1 && < 1.3, + text >= 1 && < 1.3 + + Exposed-Modules: + Data.UUID.Types + -- Exposed for companion projects; *NOT* part of the official API: + Data.UUID.Types.Internal.Builder + Data.UUID.Types.Internal + + Extensions: DeriveDataTypeable + Ghc-Options: -Wall + +source-repository head + type: git + location: https://github.com/aslatter/uuid.git + +Test-Suite testuuid + Type: exitcode-stdio-1.0 + Main-is: TestUUID.hs + Hs-source-dirs: tests + Extensions: DeriveDataTypeable + Ghc-Options: -Wall -fno-warn-orphans + Build-Depends: base >= 3 && < 5, + uuid-types, + bytestring >= 0.9 && < 0.11, + HUnit >=1.2 && < 1.7, + QuickCheck >=2.4 && < 2.15, + tasty >= 0.10 && < 1.4, + tasty-hunit == 0.9.* || ==0.10.*, + tasty-quickcheck == 0.8.* || ==0.10.* + +benchmark benchmark + Type: exitcode-stdio-1.0 + Main-is: BenchUUID.hs + Hs-source-dirs: tests + Extensions: DeriveDataTypeable, CPP + Ghc-Options: -Wall -fno-warn-orphans + Build-depends: base == 4.*, + uuid-types, + bytestring >= 0.9 && < 0.11, + containers >= 0.4 && < 0.7, + criterion >= 0.4 && < 1.6, + deepseq >= 1.1 && < 1.5, + random >= 1.0.1 && < 1.3