diff --git a/README.en.md b/README.en.md index dc65b146e3ea33c0fc56ea40b52e17b782d0d6d7..d779b12181976342609e60281d15177868256bad 100644 --- a/README.en.md +++ b/README.en.md @@ -2,35 +2,3 @@ #### Description Filterable traversable - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md index 819a4adcf365551999a7a25b588d7573d8dff6a6..02fe8cff5cf485536a62513cc54db1045036684d 100644 --- a/README.md +++ b/README.md @@ -2,36 +2,3 @@ #### 介绍 Filterable traversable - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/ghc-witherable.spec b/ghc-witherable.spec new file mode 100644 index 0000000000000000000000000000000000000000..d4f1ad30ebe9eba938a205b470e32854c31b4d86 --- /dev/null +++ b/ghc-witherable.spec @@ -0,0 +1,106 @@ +%global pkg_name witherable +%global pkgver %{pkg_name}-%{version} +%bcond_with tests + +Name: ghc-%{pkg_name} +Version: 0.4.2 +Release: 1 +Summary: Filterable traversable +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-orphans-devel +BuildRequires: ghc-base-orphans-prof +BuildRequires: ghc-base-prof +BuildRequires: ghc-containers-devel +BuildRequires: ghc-containers-prof +BuildRequires: ghc-hashable-devel +BuildRequires: ghc-hashable-prof +BuildRequires: ghc-indexed-traversable-devel +BuildRequires: ghc-indexed-traversable-instances-devel +BuildRequires: ghc-indexed-traversable-instances-prof +BuildRequires: ghc-indexed-traversable-prof +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-transformers-devel +BuildRequires: ghc-transformers-prof +BuildRequires: ghc-unordered-containers-devel +BuildRequires: ghc-unordered-containers-prof +BuildRequires: ghc-vector-devel +BuildRequires: ghc-vector-prof +ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-QuickCheck-prof +BuildRequires: ghc-quickcheck-instances-devel +BuildRequires: ghc-quickcheck-instances-prof +BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-prof +BuildRequires: ghc-tasty-quickcheck-devel +BuildRequires: ghc-tasty-quickcheck-prof +%endif + +%description +A stronger variant of `traverse` which can remove elements and generalised +mapMaybe, catMaybes, filter. + +%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 +* Thu Sep 28 2023 Lin Runze 0.4.2-1 +- Initial packaging (Version 0.4.2) diff --git a/witherable-0.4.2.tar.gz b/witherable-0.4.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..307e5d20a8bf416a692256b4ee5f4d505634c263 Binary files /dev/null and b/witherable-0.4.2.tar.gz differ diff --git a/witherable.cabal b/witherable.cabal new file mode 100644 index 0000000000000000000000000000000000000000..7ab90ed3550377f3b2aa97b38cec3c6adb99942e --- /dev/null +++ b/witherable.cabal @@ -0,0 +1,56 @@ +cabal-version: 2.4 +name: witherable +version: 0.4.2 +x-revision: 4 +synopsis: filterable traversable +description: A stronger variant of `traverse` which can remove elements and generalised mapMaybe, catMaybes, filter +homepage: https://github.com/fumieval/witherable +license: BSD-3-Clause +license-file: LICENSE +author: Fumiaki Kinoshita +maintainer: Fumiaki Kinoshita +copyright: Copyright (c) 2014 Fumiaki Kinoshita +category: Data +build-type: Simple +extra-source-files: CHANGELOG.md +tested-with: GHC ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.0.1 || ==9.2.1 + +source-repository head + type: git + location: https://github.com/fumieval/witherable.git + subdir: witherable + +library + exposed-modules: + Witherable + Data.Witherable + build-depends: base >=4.9 && <5, + base-orphans >=0.8.4 && <0.10, + containers >=0.5.7.1 && <0.7, + hashable >=1.2.7.0 && <1.5, + transformers >=0.5.2.0 && <0.7, + unordered-containers >=0.2.12.0 && <0.3, + vector >=0.12.2.0 && <0.14, + indexed-traversable >=0.1.1 && <0.2, + indexed-traversable-instances >=0.1 && <0.2 + hs-source-dirs: src + ghc-options: -Wall -Wcompat + default-language: Haskell2010 + +test-suite witherable-tests + type: exitcode-stdio-1.0 + main-is: tests.hs + hs-source-dirs: tests + ghc-options: -Wall -Wcompat + default-language: Haskell2010 + build-depends: base, + witherable, + containers, + hashable, + QuickCheck >=2.14.2, + quickcheck-instances, + tasty, + tasty-quickcheck, + transformers, + unordered-containers, + vector