OBS User unknown 2006-09-06 12:35:39 +00:00 committed by Git OBS Bridge
parent b998c21bf8
commit eb56853dd2

View File

@ -1,9 +1,8 @@
%define with_html_docs 0
%define with_ps_docs 0 %define with_ps_docs 0
Name: alex Name: alex
Summary: The lexer generator for Haskell Summary: The lexer generator for Haskell
Summary(de): Ein Lexer-Generator für Haskell Summary(de): Ein Lexer-Generator für Haskell
Version: 2.0.1 Version: 2.0.1
Release: 0 Release: 0
License: BSD w/o adv. clause License: BSD w/o adv. clause
@ -12,8 +11,6 @@ Packager: Herbert Graeber <herbert@graeber-clan.de>
URL: http://www.haskell.org/alex/ URL: http://www.haskell.org/alex/
Source: http://www.haskell.org/alex/dist/%{version}/alex-%{version}-src.tar.gz Source: http://www.haskell.org/alex/dist/%{version}/alex-%{version}-src.tar.gz
BuildRequires: ghc BuildRequires: ghc
%if %{with_html_docs}
BuildRequires: haddock
BuildRequires: libxslt BuildRequires: libxslt
BuildRequires: sgml-skel BuildRequires: sgml-skel
BuildRequires: docbook-xsl-stylesheets BuildRequires: docbook-xsl-stylesheets
@ -22,7 +19,6 @@ BuildRequires: docbook-utils
BuildRequires: fop BuildRequires: fop
BuildRequires: xmltex BuildRequires: xmltex
%endif %endif
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
Prefix: /usr Prefix: /usr
@ -33,9 +29,9 @@ expressions. It is similar to the tool 'lex' or 'flex' for C/C++.
%description -l de %description -l de
Alex ist ein Tool zum Erzeugen von lexkialischen Analysatoren. Er erzeugt Alex ist ein Tool zum Erzeugen von lexkialischen Analysatoren. Er erzeugt
aus eine Beschreibung von Symbolen durch reguläre Ausdrücke ein aus eine Beschreibung von Symbolen durch reguläre Ausdrücke ein
Haskell-Modul, das aus einem Text eine Folge von Symbolen erzeugt. Alex ist Haskell-Modul, das aus einem Text eine Folge von Symbolen erzeugt. Alex ist
ein vergleichbar mit 'lex' bzw. 'flex' für C und C++. ein vergleichbar mit 'lex' bzw. 'flex' für C und C++.
%package doc %package doc
Summary: Alex Documentation Summary: Alex Documentation
@ -46,7 +42,7 @@ Group: Development/Languages/Haskell
This is the documentation for Alex, a lexical analyser generator for Haskell. This is the documentation for Alex, a lexical analyser generator for Haskell.
%description doc -l de %description doc -l de
Dieses ist Dokumentation für Alex. Dieses ist Dokumentation für Alex.
%prep %prep
%setup -q -n alex-%{version} %setup -q -n alex-%{version}
@ -60,12 +56,10 @@ test -f configure || autoreconf
%endif %endif
make make
%if %{with_html_docs}
make html make html
%if %{with_ps_docs} %if %{with_ps_docs}
make ps make ps
%endif %endif
%endif
%install %install
rm -rf ${RPM_BUILD_ROOT} rm -rf ${RPM_BUILD_ROOT}
@ -84,14 +78,15 @@ make prefix=$RPM_BUILD_ROOT%{_prefix} libdir=$RPM_BUILD_ROOT%{_libdir}/%{name}-%
%files doc %files doc
%defattr (-,root, root) %defattr (-,root, root)
%doc alex/examples %doc alex/examples
%if %{with_html_docs}
%doc alex/doc/alex %doc alex/doc/alex
%if %{with_ps_docs} %if %{with_ps_docs}
%doc alex/doc/alex.ps %doc alex/doc/alex.ps
%endif %endif
%endif
%changelog %changelog
* Wed Sep 06 2006 Herbert Graeber <herbert@links2linux.de>
- Haddock isn't needed for build
* Mon Sep 04 2006 Herbert Graeber <herbert@links2linux.de> * Mon Sep 04 2006 Herbert Graeber <herbert@links2linux.de>
- Use docbook-utils for html documentation - Use docbook-utils for html documentation
- Require sgml-skel for build - Require sgml-skel for build