rpms/alex/devel alex.spec,1.8,1.9

Jens Petersen petersen at fedoraproject.org
Tue Nov 25 04:10:20 UTC 2008


Author: petersen

Update of /cvs/pkgs/rpms/alex/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25041

Modified Files:
	alex.spec 
Log Message:
- build with new macros
- update urls to point to hackage




Index: alex.spec
===================================================================
RCS file: /cvs/pkgs/rpms/alex/devel/alex.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- alex.spec	15 Oct 2008 17:38:23 -0000	1.8
+++ alex.spec	25 Nov 2008 04:09:50 -0000	1.9
@@ -1,14 +1,17 @@
+# ghc does not emit debug information
+%define debug_package %{nil}
+
 Name:           alex
 Version:        2.3
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        The lexer generator for Haskell
 
 Group:          Development/Tools
 License:        BSD
-URL:            http://haskell.org/alex/
-Source:         http://haskell.org/alex/dist/%{version}/alex-%{version}.tar.gz
+URL:            http://hackage.haskell.org/cgi-bin/hackage-scripts/package/alex
+Source:         http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-ExcludeArch:    alpha ppc64
+ExclusiveArch:  i386 x86_64 ppc
 
 BuildRequires:  autoconf ghc docbook-style-xsl libxslt
 
@@ -23,17 +26,19 @@
 
 
 %build
-runhaskell Setup.lhs configure --prefix=%{_prefix} --libdir=%{_libdir}
-runhaskell Setup.lhs build
-cd doc
+%cabal_configure
+%cabal_build
+
+pushd doc
 autoreconf
 ./configure --prefix=%{_prefix} --libdir=%{_libdir}
 make html
+popd
 
 
 %install
 rm -rf ${RPM_BUILD_ROOT}
-runhaskell Setup.lhs copy --destdir=${RPM_BUILD_ROOT}
+%cabal_install
 
 
 %clean
@@ -48,6 +53,10 @@
 
 
 %changelog
+* Tue Nov 25 2008 Jens Petersen <petersen at redhat.com> - 2.3-2
+- build with new macros
+- update urls to point to hackage
+
 * Mon Oct 13 2008 Bryan O'Sullivan <bos at serpentine.com> - 2.3-1
 - Update to 2.3
 




More information about the fedora-extras-commits mailing list