First release

This commit is contained in:
Shakthi Kannan 2012-09-07 19:55:13 +05:30
parent 2e5ca41321
commit a68e8e3304
4 changed files with 104 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/brainfuck-0.1.tar.gz

View File

@ -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.

71
brainfuck.spec Normal file
View File

@ -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 <shakthimaan [AT] fedoraproject dot org> - 0.1-3
- Added patch to fix FSF address
* Tue Jun 05 2012 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> - 0.1-2
- Updated license to GPLv2.
* Tue Jun 05 2012 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> - 0.1-1
- Added BuildRequires.
- Spec file template generated by cabal2spec-0.25.5.

View File

@ -0,0 +1 @@
e6f181153c0dbe6186fb7cb8d27c876c brainfuck-0.1.tar.gz