|
|
|
@ -1,4 +1,3 @@
|
|
|
|
|
# cabal2spec-0.25
|
|
|
|
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
|
|
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
|
|
|
|
|
|
|
|
|
@ -10,20 +9,24 @@
|
|
|
|
|
parsers.
|
|
|
|
|
|
|
|
|
|
Name: ghc-%{pkg_name}
|
|
|
|
|
Version: 0.9.5
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Version: 0.10
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: %{common_summary}
|
|
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
License: BSD
|
|
|
|
|
# BEGIN cabal2spec
|
|
|
|
|
URL: http://hackage.haskell.org/package/%{pkg_name}
|
|
|
|
|
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
|
|
|
|
|
ExclusiveArch: %{ghc_arches}
|
|
|
|
|
|
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
|
BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour}
|
|
|
|
|
# END cabal2spec
|
|
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
|
# Begin cabal-rpm deps:
|
|
|
|
|
BuildRequires: ghc-filepath-devel
|
|
|
|
|
BuildRequires: ghc-process-devel
|
|
|
|
|
BuildRequires: ghc-template-haskell-devel
|
|
|
|
|
BuildRequires: ghc-transformers-devel
|
|
|
|
|
ExclusiveArch: %{ghc_arches_with_ghci}
|
|
|
|
|
# End cabal-rpm deps
|
|
|
|
|
Patch1: cmdargs-disable-testprog.patch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%{common_description}
|
|
|
|
@ -31,21 +34,17 @@ BuildRequires: ghc-transformers-devel
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
|
|
|
|
%patch1 -p1 -b .orig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# dynamic linking of test program failing
|
|
|
|
|
%define ghc_without_dynamic 1
|
|
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%ghc_lib_install
|
|
|
|
|
# Remove the demo program
|
|
|
|
|
rm -vf %{buildroot}/%{_bindir}/%{pkg_name}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# devel subpackage
|
|
|
|
|
%ghc_devel_package
|
|
|
|
|
|
|
|
|
|
%ghc_devel_description
|
|
|
|
@ -58,6 +57,10 @@ rm -vf %{buildroot}/%{_bindir}/%{pkg_name}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Oct 29 2012 Jens Petersen <petersen@redhat.com> - 0.10-1
|
|
|
|
|
- update to 0.10 with cabal-rpm
|
|
|
|
|
- disable building testprog in .cabal
|
|
|
|
|
|
|
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|