784316a
# https://fedoraproject.org/wiki/Packaging:Haskell
c65b62d
784316a
%global pkg_name network
c65b62d
c65b62d
Name:           ghc-%{pkg_name}
c65b62d
# part of haskell-platform
784316a
Version:        2.4.1.2
e5f58e5
Release:        31%{?dist}
784316a
Summary:        Network library
c65b62d
c65b62d
License:        BSD
c65b62d
URL:            http://hackage.haskell.org/package/%{pkg_name}
c65b62d
Source0:        http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
784316a
c65b62d
BuildRequires:  ghc-Cabal-devel
784316a
BuildRequires:  ghc-rpm-macros
784316a
# Begin cabal-rpm deps:
784316a
BuildRequires:  ghc-bytestring-devel
784316a
BuildRequires:  ghc-parsec-devel
784316a
BuildRequires:  ghc-unix-devel
784316a
# End cabal-rpm deps
c65b62d
c65b62d
%description
784316a
Haskell basic networking library.
784316a
784316a
784316a
%package devel
784316a
Summary:        Haskell %{pkg_name} library development files
784316a
Provides:       %{name}-static = %{version}-%{release}
784316a
Requires:       ghc-compiler = %{ghc_version}
784316a
Requires(post): ghc-compiler = %{ghc_version}
784316a
Requires(postun): ghc-compiler = %{ghc_version}
784316a
Requires:       %{name}%{?_isa} = %{version}-%{release}
784316a
784316a
%description devel
784316a
This package provides the Haskell %{pkg_name} library development files.
c65b62d
c65b62d
c65b62d
%prep
c65b62d
%setup -q -n %{pkg_name}-%{version}
c65b62d
c65b62d
c65b62d
%build
c65b62d
%ghc_lib_build
c65b62d
c65b62d
c65b62d
%install
c65b62d
%ghc_lib_install
c65b62d
c65b62d
784316a
%post devel
784316a
%ghc_pkg_recache
c65b62d
c65b62d
784316a
%postun devel
784316a
%ghc_pkg_recache
c65b62d
c65b62d
784316a
%files -f %{name}.files
784316a
%doc LICENSE
c65b62d
784316a
784316a
%files devel -f %{name}-devel.files
c65b62d
%doc examples
c65b62d
c65b62d
c65b62d
%changelog
e5f58e5
* Mon Mar 17 2014 Jens Petersen <petersen@redhat.com> - 2.4.1.2-31
e5f58e5
- bump release over haskell-platform
e5f58e5
784316a
* Fri Jan 31 2014 Jens Petersen <petersen@redhat.com> - 2.4.1.2-30
784316a
- spec file revived using cabal-rpm-0.8.8
784316a
c65b62d
* Tue Mar 20 2012 Jens Petersen <petersen@redhat.com> - 2.3.0.11-1
c65b62d
- update to 2.3.0.11
c65b62d
c65b62d
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0.5-2
c65b62d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c65b62d
c65b62d
* Wed Dec 28 2011 Jens Petersen <petersen@redhat.com> - 2.3.0.5-1
c65b62d
- update to 2.3.0.5 for haskell-platform-2011.4.0.0
c65b62d
- cabal2spec-0.25.1
c65b62d
- includes examples in devel doc
c65b62d
c65b62d
* Mon Oct 24 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.3.0.2-5.3
c65b62d
- rebuild with new gmp without compat lib
c65b62d
c65b62d
* Fri Oct 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.3.0.2-5.2
c65b62d
- rebuild with new gmp without compat lib
c65b62d
c65b62d
* Tue Oct 11 2011 Peter Schiffer <pschiffe@redhat.com> - 2.3.0.2-5.1
c65b62d
- rebuild with new gmp
c65b62d
c65b62d
* Tue Jun 21 2011 Jens Petersen <petersen@redhat.com> - 2.3.0.2-5
c65b62d
- ghc_arches replaces ghc_excluded_archs
c65b62d
c65b62d
* Mon Jun 20 2011 Jens Petersen <petersen@redhat.com> - 2.3.0.2-4
c65b62d
- BR ghc-Cabal-devel and use ghc_excluded_archs
c65b62d
c65b62d
* Fri May 27 2011 Jens Petersen <petersen@redhat.com> - 2.3.0.2-3
c65b62d
- update to cabal2spec-0.23: add ppc64
c65b62d
c65b62d
* Thu Mar 10 2011 Fabio M. Di Nitto <fdinitto@redhat.com> - 2.3.0.2-2
c65b62d
- Enable build on sparcv9
c65b62d
c65b62d
* Tue Feb 15 2011 Jens Petersen <petersen@redhat.com> - 2.3.0.2-1
c65b62d
- update to 2.3.0.2 for haskell-platform-2011.1
c65b62d
c65b62d
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-3
c65b62d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c65b62d
c65b62d
* Sat Jan 15 2011 Jens Petersen <petersen@redhat.com> - 2.3-2
c65b62d
- update to cabal2spec-0.22.4
c65b62d
c65b62d
* Sun Dec  5 2010 Jens Petersen <petersen@redhat.com> - 2.3-1
c65b62d
- update to 2.3
c65b62d
c65b62d
* Thu Nov 25 2010 Jens Petersen <petersen@redhat.com> - 2.2.1.7-5
c65b62d
- update url and drop -o obsoletes
c65b62d
c65b62d
* Sat Sep  4 2010 Jens Petersen <petersen@redhat.com> - 2.2.1.7-4
c65b62d
- update to latest macros, hscolour and drop doc pkg (cabal2spec-0.22.2)
c65b62d
- part of haskell-platform-2010.2.0.0
c65b62d
c65b62d
* Fri Jun 25 2010 Jens Petersen <petersen@redhat.com> - 2.2.1.7-3
c65b62d
- strip shared library (cabal2spec-0.21.4)
c65b62d
c65b62d
* Mon Apr 26 2010 Jens Petersen <petersen@redhat.com> - 2.2.1.7-2
c65b62d
- rebuild against ghc-6.12.2
c65b62d
- condition ghc_lib_package
c65b62d
c65b62d
* Tue Mar 23 2010 Jens Petersen <petersen@redhat.com> - 2.2.1.7-1
c65b62d
- update to 2.2.1.7 for haskell-platform-2010.1.0.0
c65b62d
c65b62d
* Mon Jan 11 2010 Jens Petersen <petersen@redhat.com> - 2.2.1.5-1
c65b62d
- update to 2.2.1.5 (haskell-platform-2009.3.1)
c65b62d
- update to ghc-rpm-macros-0.5.1 and cabal2spec-0.21.1:
c65b62d
- drop doc and prof bcond
c65b62d
- use common_summary and common_description
c65b62d
- use ghc_lib_package and ghc_pkg_deps
c65b62d
- build shared library
c65b62d
- drop redundant buildroot and its install cleaning
c65b62d
c65b62d
* Tue Sep 22 2009 Jens Petersen <petersen@redhat.com> - 2.2.1.4-2
c65b62d
- version ghcdocdir to avoid conflict with ghc-doc-6.10.4 (#523884)
c65b62d
c65b62d
* Wed Sep 16 2009 Jens Petersen <petersen@redhat.com> - 2.2.1.4-1
c65b62d
- initial packaging for Fedora created by cabal2spec