import (#1076737)
This commit is contained in:
parent
707776e693
commit
ef749aaedc
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
|||||||
|
/reflection-1.4.tar.gz
|
77
ghc-reflection.spec
Normal file
77
ghc-reflection.spec
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||||
|
|
||||||
|
%global pkg_name reflection
|
||||||
|
|
||||||
|
Name: ghc-%{pkg_name}
|
||||||
|
Version: 1.4
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Reifies arbitrary terms into types that can be reflected back into terms
|
||||||
|
|
||||||
|
License: BSD
|
||||||
|
URL: http://hackage.haskell.org/package/%{pkg_name}
|
||||||
|
Source0: http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: ghc-Cabal-devel
|
||||||
|
BuildRequires: ghc-rpm-macros
|
||||||
|
# Begin cabal-rpm deps:
|
||||||
|
BuildRequires: ghc-tagged-devel
|
||||||
|
BuildRequires: ghc-template-haskell-devel
|
||||||
|
ExclusiveArch: %{ghc_arches_with_ghci}
|
||||||
|
# End cabal-rpm deps
|
||||||
|
|
||||||
|
%description
|
||||||
|
This package provides an implementation of the ideas presented in the paper
|
||||||
|
"Functional Pearl: Implicit Configurations" by Oleg Kiselyov and Chung-chieh
|
||||||
|
Shan. However, the API has been streamlined to improve performance.
|
||||||
|
|
||||||
|
The original paper can be obtained from
|
||||||
|
<http://www.cs.rutgers.edu/~ccshan/prepose/prepose.pdf>.
|
||||||
|
|
||||||
|
For a summary of the approach taken by this library, along with more motivating
|
||||||
|
examples, see Austin Seipp's tutorial at
|
||||||
|
<https://www.fpcomplete.com/user/thoughtpolice/using-reflection>.
|
||||||
|
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Haskell %{pkg_name} library development files
|
||||||
|
Provides: %{name}-static = %{version}-%{release}
|
||||||
|
Requires: ghc-compiler = %{ghc_version}
|
||||||
|
Requires(post): ghc-compiler = %{ghc_version}
|
||||||
|
Requires(postun): ghc-compiler = %{ghc_version}
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package provides the Haskell %{pkg_name} library development files.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -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
|
||||||
|
%doc LICENSE
|
||||||
|
|
||||||
|
|
||||||
|
%files devel -f %{name}-devel.files
|
||||||
|
%doc examples README.markdown
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sat Mar 15 2014 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 1.4
|
||||||
|
- spec file generated by cabal-rpm-0.8.10
|
Loading…
Reference in New Issue
Block a user