From a68e8e3304f2d3a97be305a3e45adcb7e43868b6 Mon Sep 17 00:00:00 2001 From: Shakthi Kannan Date: Fri, 7 Sep 2012 19:55:13 +0530 Subject: [PATCH] First release --- .gitignore | 1 + brainfuck-0.1-fix-fsf-address.patch | 31 +++++++++++++ brainfuck.spec | 71 +++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 104 insertions(+) create mode 100644 brainfuck-0.1-fix-fsf-address.patch create mode 100644 brainfuck.spec diff --git a/.gitignore b/.gitignore index e69de29..146f0be 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/brainfuck-0.1.tar.gz diff --git a/brainfuck-0.1-fix-fsf-address.patch b/brainfuck-0.1-fix-fsf-address.patch new file mode 100644 index 0000000..d1386d7 --- /dev/null +++ b/brainfuck-0.1-fix-fsf-address.patch @@ -0,0 +1,31 @@ +diff -up brainfuck-0.1/Language/Brainfuck.hs.fix brainfuck-0.1/Language/Brainfuck.hs +--- brainfuck-0.1/Language/Brainfuck.hs.fix 2012-09-07 19:26:14.069354858 +0530 ++++ brainfuck-0.1/Language/Brainfuck.hs 2012-09-07 19:26:48.221355543 +0530 +@@ -17,7 +17,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-1307 USA -} + + module Language.Brainfuck where + +@@ -287,4 +287,4 @@ execute cmds n bf@(BF _ _ ip) = do + + halt = if debug + then putStrLn "Machine Halted.\n" +- else putStrLn "\n" +\ No newline at end of file ++ else putStrLn "\n" +diff -up brainfuck-0.1/LICENSE.fix brainfuck-0.1/LICENSE +--- brainfuck-0.1/LICENSE.fix 2012-09-07 19:25:12.045353441 +0530 ++++ brainfuck-0.1/LICENSE 2012-09-07 19:27:39.233356800 +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. + diff --git a/brainfuck.spec b/brainfuck.spec new file mode 100644 index 0000000..ba04771 --- /dev/null +++ b/brainfuck.spec @@ -0,0 +1,71 @@ +# cabal2spec-0.25 +# https://fedoraproject.org/wiki/Packaging:Haskell +# https://fedoraproject.org/wiki/PackagingDrafts/Haskell + +%global pkg_name brainfuck + +%global common_summary Haskell %{pkg_name} library + +%global common_description A %{pkg_name} library for Haskell. + +Name: %{pkg_name} +Version: 0.1 +Release: 3%{?dist} +Summary: Haskell %{pkg_name} + +Group: System Environment/Libraries +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: brainfuck-0.1-fix-fsf-address.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 + +%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}/bf + +%ghc_files LICENSE + +%changelog +* Fri Sep 07 2012 Shakthi Kannan - 0.1-3 +- Added patch to fix FSF address + +* Tue Jun 05 2012 Shakthi Kannan - 0.1-2 +- Updated license to GPLv2. + +* Tue Jun 05 2012 Shakthi Kannan - 0.1-1 +- Added BuildRequires. +- Spec file template generated by cabal2spec-0.25.5. diff --git a/sources b/sources index e69de29..c43e074 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e6f181153c0dbe6186fb7cb8d27c876c brainfuck-0.1.tar.gz