From ef749aaedcfb697af3b523df48add9d92e2c11f9 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 23 Apr 2014 12:32:39 +0900 Subject: [PATCH] import (#1076737) --- .gitignore | 1 + ghc-reflection.spec | 77 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 79 insertions(+) create mode 100644 ghc-reflection.spec diff --git a/.gitignore b/.gitignore index e69de29..9aee624 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/reflection-1.4.tar.gz diff --git a/ghc-reflection.spec b/ghc-reflection.spec new file mode 100644 index 0000000..dfd0967 --- /dev/null +++ b/ghc-reflection.spec @@ -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 +. + +For a summary of the approach taken by this library, along with more motivating +examples, see Austin Seipp's tutorial at +. + + +%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 - 1.4 +- spec file generated by cabal-rpm-0.8.10 diff --git a/sources b/sources index e69de29..42dc2ed 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8b469c50d1097addbc8451ad191555c1 reflection-1.4.tar.gz