From 7d74b0a5e1d4d281e0d1d831532ab31b719db3f96af5eb89b5b9d0ac2ad4ec00 Mon Sep 17 00:00:00 2001 From: Peter Trommler Date: Fri, 8 Jun 2012 18:32:51 +0000 Subject: [PATCH] Accepting request 124267 from home:ptrommler:branches:devel:languages:haskell Haskell Platform 2012.2.0.0 OBS-URL: https://build.opensuse.org/request/show/124267 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-tagged?expand=0&rev=3 --- ghc-tagged.changes | 5 ++++ ghc-tagged.spec | 68 +++++++++++++--------------------------------- 2 files changed, 24 insertions(+), 49 deletions(-) diff --git a/ghc-tagged.changes b/ghc-tagged.changes index c01828c..dceb8f4 100644 --- a/ghc-tagged.changes +++ b/ghc-tagged.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 8 17:05:42 UTC 2012 - peter.trommler@ohm-hochschule.de + +- use cabal2spec 0.25.5 spec file template + ------------------------------------------------------------------- Sat Jan 21 11:20:55 UTC 2012 - herbert@graeber-clan.de diff --git a/ghc-tagged.spec b/ghc-tagged.spec index 60d7ad7..a503c6d 100644 --- a/ghc-tagged.spec +++ b/ghc-tagged.spec @@ -1,6 +1,6 @@ -# For Haskell Packaging Guidelines see: -# - https://fedoraproject.org/wiki/Packaging:Haskell -# - https://fedoraproject.org/wiki/PackagingDrafts/Haskell +# +# spec file for ghc-tagged +# # Copyright (c) 2012 Herbert Graeber # @@ -16,67 +16,43 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +# cabal2spec-0.25 +# https://fedoraproject.org/wiki/Packaging:Haskell +# https://fedoraproject.org/wiki/PackagingDrafts/Haskell + %global pkg_name tagged -# common part of summary for all the subpackages -%global common_summary Haskell %{pkg_name} library +%global common_summary Haskell 98 phantom types library -# main description used for all the subpackages -%global common_description A %{pkg_name} library for Haskell. +%global common_description Haskell 98 phantom types to avoid unsafely passing dummy arguments. Name: ghc-%{pkg_name} Version: 0.2.3.1 Release: 1 Summary: %{common_summary} -Group: Development/Libraries/Other +Group: System/Libraries License: BSD-3-Clause +BuildRoot: %{_tmppath}/%{name}-%{version}-build # 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: %{ix86} x86_64 %{ghc_arches} BuildRequires: ghc-Cabal-devel -BuildRequires: ghc-rpm-macros -%if %{undefined without_hscolour} -BuildRequires: hscolour -%endif -BuildRequires: ghc-data-default-devel +BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour} +Buildrequires: ghc-data-default-devel BuildRequires: ghc-semigroups-devel # END cabal2spec -# BR any C devel dependency here -# list ghc-*-prof dependencies: - -%if %{defined sles_version} -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%endif %description %{common_description} -%package -n ghc-%{pkg_name}-devel -Summary: Development files for %{common_summary} -Group: Development/Libraries/Other -# BEGIN cabal2spec -%{?ghc_devel_requires} -Obsoletes: ghc-%{pkg_name}-prof < %{version}-%{release} -Provides: ghc-%{pkg_name}-prof = %{version}-%{release} -# END cabal2spec -# remember to require any C devel dependency here -# Haskell devel dependencies are autogenerated by ghc-deps.sh - -%description -n ghc-%{pkg_name}-devel -%{common_description} - -This package contains the development files. - - %prep %setup -q -n %{pkg_name}-%{version} %build -#%%define cabal_configure_options -f "opt1 -opt2 ..." %ghc_lib_build @@ -84,22 +60,16 @@ This package contains the development files. %ghc_lib_install -%post -n ghc-%{pkg_name}-devel -%ghc_pkg_recache +# devel subpackage +%ghc_devel_package + +%ghc_devel_description -%postun -n ghc-%{pkg_name}-devel -%ghc_pkg_recache +%ghc_devel_post_postun -%if %{undefined ghc_without_shared} -%files -n ghc-%{pkg_name} -f ghc-%{pkg_name}.files -%defattr(-,root,root,-) -%endif - - -%files -n ghc-%{pkg_name}-devel -f ghc-%{pkg_name}-devel.files -%defattr(-,root,root,-) +%ghc_files LICENSE %changelog