Ben Boeckel 8cdb6f
# For Haskell Packaging Guidelines see:
Ben Boeckel 8cdb6f
# - https://fedoraproject.org/wiki/Packaging:Haskell
Ben Boeckel 8cdb6f
# - https://fedoraproject.org/wiki/PackagingDrafts/Haskell
Ben Boeckel 8cdb6f
Ben Boeckel 7c2e0d
%global pkg_name attempt
Ben Boeckel 7c2e0d
Ben Boeckel 7c2e0d
%global common_summary Data type for handling extensible exceptions as failures
Ben Boeckel 7c2e0d
Ben Boeckel 7c2e0d
%global common_description Defines a data type, Attempt, which has a Success and Failure \
Ben Boeckel 7c2e0d
constructor. Failure contains an extensible exception.
Ben Boeckel 7c2e0d
Ben Boeckel 7c2e0d
Name:           ghc-%{pkg_name}
Ben Boeckel 79897d
Version:        0.3.1.1
Marcela Mašláňová 8812eb
Release:        1%{?dist}.1
Ben Boeckel 7c2e0d
Summary:        %{common_summary}
Ben Boeckel 7c2e0d
Ben Boeckel 7c2e0d
Group:          System Environment/Libraries
Ben Boeckel 7c2e0d
License:        BSD
Ben Boeckel 79897d
# BEGIN: cabal2spec-0.24
Ben Boeckel 7c2e0d
URL:            http://hackage.haskell.org/package/%{pkg_name}
Ben Boeckel 7c2e0d
Source0:        http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
82772b
ExclusiveArch:  %{ghc_arches}
82772b
BuildRequires:  ghc-Cabal-devel
82772b
BuildRequires:  ghc-rpm-macros
Ben Boeckel 7c2e0d
BuildRequires:  hscolour
Ben Boeckel 79897d
# END: cabal2spec-0.24
Ben Boeckel 79897d
Ben Boeckel 79897d
BuildRequires:  ghc-failure-devel
Ben Boeckel 7c2e0d
Ben Boeckel 7c2e0d
%description
Ben Boeckel 7c2e0d
%{common_description}
Ben Boeckel 7c2e0d
Ben Boeckel 79897d
%package -n ghc-%{pkg_name}-devel
Ben Boeckel 79897d
Summary:        Development files for %{common_summary}
Ben Boeckel 79897d
Group:          Development/Libraries
Ben Boeckel 79897d
# BEGIN: cabal2spec-0.24
Ben Boeckel 79897d
%{?ghc_devel_requires}
Ben Boeckel 79897d
Obsoletes:      ghc-%{pkg_name}-prof < %{version}-%{release}
Ben Boeckel 79897d
Provides:       ghc-%{pkg_name}-prof = %{version}-%{release}
Ben Boeckel 79897d
# END: cabal2spec-0.24
Ben Boeckel 79897d
Ben Boeckel 79897d
%description -n ghc-%{pkg_name}-devel
Ben Boeckel 79897d
%{common_description}
Ben Boeckel 79897d
Ben Boeckel 79897d
This package contains the development files.
Ben Boeckel 79897d
Ben Boeckel 7c2e0d
Ben Boeckel 7c2e0d
%prep
Ben Boeckel 7c2e0d
%setup -q -n %{pkg_name}-%{version}
Ben Boeckel 7c2e0d
Ben Boeckel 7c2e0d
Ben Boeckel 7c2e0d
%build
Ben Boeckel 7c2e0d
%ghc_lib_build
Ben Boeckel 7c2e0d
Ben Boeckel 7c2e0d
Ben Boeckel 7c2e0d
%install
Ben Boeckel 7c2e0d
%ghc_lib_install
Ben Boeckel 7c2e0d
Ben Boeckel 7c2e0d
Ben Boeckel 79897d
%post -n ghc-%{pkg_name}-devel
Ben Boeckel 79897d
%ghc_pkg_recache
Ben Boeckel 79897d
Ben Boeckel 79897d
%postun -n ghc-%{pkg_name}-devel
Ben Boeckel 79897d
%ghc_pkg_recache
Ben Boeckel 79897d
Ben Boeckel 79897d
Ben Boeckel 79897d
%if %{undefined ghc_without_shared}
Ben Boeckel 79897d
%files -n ghc-%{pkg_name} -f ghc-%{pkg_name}.files
Ben Boeckel 79897d
%defattr(-,root,root,-)
Ben Boeckel 79897d
%endif
Ben Boeckel 79897d
Ben Boeckel 79897d
%files -n ghc-%{pkg_name}-devel -f ghc-%{pkg_name}-devel.files
Ben Boeckel 79897d
%defattr(-,root,root,-)
Ben Boeckel 7c2e0d
Ben Boeckel 7c2e0d
Ben Boeckel 7c2e0d
%changelog
Marcela Mašláňová 8812eb
* Tue Oct 11 2011 Peter Schiffer <pschiffe@redhat.com> - 0.3.1.1-1.1
Marcela Mašláňová 8812eb
- rebuild with new gmp
Marcela Mašláňová 8812eb
Ben Boeckel 79897d
* Sat Jul 09 2011 Ben Boeckel <mathstuf@gmail.com> - 0.3.1.1-1
Ben Boeckel 79897d
- Update to 0.3.1.1
Ben Boeckel 79897d
- Update to cabal2spec-0.24
Ben Boeckel 79897d
82772b
* Fri Jun 24 2011 Jens Petersen <petersen@redhat.com> - 0.3.0-8
82772b
- BR ghc-Cabal-devel instead of ghc-prof and use ghc_arches (cabal2spec-0.23.2)
82772b
Ben Boeckel 3becb4
* Wed May 11 2011 Ben Boeckel <mathstuf@gmail.com> - 0.3.0-6
Ben Boeckel 3becb4
- Update to cabal2spec-0.22.7
Ben Boeckel 3becb4
Ben Boeckel 941533
* Tue May 10 2011 Ben Boeckel <mathstuf@gmail.com> - 0.3.0-6
Ben Boeckel 941533
- Update to cabal2spec-0.22.6
Ben Boeckel 941533
Ben Boeckel 8cdb6f
* Tue May 10 2011 Ben Boeckel <mathstuf@gmail.com> - 0.3.0-5
Ben Boeckel 8cdb6f
- Update to cabal2spec-0.22.5
Ben Boeckel 8cdb6f
1d396f
* Thu Mar 10 2011 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.3.0-4
1d396f
- Enable build on sparcv9
1d396f
2e42ab
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-3
2e42ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2e42ab
Ben Boeckel 64a474
* Sat Jan 15 2011 Ben Boeckel <mathstuf@gmail.com> - 0.3.0-2
Ben Boeckel 64a474
- Update to cabal2spec-0.22.4
Ben Boeckel 64a474
- Rebuild
Ben Boeckel 64a474
Ben Boeckel 7c2e0d
* Sat Sep 04 2010 Ben Boeckel <mathstuf@gmail.com> - 0.3.0-1
Ben Boeckel 7c2e0d
- Initial package
Ben Boeckel 7c2e0d
Ben Boeckel 7c2e0d
* Sat Sep  4 2010 Fedora Haskell SIG <haskell-devel@lists.fedoraproject.org> - 0.3.0-0
Ben Boeckel 7c2e0d
- initial packaging for Fedora automatically generated by cabal2spec-0.22.2