2008-11-12 06:35:56 +00:00
|
|
|
# ghc does not emit debug info
|
|
|
|
%define debug_package %{nil}
|
|
|
|
|
2007-04-18 04:56:12 +00:00
|
|
|
Name: happy
|
2009-05-17 01:17:43 +00:00
|
|
|
# part of haskell-platform
|
2009-04-25 09:10:14 +00:00
|
|
|
Version: 1.18.4
|
2009-07-25 02:01:31 +00:00
|
|
|
Release: 3%{?dist}
|
2007-08-16 07:23:09 +00:00
|
|
|
License: BSD
|
2007-04-18 04:56:12 +00:00
|
|
|
Group: Development/Tools
|
|
|
|
URL: http://haskell.org/happy/
|
2008-11-12 06:35:56 +00:00
|
|
|
Source: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
|
2007-04-18 04:56:12 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2009-05-17 01:17:43 +00:00
|
|
|
BuildRequires: ghc, ghc-rpm-macros
|
|
|
|
BuildRequires: autoconf, docbook-dtds, docbook-style-xsl, libxslt, libxml2
|
|
|
|
Summary: LALR(1) Parser Generator for Haskell
|
2009-04-25 09:10:14 +00:00
|
|
|
# fedora ghc archs:
|
2009-02-26 09:46:22 +00:00
|
|
|
ExclusiveArch: %{ix86} x86_64 ppc alpha
|
2008-10-14 01:05:38 +00:00
|
|
|
Requires(post): policycoreutils
|
2007-04-18 04:56:12 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Happy is a parser generator system for Haskell, similar to the tool
|
|
|
|
`yacc' for C. Like `yacc', it takes a file containing an annotated BNF
|
|
|
|
specification of a grammar and produces a Haskell module containing a
|
|
|
|
parser for the grammar.
|
|
|
|
|
|
|
|
Happy is flexible: you can have several Happy parsers in the same
|
|
|
|
program, and several entry points to a single grammar. Happy can work
|
|
|
|
in conjunction with a lexical analyser supplied by the user (either
|
|
|
|
hand-written or generated by another program).
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2008-11-12 06:35:56 +00:00
|
|
|
%cabal_configure --ghc
|
2009-02-23 12:43:49 +00:00
|
|
|
%cabal build
|
2007-04-18 04:56:12 +00:00
|
|
|
|
|
|
|
pushd doc
|
|
|
|
autoreconf
|
2008-11-12 06:35:56 +00:00
|
|
|
%configure
|
2007-04-18 04:56:12 +00:00
|
|
|
make html
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
2009-04-25 09:10:14 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2008-11-12 06:35:56 +00:00
|
|
|
%cabal_install
|
2007-04-18 04:56:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
%clean
|
2009-04-25 09:10:14 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2007-04-18 04:56:12 +00:00
|
|
|
|
|
|
|
|
2008-10-14 01:05:38 +00:00
|
|
|
%post
|
|
|
|
semanage fcontext -a -t unconfined_execmem_exec_t %{_bindir}/%{name} >/dev/null 2>&1 || :
|
|
|
|
restorecon %{_bindir}/%{name}
|
|
|
|
|
|
|
|
|
2007-04-18 04:56:12 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc ANNOUNCE CHANGES LICENSE README TODO doc/happy
|
|
|
|
%{_bindir}/happy
|
|
|
|
%{_datadir}/happy-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2009-07-25 02:01:31 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.18.4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-05-17 01:17:43 +00:00
|
|
|
* Sun May 17 2009 Jens Petersen <petersen@redhat.com> - 1.18.4-2
|
|
|
|
- buildrequires ghc-rpm-macros
|
|
|
|
|
2009-04-25 09:10:14 +00:00
|
|
|
* Sat Apr 25 2009 Jens Petersen <petersen@redhat.com> - 1.18.4-1
|
|
|
|
- 1.18.4 release
|
|
|
|
|
2009-02-25 07:19:37 +00:00
|
|
|
* Wed Feb 25 2009 Jens Petersen <petersen@redhat.com> - 1.18.2-3
|
|
|
|
- rebuild with %%ix86 for i586
|
|
|
|
|
2009-02-23 12:43:49 +00:00
|
|
|
* Mon Feb 23 2009 Jens Petersen <petersen@redhat.com> - 1.18.2-2
|
|
|
|
- cabal build replaces cabal_build
|
|
|
|
|
2008-11-12 06:35:56 +00:00
|
|
|
* Wed Nov 12 2008 Jens Petersen <petersen@redhat.com> - 1.18.2-1
|
|
|
|
- update to 1.18.2 release from hackage
|
|
|
|
- update to new packaging macros
|
|
|
|
- turn off debuginfo
|
|
|
|
|
2008-10-14 01:05:38 +00:00
|
|
|
* Tue Oct 14 2008 Jens Petersen <petersen@redhat.com> - 1.17-3
|
|
|
|
- add selinux unconfined_execmem_exec_t file context
|
|
|
|
|
2008-02-18 21:25:44 +00:00
|
|
|
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.17-2
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2008-01-04 08:43:30 +00:00
|
|
|
* Fri Jan 4 2008 Jens Petersen <petersen@redhat.com> - 1.17-1
|
|
|
|
- update to 1.17 release
|
|
|
|
|
2007-11-23 18:13:56 +00:00
|
|
|
* Fri Nov 23 2007 Bryan O'Sullivan <bos@serpentine.com> - 1.16-3
|
|
|
|
- Exclude alpha and ppc64
|
|
|
|
|
2007-08-16 07:23:09 +00:00
|
|
|
* Thu Aug 16 2007 Jens Petersen <petersen@redhat.com>
|
|
|
|
- update License field
|
|
|
|
|
2007-04-18 04:56:12 +00:00
|
|
|
* Sun Mar 25 2007 Bryan O'Sullivan <bos@serpentine.com> - 1.16-2
|
|
|
|
- fix a few style issues pointed out by Jens
|
|
|
|
|
|
|
|
* Fri Jan 19 2007 Bryan O'Sullivan <bos@serpentine.com> - 1.16-1
|
|
|
|
- update to 1.16
|
|
|
|
- fix rpmlint warnings
|
|
|
|
|
|
|
|
* Fri Jan 21 2005 Jens Petersen <petersen@haskell.org> - 1.15-2
|
|
|
|
- initial packaging based on spec file from tarball
|
|
|
|
- setup libdir for x86_64
|