1 Star 0 Fork 0

gaiwangx/ghc-transformers-compat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ghc-transformers-compat.spec 2.48 KB
一键复制 编辑 原始数据 按行查看 历史
gaiwangx 提交于 2024-12-10 11:27 . Initial Package ghc-transformers-compat
%global pkg_name transformers-compat
%global pkgver %{pkg_name}-%{version}
Name: ghc-%{pkg_name}
Version: 0.7.2
Release: 1
Summary: A small compatibility shim for the transformers 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
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-base-devel
BuildRequires: ghc-base-prof
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-transformers-devel
BuildRequires: ghc-transformers-prof
ExcludeArch: %{ix86}
%description
This package includes backported versions of types that were added to
transformers in transformers 0.3, 0.4, and 0.5 for users who need strict
transformers 0.2 or 0.3 compatibility to run on old versions of the platform,
but also need those types.
Those users should be able to just depend on 'transformers >= 0.2' and
'transformers-compat >= 0.3'.
Note: missing methods are not supplied, but this at least permits the types to
be used.
%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}-doc
Summary: Haskell %{pkg_name} library documentation
Requires: ghc-filesystem
BuildArch: noarch
%description -n ghc-%{pkg_name}-doc
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}
%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.markdown README.markdown
%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
%license LICENSE
%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
%changelog
* Mon Dec 09 2024 Gai Wang <wanggai@kylinos.cn> - 0.7.2-1
- Initial Package ghc-transformers-compat.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Haskell
1
https://gitee.com/gaiwangx/ghc-transformers-compat.git
git@gitee.com:gaiwangx/ghc-transformers-compat.git
gaiwangx
ghc-transformers-compat
ghc-transformers-compat
master

搜索帮助