- BR python for testsuite
- note break of haskell-platform-2010.1.0.0 - forward port following fixes from F-13 branch: - drop old ghc682, ghc681, haddock09 obsoletes - drop haddock_version and no longer provide haddock explicitly - add obsoletes for ghc-utf8-string (#571478, reported by Jochen Schmitt) - update ghc-rpm-macros BR to 0.5.6 for ghc_pkg_recache
This commit is contained in:
parent
4d4ecfaac7
commit
16ee9ca997
40
ghc.spec
40
ghc.spec
@ -20,8 +20,6 @@
|
|||||||
# include colored html src
|
# include colored html src
|
||||||
%bcond_with hscolour
|
%bcond_with hscolour
|
||||||
|
|
||||||
%global haddock_version 2.5.0
|
|
||||||
|
|
||||||
# the debuginfo subpackage is currently empty anyway, so don't generate it
|
# the debuginfo subpackage is currently empty anyway, so don't generate it
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
|
||||||
@ -41,11 +39,11 @@ Source1: http://www.haskell.org/ghc/dist/%{version}/ghc-%{version}-src-extralibs
|
|||||||
Source2: http://www.haskell.org/ghc/dist/%{version}/testsuite-%{version}.tar.bz2
|
Source2: http://www.haskell.org/ghc/dist/%{version}/testsuite-%{version}.tar.bz2
|
||||||
URL: http://haskell.org/ghc/
|
URL: http://haskell.org/ghc/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
Obsoletes: ghc682, ghc681, haddock09
|
# introduced for f11
|
||||||
# introduced for f11 and can be removed for f13:
|
Obsoletes: haddock < 2.4.2-3, ghc-haddock-devel < 2.4.2-3
|
||||||
Obsoletes: haddock < %{haddock_version}, ghc-haddock-devel < %{haddock_version}
|
# added for f13
|
||||||
Provides: haddock = %{haddock_version}
|
Obsoletes: ghc-utf8-string-devel < 0.3.6-3
|
||||||
BuildRequires: ghc, happy, ghc-rpm-macros >= 0.5.2
|
BuildRequires: ghc, happy, ghc-rpm-macros >= 0.5.6
|
||||||
BuildRequires: gmp-devel, ncurses-devel
|
BuildRequires: gmp-devel, ncurses-devel
|
||||||
Requires: gcc, gmp-devel
|
Requires: gcc, gmp-devel
|
||||||
%if %{with shared}
|
%if %{with shared}
|
||||||
@ -59,6 +57,9 @@ BuildRequires: libxslt, docbook-style-xsl
|
|||||||
%if %{with hscolour}
|
%if %{with hscolour}
|
||||||
BuildRequires: hscolour
|
BuildRequires: hscolour
|
||||||
%endif
|
%endif
|
||||||
|
%if %{with testsuite}
|
||||||
|
BuildRequires: python
|
||||||
|
%endif
|
||||||
Patch1: ghc-6.12.1-gen_contents_index-haddock-path.patch
|
Patch1: ghc-6.12.1-gen_contents_index-haddock-path.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -77,7 +78,9 @@ Group: Development/Languages
|
|||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
# for haddock
|
# for haddock
|
||||||
Requires(posttrans): %{name} = %{version}-%{release}
|
Requires(posttrans): %{name} = %{version}-%{release}
|
||||||
Obsoletes: ghc-haddock-doc < %{haddock_version}
|
Obsoletes: ghc-haddock-doc < 2.4.2-3
|
||||||
|
# added for f13
|
||||||
|
Obsoletes: ghc-utf8-string-doc < 0.3.6-3
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
Preformatted documentation for the Glorious Glasgow Haskell Compilation System
|
Preformatted documentation for the Glorious Glasgow Haskell Compilation System
|
||||||
@ -88,6 +91,8 @@ access to the documentation in HTML format.
|
|||||||
%package libs
|
%package libs
|
||||||
Summary: Shared libraries for GHC
|
Summary: Shared libraries for GHC
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
|
# added for f13
|
||||||
|
Obsoletes: ghc-utf8-string < 0.3.6-3
|
||||||
|
|
||||||
%description libs
|
%description libs
|
||||||
Shared libraries for Glorious Glasgow Haskell Compilation System (GHC).
|
Shared libraries for Glorious Glasgow Haskell Compilation System (GHC).
|
||||||
@ -98,8 +103,9 @@ Shared libraries for Glorious Glasgow Haskell Compilation System (GHC).
|
|||||||
Summary: Profiling libraries for GHC
|
Summary: Profiling libraries for GHC
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Obsoletes: ghc682-prof, ghc681-prof
|
Obsoletes: ghc-haddock-prof < 2.4.2-3
|
||||||
Obsoletes: ghc-haddock-prof < %{haddock_version}
|
# added for f13
|
||||||
|
Obsoletes: ghc-utf8-string-prof < 0.3.6-3
|
||||||
|
|
||||||
%description prof
|
%description prof
|
||||||
Profiling libraries for Glorious Glasgow Haskell Compilation System (GHC).
|
Profiling libraries for Glorious Glasgow Haskell Compilation System (GHC).
|
||||||
@ -205,8 +211,7 @@ inplace/bin/ghc-stage2 testghc/foo.hs -o testghc/foo -dynamic
|
|||||||
rm testghc/*
|
rm testghc/*
|
||||||
%endif
|
%endif
|
||||||
%if %{with testsuite}
|
%if %{with testsuite}
|
||||||
cd testsuite
|
make -C testsuite
|
||||||
make
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -238,7 +243,7 @@ fi
|
|||||||
|
|
||||||
%posttrans
|
%posttrans
|
||||||
# (posttrans to make sure any old libs have been removed first)
|
# (posttrans to make sure any old libs have been removed first)
|
||||||
ghc-pkg recache
|
%ghc_pkg_recache
|
||||||
|
|
||||||
%posttrans doc
|
%posttrans doc
|
||||||
# (posttrans to make sure any old docs have been removed first)
|
# (posttrans to make sure any old docs have been removed first)
|
||||||
@ -285,7 +290,14 @@ ghc-pkg recache
|
|||||||
%changelog
|
%changelog
|
||||||
* Fri Apr 23 2010 Jens Petersen <petersen@redhat.com> - 6.12.2-1
|
* Fri Apr 23 2010 Jens Petersen <petersen@redhat.com> - 6.12.2-1
|
||||||
- update to 6.12.2
|
- update to 6.12.2
|
||||||
- add testsuite with bcond and run it in check section
|
- add testsuite with bcond, run it in check section, and BR python
|
||||||
|
|
||||||
|
* Mon Apr 12 2010 Jens Petersen <petersen@redhat.com> - 6.12.1-6
|
||||||
|
- ghc-6.12.1 is part of haskell-platform-2010.1.0.0
|
||||||
|
- drop old ghc682, ghc681, haddock09 obsoletes
|
||||||
|
- drop haddock_version and no longer provide haddock explicitly
|
||||||
|
- add obsoletes for ghc-utf8-string (#571478, reported by Jochen Schmitt)
|
||||||
|
- update ghc-rpm-macros BR to 0.5.6 for ghc_pkg_recache
|
||||||
|
|
||||||
* Mon Jan 11 2010 Jens Petersen <petersen@redhat.com> - 6.12.1-5
|
* Mon Jan 11 2010 Jens Petersen <petersen@redhat.com> - 6.12.1-5
|
||||||
- drop ghc-6.12.1-no-filter-libs.patch and extras packages again
|
- drop ghc-6.12.1-no-filter-libs.patch and extras packages again
|
||||||
|
Loading…
Reference in New Issue
Block a user