]> git.pld-linux.org Git - packages/alex.git/blobdiff - alex.spec
- disable debug packages, release 2
[packages/alex.git] / alex.spec
index f0ca0a0fddda7a138c7ab7f8e72819b9bce49e73..8e18953e0752739441e8d72870c273d69bbd09dd 100644 (file)
--- a/alex.spec
+++ b/alex.spec
@@ -5,14 +5,15 @@
 Summary:       A lexical analyser generator for Haskell
 Summary(pl.UTF-8):     Generator analizatorów składniowych dla Haskella
 Name:          alex
-Version:       2.1.0
+Version:       3.2.5
 Release:       2
 License:       BSD-like w/o adv. clause
 Group:         Development/Tools
-Source0:       http://haskell.org/alex/dist/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 17e80d39cc3f1aba28dcea0e358c81e9
-URL:           http://haskell.org/alex/
-BuildRequires: autoconf
+#Source0Download: http://hackage.haskell.org/package/alex
+Source0:       http://hackage.haskell.org/package/alex-%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: ed318478389e9538c8356056ddebbea8
+URL:           http://www.haskell.org/alex/
+BuildRequires: autoconf >= 2.50
 BuildRequires: docbook-dtd42-xml
 BuildRequires: docbook-style-xsl
 %{!?with_bootstrap:BuildRequires:      ghc >= 6.6}
@@ -22,6 +23,9 @@ BuildRequires:        libxslt-progs
 #For generating documentation in PDF: fop or xmltex
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# debuginfo is not useful for ghc
+%define                _enable_debug_packages  0
+
 %description
 Alex is a tool for generating lexical analysers in Haskell, given a
 description of the tokens to be recognised in the form of regular
@@ -37,8 +41,8 @@ regularnych. Jest podobne do narzędzi lex lub flex dla C/C++.
 
 %build
 %{?with_bootstrap:PATH=$PATH:/usr/local/bin}
-runhaskell Setup.lhs configure --prefix=%{_prefix}
-runhaskell Setup.lhs build
+runhaskell Setup.hs configure --prefix=%{_prefix}
+runhaskell Setup.hs build
 
 cd doc
 %{__autoconf}
@@ -49,17 +53,22 @@ cd ..
 %install
 rm -rf $RPM_BUILD_ROOT
 %{?with_bootstrap:PATH=$PATH:/usr/local/bin}
-runhaskell Setup.lhs copy --destdir=$RPM_BUILD_ROOT
+runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT%{_examplesdir}
 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
+# work around automatic haddock docs installation
+%{__rm} -rf %{name}-%{version}-doc
+cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc ANNOUNCE README TODO doc/alex
+%doc CHANGELOG.md README.md TODO doc/alex
 %attr(755,root,root) %{_bindir}/alex
 %{_datadir}/%{name}-%{version}
 %{_examplesdir}/%{name}-%{version}
This page took 0.095888 seconds and 4 git commands to generate.