This commit is contained in:
parent
fef1ca9d18
commit
2949f3c523
24
ghc.spec
24
ghc.spec
@ -18,18 +18,18 @@ Source0: http://haskell.org/ghc/dist/%{version}/%{name}-%{version}-src.tar
|
||||
Source1: http://haskell.org/ghc/dist/%{version}/%{name}-%{version}-src-extralibs.tar.bz2
|
||||
Patch0: ghc-optional-openal.patch
|
||||
URL: http://haskell.org/ghc/
|
||||
%if %suse_version > 1000
|
||||
%if 0%{?suse_version} > 1000
|
||||
Requires: gmp-devel
|
||||
%endif
|
||||
Requires: update-alternatives
|
||||
%if 0%suse_version >= 1030
|
||||
%if 0%{?suse_version} >= 1030
|
||||
Requires: licenses
|
||||
%endif
|
||||
BuildRequires: ghc >= 5.0
|
||||
BuildRequires: happy >= 1.15
|
||||
BuildRequires: alex >= 2.0
|
||||
BuildRequires: ncurses-devel
|
||||
%if %suse_version > 1000
|
||||
%if 0%{?suse_version} > 1000
|
||||
BuildRequires: gmp-devel
|
||||
%else
|
||||
BuildRequires: gmp
|
||||
@ -37,7 +37,7 @@ BuildRequires: gmp
|
||||
BuildRequires: readline-devel
|
||||
BuildRequires: xorg-x11-Mesa-devel
|
||||
BuildRequires: freeglut-devel
|
||||
%if 0%suse_version > 1020
|
||||
%if 0%{?suse_version} > 1020
|
||||
BuildRequires: texlive-latex
|
||||
%else
|
||||
BuildRequires: te_latex
|
||||
@ -47,20 +47,20 @@ BuildRequires: libxslt
|
||||
BuildRequires: sgml-skel
|
||||
BuildRequires: docbook-xsl-stylesheets
|
||||
BuildRequires: docbook-utils
|
||||
%if %suse_version >= 1020
|
||||
%if 0%{?suse_version} >= 1020
|
||||
BuildRequires: openal
|
||||
BuildRequires: freealut
|
||||
%endif
|
||||
BuildRequires: update-alternatives
|
||||
%if 0%suse_version >= 1010
|
||||
%if 0%{?suse_version} >= 1010
|
||||
BuildRequires: java-1_5_0-sun
|
||||
BuildRequires: fop
|
||||
%endif
|
||||
BuildRequires: xmltex
|
||||
%if 0%suse_version <= 1010
|
||||
%if 0%{?suse_version} <= 1010
|
||||
BuildRequires: libpng
|
||||
%endif
|
||||
%if 0%suse_version >= 1030
|
||||
%if 0%{?suse_version} >= 1030
|
||||
BuildRequires: licenses
|
||||
%endif
|
||||
|
||||
@ -120,7 +120,7 @@ the documentation is available online at
|
||||
%build
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \
|
||||
%if 0%suse_version < 1020
|
||||
%if 0%{?suse_version} < 1020
|
||||
--enable-openal=no \
|
||||
%endif
|
||||
%ifarch x86_64 amd64 ia32e
|
||||
@ -136,13 +136,13 @@ make %{?jobs:-j%jobs}
|
||||
make html
|
||||
make -C libraries HADDOCK_DOCS=YES
|
||||
( cd libraries/Cabal && docbook2html doc/Cabal.xml --output doc/Cabal )
|
||||
%if 0{%suse_version} >= 1010
|
||||
%if 0%{?suse_version} >= 1010
|
||||
make -C docs/ext-core ps
|
||||
make -C docs/storage-mgt ps
|
||||
%endif
|
||||
|
||||
%install
|
||||
%if 0%suse_version >= 1030
|
||||
%if 0%{?suse_version} >= 1030
|
||||
for FILE in LICENSE ; do
|
||||
MD5SUM=$(md5sum $FILE | sed 's/ .*//')
|
||||
if test -f /usr/share/doc/licenses/md5/$MD5SUM ; then
|
||||
@ -207,7 +207,7 @@ fi
|
||||
%doc docs/docbook-cheat-sheet/docbook-cheat-sheet
|
||||
%doc docs/users_guide/users_guide
|
||||
%doc libraries/Cabal/doc/Cabal
|
||||
%if 0{%suse_version} >= 1010
|
||||
%if 0%{?suse_version} >= 1010
|
||||
%doc docs/ext-core/core.ps
|
||||
%doc docs/storage-mgt/ldv.ps
|
||||
%doc docs/storage-mgt/rp.ps
|
||||
|
Loading…
x
Reference in New Issue
Block a user