From 7c4f8f37f5a5814c96c456917dabc64ff9cee847ebd8235dc287f931b0c79785 Mon Sep 17 00:00:00 2001 From: Peter Trommler Date: Thu, 7 Jun 2012 09:50:06 +0000 Subject: [PATCH] Accepting request 124040 from home:ptrommler:pandoc pandoc: Haskell Platform 2012.2.0.0 update OBS-URL: https://build.opensuse.org/request/show/124040 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-base64-bytestring?expand=0&rev=4 --- ghc-base64-bytestring.changes | 5 +++ ghc-base64-bytestring.spec | 62 ++++++++++------------------------- 2 files changed, 22 insertions(+), 45 deletions(-) diff --git a/ghc-base64-bytestring.changes b/ghc-base64-bytestring.changes index 6700ebe..f41ffd9 100644 --- a/ghc-base64-bytestring.changes +++ b/ghc-base64-bytestring.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 5 16:32:59 UTC 2012 - peter.trommler@ohm-hochschule.de + +- cabal2spec 0.25.5 template for spec file + ------------------------------------------------------------------- Fri Apr 20 16:31:54 UTC 2012 - peter.trommler@ohm-hochschule.de diff --git a/ghc-base64-bytestring.spec b/ghc-base64-bytestring.spec index aa0ba3c..d74f418 100644 --- a/ghc-base64-bytestring.spec +++ b/ghc-base64-bytestring.spec @@ -1,8 +1,9 @@ -# For Haskell Packaging Guidelines see: -# - https://fedoraproject.org/wiki/Packaging:Haskell -# - https://fedoraproject.org/wiki/PackagingDrafts/Haskell +# +# spec file for ghc-base64-bytestring +# # Copyright (c) 2012 Herbert Graeber +# Copyright (c) 2012 Peter Trommler # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,12 +17,14 @@ # 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 base64-bytestring -# common part of summary for all the subpackages %global common_summary Haskell %{pkg_name} library -# main description used for all the subpackages %global common_description A %{pkg_name} library for Haskell. Name: ghc-%{pkg_name} @@ -29,51 +32,26 @@ Version: 0.1.1.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-bytestring-devel +BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour} # END cabal2spec -# BR any C devel dependency here -# list ghc-*-prof dependencies: - -BuildRoot: %{_tmppath}/%{name}-%{version}-build %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 @@ -81,22 +59,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