[ghc-sized-types/f16] First release.

Shakthi Kannan shakthimaan at fedoraproject.org
Tue Jun 5 04:36:54 UTC 2012


commit feab7087c996afe60b78a988cfafd789dfc5ff1a
Author: Shakthi Kannan <skannan at redhat.com>
Date:   Tue Jun 5 10:01:04 2012 +0530

    First release.

 .gitignore                              |    1 +
 ghc-sized-types.spec                    |   62 +++++++++++++++++++++++++++++++
 sized-types-0.3.4.0-f18-build-fix.patch |   20 ++++++++++
 sources                                 |    1 +
 4 files changed, 84 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a40bae5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/sized-types-0.3.4.0.tar.gz
diff --git a/ghc-sized-types.spec b/ghc-sized-types.spec
new file mode 100644
index 0000000..bb2a302
--- /dev/null
+++ b/ghc-sized-types.spec
@@ -0,0 +1,62 @@
+# cabal2spec-0.25
+# https://fedoraproject.org/wiki/Packaging:Haskell
+# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
+
+%global pkg_name sized-types
+
+%global common_summary Haskell %{pkg_name} library
+
+%global common_description A %{pkg_name} library for Haskell.
+
+Name:           ghc-%{pkg_name}
+Version:        0.3.4.0
+Release:        1%{?dist}
+Summary:        %{common_summary}
+
+Group:          System Environment/Libraries
+License:        BSD
+# BEGIN cabal2spec
+URL:            http://hackage.haskell.org/package/%{pkg_name}
+Source0:        http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
+Patch0:         sized-types-0.3.4.0-f18-build-fix.patch
+ExclusiveArch:  %{ghc_arches}
+BuildRequires:  ghc-Cabal-devel
+BuildRequires:  ghc-rpm-macros %{!?without_hscolour:hscolour}
+# END cabal2spec
+
+BuildRequires:  ghc-array-devel
+BuildRequires:  ghc-containers-devel
+
+%description
+%{common_description}
+
+
+%prep
+%setup -q -n %{pkg_name}-%{version}
+%patch0 -p1 -b .fix
+
+
+%build
+%ghc_lib_build
+
+
+%install
+%ghc_lib_install
+
+
+# devel subpackage
+%ghc_devel_package
+
+%ghc_devel_description
+
+
+%ghc_devel_post_postun
+
+
+%ghc_files LICENSE
+%doc test
+
+%changelog
+* Sat Jun 02 2012 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> - 0.3.4.0-1
+- Added fix to build for ghc-7.4.1.
+- Spec file template generated by cabal2spec-0.25.5.
diff --git a/sized-types-0.3.4.0-f18-build-fix.patch b/sized-types-0.3.4.0-f18-build-fix.patch
new file mode 100644
index 0000000..551ce00
--- /dev/null
+++ b/sized-types-0.3.4.0-f18-build-fix.patch
@@ -0,0 +1,20 @@
+diff -up sized-types-0.3.4.0/Data/Sized/Sparse/Matrix.hs.fix sized-types-0.3.4.0/Data/Sized/Sparse/Matrix.hs
+--- sized-types-0.3.4.0/Data/Sized/Sparse/Matrix.hs.fix	2012-06-02 15:00:30.688853704 +0530
++++ sized-types-0.3.4.0/Data/Sized/Sparse/Matrix.hs	2012-06-02 15:03:05.782857244 +0530
+@@ -47,7 +47,7 @@ prune d sm@(Matrix d' m) | d == d'   = M
+ sparse :: (Size ix, Eq a) => a -> M.Matrix ix a -> Matrix ix a
+ sparse d other = Matrix d (Map.fromList [ (i,v) | (i,v) <- M.assocs other, v /= d ])
+ 
+-mm :: (Size m, Size n, Size m', Size n', n ~ m', Num a) => Matrix (m,n) a -> Matrix (m',n') a -> Matrix (m,n') a
++mm :: (Size m, Size n, Size m', Size n', n ~ m', Num a, Eq a) => Matrix (m,n) a -> Matrix (m',n') a -> Matrix (m,n') a
+ mm s1 s2 = Matrix 0 mp
+   where
+ 	mp = Map.fromList [ ((x,y),v)
+@@ -91,5 +91,4 @@ transpose (Matrix d m) = Matrix d (Map.f
+ 
+ zipWith :: (Size x) => (a -> b -> c) -> Matrix x a -> Matrix x b -> Matrix x c
+ zipWith f m1 m2 = pure f <*> m1 <*> m2 
+-	
+-	
+\ No newline at end of file
++
diff --git a/sources b/sources
index e69de29..a6ccaa4 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1382024ded58a78cf0f82e75f85ba70c  sized-types-0.3.4.0.tar.gz


More information about the scm-commits mailing list