diff -u happy.spec-1 happy.spec --- happy.spec-1 2007-02-16 17:49:33.000000000 +1000 +++ happy.spec 2007-02-16 17:49:33.000000000 +1000 @@ -6,8 +6,7 @@ URL: http://haskell.org/happy/ Source: http://haskell.org/happy/dist/%{version}/happy-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Prefix: %{_prefix} -BuildRequires: ghc, docbook-dtds, docbook-style-xsl, dos2unix, libxslt, libxml2 +BuildRequires: ghc, docbook-dtds, docbook-style-xsl, libxslt, libxml2 Summary: The LALR(1) Parser Generator for Haskell %description @@ -23,38 +22,35 @@ stream of characters directly (but this isn't practical in most cases). + %prep %setup -q + %build runhaskell Setup.lhs configure --prefix=%{_prefix} --libdir=%{_libdir} runhaskell Setup.lhs build -find examples/glr -type f -print0 | xargs -0r dos2unix cd doc -test -f configure || autoreconf ./configure --prefix=%{_prefix} --libdir=%{_libdir} make html + %install rm -rf ${RPM_BUILD_ROOT} - runhaskell Setup.lhs copy --destdir=${RPM_BUILD_ROOT} + %clean rm -rf ${RPM_BUILD_ROOT} + %files %defattr(-,root,root) -%doc ANNOUNCE -%doc CHANGES -%doc LICENSE -%doc README -%doc TODO -%doc doc/happy -%doc examples +%doc ANNOUNCE CHANGES LICENSE README TODO doc/happy examples %{_bindir}/happy %{_datadir}/happy-%{version} + %changelog * Fri Jan 19 2007 Bryan O'Sullivan - 1.16-1 - update to 1.16