133531c
# For Haskell Packaging Guidelines see:
133531c
# - https://fedoraproject.org/wiki/Packaging:Haskell
133531c
# - https://fedoraproject.org/wiki/PackagingDrafts/Haskell
133531c
133531c
%global pkg_name wai
133531c
133531c
%global common_summary Haskell Web Application Interface library
133531c
133531c
%global common_description Provides a common protocol for communication between web applications\
133531c
and web servers.
133531c
133531c
Name:           ghc-%{pkg_name}
133531c
Version:        0.4.2
133531c
Release:        1%{?dist}
133531c
Summary:        %{common_summary}
133531c
133531c
Group:          System Environment/Libraries
133531c
License:        BSD
133531c
# BEGIN cabal2spec
133531c
URL:            http://hackage.haskell.org/package/%{pkg_name}
133531c
Source0:        http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
133531c
ExclusiveArch:  %{ghc_arches}
133531c
BuildRequires:  ghc-Cabal-devel
133531c
BuildRequires:  ghc-rpm-macros
133531c
%if %{undefined without_hscolour}
133531c
BuildRequires:  hscolour
133531c
%endif
133531c
# END cabal2spec
133531c
BuildRequires:  ghc-enumerator-prof, ghc-http-types-prof, ghc-network-prof, ghc-transformers-prof
133531c
133531c
%description
133531c
%{common_description}
133531c
133531c
133531c
%package -n ghc-%{pkg_name}-devel
133531c
Summary:        Development files for %{common_summary}
133531c
Group:          Development/Libraries
133531c
# BEGIN cabal2spec
133531c
%{?ghc_devel_requires}
133531c
Obsoletes:      ghc-%{pkg_name}-prof < %{version}-%{release}
133531c
Provides:       ghc-%{pkg_name}-prof = %{version}-%{release}
133531c
# END cabal2spec
133531c
# Haskell devel dependencies are autogenerated by ghc-deps.sh
133531c
133531c
%description -n ghc-%{pkg_name}-devel
133531c
%{common_description}
133531c
133531c
This package contains the development files.
133531c
133531c
133531c
%prep
133531c
%setup -q -n %{pkg_name}-%{version}
133531c
133531c
133531c
%build
133531c
%ghc_lib_build
133531c
133531c
133531c
%install
133531c
%ghc_lib_install
133531c
133531c
133531c
%post -n ghc-%{pkg_name}-devel
133531c
%ghc_pkg_recache
133531c
133531c
133531c
%postun -n ghc-%{pkg_name}-devel
133531c
%ghc_pkg_recache
133531c
133531c
133531c
%if %{undefined ghc_without_shared}
133531c
%files -n ghc-%{pkg_name} -f ghc-%{pkg_name}.files
133531c
%endif
133531c
133531c
133531c
%files -n ghc-%{pkg_name}-devel -f ghc-%{pkg_name}-devel.files
133531c
133531c
133531c
%changelog
133531c
* Tue Sep 27 2011 Jens Petersen <petersen@redhat.com> - 0.4.2-1
133531c
- update to 0.4.2
133531c
133531c
* Thu Sep  8 2011 Jens Petersen <petersen@redhat.com> - 0.4.1-1
133531c
- update to 0.4.1 and cabal2spec-0.24.1
133531c
- add dependencies
133531c
133531c
* Sat Jun 25 2011 Ben Boeckel <mathstuf@gmail.com> - 0.4.0-1
133531c
- Update to 0.4.0
133531c
- Update to cabal2spec-0.23.2
133531c
133531c
* Tue Mar 08 2011 Ben Boeckel <mathstuf@gmail.com> - 0.3.2-1
133531c
- Update to 0.3.2
133531c
133531c
* Tue Nov 23 2010 Ben Boeckel <mathstuf@gmail.com> - 0.2.2.1-1
133531c
- Update to 0.2.2.1
133531c
133531c
* Sat Oct 30 2010 Ben Boeckel <mathstuf@gmail.com> - 0.2.2-1
133531c
- Update to 0.2.2
133531c
133531c
* Tue Sep 14 2010 Ben Boeckel <mathstuf@gmail.com> - 0.2.1-1
133531c
- Update to 0.2.1
133531c
133531c
* Sat Sep 04 2010 Ben Boeckel <mathstuf@gmail.com> - 0.2.0-1
133531c
- Initial package
133531c
133531c
* Sat Sep  4 2010 Fedora Haskell SIG <haskell-devel@lists.fedoraproject.org> - 0.2.0-0
133531c
- initial packaging for Fedora automatically generated by cabal2spec-0.22.2