diff --git a/.gitignore b/.gitignore index e69de29..00db855 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,3 @@ +/unlambda-0.1.tar.gz +/unlambda-0.1.2.tar.gz +/unlambda-0.1.3.tar.gz diff --git a/sources b/sources index e69de29..95855cf 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +314f0c610d0b71635b453e649d47d73f unlambda-0.1.3.tar.gz diff --git a/unlambda-0.1.2-FSF-license-fix.patch b/unlambda-0.1.2-FSF-license-fix.patch new file mode 100644 index 0000000..23a37ec --- /dev/null +++ b/unlambda-0.1.2-FSF-license-fix.patch @@ -0,0 +1,33 @@ +diff -up unlambda-0.1.2/Language/Unlambda.hs.fix unlambda-0.1.2/Language/Unlambda.hs +--- unlambda-0.1.2/Language/Unlambda.hs.fix 2012-10-26 16:20:40.397173788 +0530 ++++ unlambda-0.1.2/Language/Unlambda.hs 2012-10-26 16:23:15.926170223 +0530 +@@ -19,7 +19,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 +diff -up unlambda-0.1.2/LICENSE.fix unlambda-0.1.2/LICENSE +--- unlambda-0.1.2/LICENSE.fix 2012-10-26 16:20:35.517174668 +0530 ++++ unlambda-0.1.2/LICENSE 2012-10-26 16:22:44.604170767 +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..9235192 --- /dev/null +++ b/unlambda.spec @@ -0,0 +1,81 @@ +# https://fedoraproject.org/wiki/Packaging:Haskell +# https://fedoraproject.org/wiki/PackagingDrafts/Haskell + +%global pkg_name unlambda + +%global common_summary Unlambda interpreter + +%global common_description This is an interpreter of the Unlambda language,\ +written in the pure, lazy, functional language Haskell. + +Name: %{pkg_name} +Version: 0.1.3 +Release: 1%{?dist} +Summary: %{common_summary} + +License: GPL+ +URL: http://hackage.haskell.org/package/%{name} +Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz +Patch0: unlambda-0.1.2-FSF-license-fix.patch + +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-rpm-macros +# Begin cabal-rpm deps: +BuildRequires: ghc-array-devel +BuildRequires: ghc-mtl-devel +BuildRequires: ghc-unix-devel +# End cabal-rpm deps + +%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 + +%ghc_package + +%ghc_description + + +%ghc_devel_package + +%ghc_devel_description + + +%ghc_devel_post_postun + + +%files +%doc LICENSE +%{_bindir}/%{name} + + +%ghc_files LICENSE + + +%changelog +* Fri Dec 7 2012 Shakthi Kannan - 0.1.3-1 +- spec file generated by cabal-rpm-0.6.5 + +* Fri Oct 26 2012 Shakthi Kannan - 0.1.2-1 +- Updated to new upstream release 0.1.2 + +* Sun Jul 22 2012 Fedora Release Engineering - 0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue Jun 19 2012 Shakthi Kannan - 0.1-2 +- Added patch to fix FSF address. + +* Fri Jun 08 2012 Shakthi Kannan - 0.1-1 +- Added iconv to convert Unlambda.hs to utf-8. +- Added BRs. +- Spec file template generated by cabal2spec-0.25.5