# For Haskell Packaging Guidelines see: # - https://fedoraproject.org/wiki/Packaging:Haskell # - https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name ltk # common part of summary for all the subpackages %global common_summary Leksah IDE's UI toolkit library # main description used for all the subpackages %global common_description This package provides UI toolkit library for Leksah IDE. # Haskell library dependencies (used for buildrequires and devel/prof subpkg requires) %global ghc_pkg_deps ghc-glib-devel, ghc-gtk-devel, ghc-mtl-devel, ghc-parsec-devel, ghc-haddock-devel Name: ghc-%{pkg_name} Version: 0.10.0.4 Release: 2%{?dist} Summary: %{common_summary} Group: System Environment/Libraries License: GPL+ URL: http://hackage.haskell.org/package/%{pkg_name} Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz # fedora ghc archs: ExclusiveArch: %{ix86} x86_64 ppc alpha sparcv9 ppc64 BuildRequires: ghc, ghc-doc, ghc-prof # macros for building haskell packages BuildRequires: ghc-rpm-macros BuildRequires: hscolour %{?ghc_pkg_deps:BuildRequires: %{ghc_pkg_deps}, %(echo %{ghc_pkg_deps} | sed -e "s/\(ghc-[^, ]\+\)-devel/\1-doc,\1-prof/g")} %description %{common_description} %prep %setup -q -n %{pkg_name}-%{version} %build %ghc_lib_build %install %ghc_lib_install # define the devel and prof subpkgs, devel post[un] scripts, and filelists: # ghc-ltk{,-devel,-prof}.files %ghc_lib_package %changelog * Sun May 21 2011 Lakshmi Narasimhan T V <lakshminaras2002@gmail.com> - 0.10.0.4-2 - Updated spec file to cabal2spec 0.22.7 - License is GPL+. The cabal file states license as GPLv2 while sources specify license - as GPL. Hence GPL+. - Removed patch as it is not needed. * Sun May 1 2011 Lakshmi Narasimhan T V <lakshminaras2002@gmail.com> - 0.10.0.4-1 - Package updated to 0.10.0.4 * Tue Apr 12 2011 Lakshmi Narasimhan T V <lakshminaras2002@gmail.com> - 0.10.0-1 - Package update.cabal file patch to fix build issue on F15 and greater. * Thu Mar 24 2011 Lakshmi Narasimhan T V <lakshminaras2002@gmail.com> - 0.8.0.8-2 - Upgrade to cabal2spec 0.22.5 * Sun Oct 10 2010 Lakshmi Narasimhan T V <lakshminaras2002@gmail.com> - 0.8.0.8-1 - Modify license details, summary, description and added dependencies. * Sun Oct 10 2010 Fedora Haskell SIG <haskell-devel@lists.fedoraproject.org> - 0.8.0.8-0 - initial packaging for Fedora automatically generated by cabal2spec-0.22.2