This commit is contained in:
parent
d1d1b7af0f
commit
946dd6c733
34
alex.spec
34
alex.spec
@ -1,24 +1,18 @@
|
|||||||
%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.1.0
|
||||||
Release: 0
|
Release: 0
|
||||||
License: BSD w/o adv. clause
|
License: BSD w/o adv. clause
|
||||||
Group: Development/Languages/Haskell
|
Group: Development/Languages/Haskell
|
||||||
Packager: Herbert Graeber <herbert@graeber-clan.de>
|
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}.tar.gz
|
||||||
BuildRequires: ghc
|
BuildRequires: ghc
|
||||||
BuildRequires: libxslt
|
BuildRequires: libxslt
|
||||||
BuildRequires: sgml-skel
|
BuildRequires: sgml-skel
|
||||||
BuildRequires: docbook-xsl-stylesheets
|
BuildRequires: docbook-xsl-stylesheets
|
||||||
BuildRequires: docbook-utils
|
BuildRequires: docbook-utils
|
||||||
%if %{with_ps_docs}
|
|
||||||
BuildRequires: fop
|
|
||||||
BuildRequires: xmltex
|
|
||||||
%endif
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
Prefix: /usr
|
Prefix: /usr
|
||||||
|
|
||||||
@ -49,21 +43,16 @@ Dieses ist Dokumentation f
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="$RPM_OPT_FLAGS"
|
export CFLAGS="$RPM_OPT_FLAGS"
|
||||||
|
runhaskell Setup.lhs configure --prefix=%{_prefix} --libdir=%{_libdir} --datadir=%{_datadir} \
|
||||||
|
--libexecdir=%{_prefix}/lib
|
||||||
|
runhaskell Setup.lhs build
|
||||||
|
cd doc
|
||||||
test -f configure || autoreconf
|
test -f configure || autoreconf
|
||||||
./configure --prefix=/usr --libdir=%{_libdir} \
|
./configure
|
||||||
%ifarch x86_64 amd64 ia32e
|
|
||||||
--enable-libsuffix=64
|
|
||||||
%endif
|
|
||||||
|
|
||||||
make
|
|
||||||
make html
|
make html
|
||||||
%if %{with_ps_docs}
|
|
||||||
make ps
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
runhaskell Setup.lhs copy --destdir=${RPM_BUILD_ROOT}
|
||||||
make prefix=$RPM_BUILD_ROOT%{_prefix} libdir=$RPM_BUILD_ROOT%{_libdir}/%{name}-%{version} install
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr (-,root,root)
|
%defattr (-,root,root)
|
||||||
@ -73,7 +62,7 @@ make prefix=$RPM_BUILD_ROOT%{_prefix} libdir=$RPM_BUILD_ROOT%{_libdir}/%{name}-%
|
|||||||
%doc alex/TODO
|
%doc alex/TODO
|
||||||
%{prefix}/bin/alex
|
%{prefix}/bin/alex
|
||||||
%{prefix}/bin/alex-%{version}
|
%{prefix}/bin/alex-%{version}
|
||||||
%{prefix}/%{_lib}/alex-%{version}
|
%{_libdir}/alex-%{version}
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%defattr (-,root, root)
|
%defattr (-,root, root)
|
||||||
@ -84,6 +73,9 @@ make prefix=$RPM_BUILD_ROOT%{_prefix} libdir=$RPM_BUILD_ROOT%{_libdir}/%{name}-%
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jan 18 2007 Herbert Graeber <herbert@links2linux.de>
|
||||||
|
- Update to version 2.1.0
|
||||||
|
|
||||||
* Wed Sep 06 2006 Herbert Graeber <herbert@links2linux.de>
|
* Wed Sep 06 2006 Herbert Graeber <herbert@links2linux.de>
|
||||||
- Haddock isn't needed for build
|
- Haddock isn't needed for build
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user