From a69245614e4d69d3a708954cce37e9cb074bc3fd Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 30 Oct 2023 02:48:09 +0000 Subject: automatic import of ghc-Glob --- .gitignore | 1 + Glob.cabal | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ ghc-Glob.spec | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 204 insertions(+) create mode 100644 Glob.cabal create mode 100644 ghc-Glob.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..7b12e13 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Glob-0.10.2.tar.gz diff --git a/Glob.cabal b/Glob.cabal new file mode 100644 index 0000000..5b25736 --- /dev/null +++ b/Glob.cabal @@ -0,0 +1,98 @@ +Cabal-Version: >= 1.10 + +Name: Glob +Version: 0.10.2 +x-revision: 3 +Homepage: http://iki.fi/matti.niemenmaa/glob/ +Synopsis: Globbing library +Category: System +Stability: provisional +Description: + A library for globbing: matching patterns against file paths. + +Author: Matti Niemenmaa +Maintainer: Matti Niemenmaa +License: BSD3 +License-File: LICENSE.txt + +Build-Type: Simple + +Extra-Source-Files: CHANGELOG.txt + CREDITS.txt + README.txt + +Source-Repository head + Type: git + Location: https://github.com/Deewiant/glob + +Library + Build-Depends: base >= 4 && < 5 + , containers + , directory + , dlist >= 0.4 + , filepath >= 1.1 + , transformers >= 0.2 + , transformers-compat >= 0.3 + + if impl(ghc < 8.0) + Build-Depends: semigroups >= 0.18 + + if os(windows) + Build-Depends: Win32 >= 2.5 + + Default-Language: Haskell98 + + Exposed-Modules: System.FilePath.Glob + System.FilePath.Glob.Primitive + Other-Modules: System.FilePath.Glob.Base + System.FilePath.Glob.Directory + System.FilePath.Glob.Match + System.FilePath.Glob.Simplify + System.FilePath.Glob.Utils + + GHC-Options: -Wall + +Test-Suite glob-tests + type: exitcode-stdio-1.0 + + hs-source-dirs: ., tests + main-is: Main.hs + + Build-Depends: base >= 4 && < 5 + , containers + , directory + , dlist >= 0.4 + , filepath >= 1.1 + , transformers >= 0.2 + , transformers-compat >= 0.3 + , HUnit >= 1.2 + , QuickCheck >= 2 + , test-framework >= 0.2 + , test-framework-hunit >= 0.2 + , test-framework-quickcheck2 >= 0.3 + + if impl(ghc < 8.0) + Build-Depends: semigroups >= 0.18 + + if os(windows) + Build-Depends: Win32 >= 2 + + Default-Language: Haskell98 + + Other-Modules: System.FilePath.Glob.Base + System.FilePath.Glob.Directory + System.FilePath.Glob.Match + System.FilePath.Glob.Primitive + System.FilePath.Glob.Simplify + System.FilePath.Glob.Utils + Tests.Base + Tests.Compiler + Tests.Directory + Tests.Instances + Tests.Matcher + Tests.Optimizer + Tests.Regression + Tests.Simplifier + Tests.Utils + + GHC-Options: -Wall \ No newline at end of file diff --git a/ghc-Glob.spec b/ghc-Glob.spec new file mode 100644 index 0000000..8b50220 --- /dev/null +++ b/ghc-Glob.spec @@ -0,0 +1,104 @@ +%global pkg_name Glob +%global pkgver %{pkg_name}-%{version} +%bcond_with tests + +Name: ghc-%{pkg_name} +Version: 0.10.2 +Release: 1 +Summary: Globbing 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/3.cabal#/%{pkg_name}.cabal +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-containers-devel +BuildRequires: ghc-containers-prof +BuildRequires: ghc-directory-devel +BuildRequires: ghc-directory-prof +BuildRequires: ghc-dlist-devel +BuildRequires: ghc-dlist-prof +BuildRequires: ghc-filepath-devel +BuildRequires: ghc-filepath-prof +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-transformers-compat-devel +BuildRequires: ghc-transformers-compat-prof +BuildRequires: ghc-transformers-devel +BuildRequires: ghc-transformers-prof +ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-HUnit-prof +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-QuickCheck-prof +BuildRequires: ghc-test-framework-devel +BuildRequires: ghc-test-framework-hunit-devel +BuildRequires: ghc-test-framework-hunit-prof +BuildRequires: ghc-test-framework-prof +BuildRequires: ghc-test-framework-quickcheck2-devel +BuildRequires: ghc-test-framework-quickcheck2-prof +%endif + +%description +A library for globbing: matching patterns against file paths. + +%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 +chmod -x *.txt # https://github.com/Deewiant/glob/issues/31 + +%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.txt + +%files devel -f %{name}-devel.files +%doc CHANGELOG.txt README.txt + +%files -n ghc-%{pkg_name}-help -f ghc-%{pkg_name}-help.files +%license LICENSE.txt + +%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files + +%changelog +* Tue Aug 22 2023 Lin Runze 0.10.2-1 +- Initial packaging (Version 0.10.2) diff --git a/sources b/sources new file mode 100644 index 0000000..cd789a5 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +617e9bdf8d5094387af1077078165843 Glob-0.10.2.tar.gz -- cgit v1.2.3