[unlambda] First release.

Shakthi Kannan shakthimaan at fedoraproject.org
Fri Jun 22 05:48:52 UTC 2012


commit 2dedd70f1f44cba198a3f1c7fb908a05d6841972
Author: Shakthi Kannan <skannan at redhat.com>
Date:   Fri Jun 22 11:12:50 2012 +0530

    First release.

 .gitignore                         |    1 +
 sources                            |    1 +
 unlambda-0.1-FSF-license-fix.patch |   40 ++++++++++++++++++++
 unlambda.spec                      |   71 ++++++++++++++++++++++++++++++++++++
 4 files changed, 113 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..58f42b0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/unlambda-0.1.tar.gz
diff --git a/sources b/sources
index e69de29..3532869 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2d31c90b3888043b8de77bb87f88bfcb  unlambda-0.1.tar.gz
diff --git a/unlambda-0.1-FSF-license-fix.patch b/unlambda-0.1-FSF-license-fix.patch
new file mode 100644
index 0000000..4754b06
--- /dev/null
+++ b/unlambda-0.1-FSF-license-fix.patch
@@ -0,0 +1,40 @@
+diff -up unlambda-0.1/Language/Unlambda.hs.fix unlambda-0.1/Language/Unlambda.hs
+--- unlambda-0.1/Language/Unlambda.hs.fix	2012-06-19 15:47:29.388841138 +0530
++++ unlambda-0.1/Language/Unlambda.hs	2012-06-19 15:48:26.298842436 +0530
+@@ -21,7 +21,7 @@ GNU General Public License for more deta
+ 
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
++Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ -}
+ 
+ module Language.Unlambda where
+@@ -141,4 +141,4 @@ apply (Ques c) f = do
+ apply Pipe f = do
+   cur <- currentChar
+   apply f (case cur of Nothing -> V ; Just c  -> (Dot c))
+-apply (App _ _) _ = error "Unknown application"
+\ No newline at end of file
++apply (App _ _) _ = error "Unknown application"
+diff -up unlambda-0.1/LICENSE.fix unlambda-0.1/LICENSE
+--- unlambda-0.1/LICENSE.fix	2012-06-19 15:47:24.290841020 +0530
++++ unlambda-0.1/LICENSE	2012-06-19 15:49:41.795844157 +0530
+@@ -2,7 +2,7 @@
+ 		       Version 2, June 1991
+ 
+  Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+-     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
++     51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+  Everyone is permitted to copy and distribute verbatim copies
+  of this license document, but changing it is not allowed.
+ 
+@@ -305,7 +305,7 @@ the "copyright" line and a pointer to wh
+ 
+     You should have received a copy of the GNU General Public License
+     along with this program; if not, write to the Free Software
+-    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
++    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ 
+ 
+ Also add information on how to contact you by electronic and paper mail.
diff --git a/unlambda.spec b/unlambda.spec
new file mode 100644
index 0000000..02f7798
--- /dev/null
+++ b/unlambda.spec
@@ -0,0 +1,71 @@
+# cabal2spec-0.25
+# https://fedoraproject.org/wiki/Packaging:Haskell
+# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
+
+%global pkg_name unlambda
+
+%global common_summary An interpreter of the Unlambda language
+
+%global common_description An interpreter of the Unlambda language,\
+ written in the pure, lazy, functional language Haskell.
+
+Name:           %{pkg_name}
+Version:        0.1
+Release:        2%{?dist}
+Summary:        Haskell interpreter of the Unlambda language
+
+Group:          Development/Tools
+License:        GPLv2
+# BEGIN cabal2spec
+URL:            http://hackage.haskell.org/package/%{name}
+Source0:        http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
+Patch0:         unlambda-0.1-FSF-license-fix.patch
+ExclusiveArch:  %{ghc_arches}
+BuildRequires:  ghc-Cabal-devel
+BuildRequires:  ghc-rpm-macros %{!?without_hscolour:hscolour}
+# END cabal2spec
+
+BuildRequires:  ghc-array-devel
+BuildRequires:  ghc-mtl-devel
+BuildRequires:  ghc-unix-devel
+
+%description
+%{common_description}
+
+%prep
+%setup -q
+%patch0 -p1
+iconv -f iso8859-1 -t utf-8 Language/Unlambda.hs > Language/Unlambda.conv && mv -f Language/Unlambda.conv Language/Unlambda.hs
+
+%build
+%ghc_lib_build
+
+%install
+%ghc_lib_install
+
+# library subpackage
+%ghc_package
+
+%ghc_description
+
+# devel subpackage
+%ghc_devel_package
+
+%ghc_devel_description
+
+%ghc_devel_post_postun
+
+%files
+%doc LICENSE
+%attr(755,root,root) %{_bindir}/%{name}
+
+%ghc_files LICENSE
+
+%changelog
+* Tue Jun 19 2012 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> - 0.1-2
+- Added patch to fix FSF address.
+
+* Fri Jun 08 2012 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> - 0.1-1
+- Added iconv to convert Unlambda.hs to utf-8.
+- Added BRs.
+- Spec file template generated by cabal2spec-0.25.5


More information about the scm-commits mailing list