From fe1654e89ba392ed0a15ead2d6691437cd94295f Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Feb 26 2019 17:10:49 +0000 Subject: refresh to cabal-rpm-0.13.1 --- diff --git a/gtk2hs-buildtools-0.13.4.0.cabal b/gtk2hs-buildtools-0.13.4.0.cabal new file mode 100644 index 0000000..7b77f0b --- /dev/null +++ b/gtk2hs-buildtools-0.13.4.0.cabal @@ -0,0 +1,142 @@ +Name: gtk2hs-buildtools +Version: 0.13.4.0 +x-revision: 1 +License: GPL-2 +License-file: COPYING +Copyright: (c) 2001-2010 The Gtk2Hs Team +Author: Axel Simon, Duncan Coutts, Manuel Chakravaty +Maintainer: gtk2hs-devel@lists.sourceforge.net +Build-Type: Simple +Cabal-Version: >= 1.10 +Stability: stable +homepage: http://projects.haskell.org/gtk2hs/ +bug-reports: https://github.com/gtk2hs/gtk2hs/issues +Synopsis: Tools to build the Gtk2Hs suite of User Interface libraries. +Description: This package provides a set of helper programs necessary to + build the Gtk2Hs suite of libraries. These tools include + a modified c2hs binding tool that is used to generate + FFI declarations, a tool to build a type hierarchy that + mirrors the C type hierarchy of GObjects found in glib, + and a generator for signal declarations that are used + to call back from C to Haskell. These tools are not needed + to actually run Gtk2Hs programs. +Category: Development +Tested-With: GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.1 +Data-Files: callbackGen/Signal.chs.template + hierarchyGen/hierarchy.list + hierarchyGen/Hierarchy.chs.template +Extra-Source-Files: c2hs/toplevel/c2hs_config.h + +Source-Repository head + type: git + location: https://github.com/gtk2hs/gtk2hs + subdir: tools + +Flag ClosureSignals + Description: Use the the GClosure-based signals implementation. +-- if ! (arch(sparc) || arch(x86_64) || impl(ghc >= 6.4.1)) +-- Default: False + +Library + build-depends: base >= 4 && < 4.12, + process, array, pretty, + filepath, random, + Cabal >= 1.24.0.0, + filepath >= 1.3.0.0, + directory >= 1.2.0.0, + containers >= 0.5.5.1 + if impl(ghc >= 7.7) + build-depends: hashtables + build-tools: alex >= 3.0.1, happy >= 1.18.9 + hs-source-dirs: src + hierarchyGen + callbackGen + c2hs/toplevel + c2hs/state + c2hs/gen + c2hs/chs + c2hs/c + c2hs/base/admin + c2hs/base/general + c2hs/base/state + c2hs/base/errors + c2hs/base/syms + c2hs/base/syntax + c-sources: c2hs/toplevel/c2hs_config.c + exposed-modules: Gtk2HsSetup + TypeGen + HookGenerator + Gtk2HsC2Hs + other-modules: Paths_gtk2hs_buildtools + -- gtk2hsC2hs Modules + BaseVersion + Config + Errors + Binary + DLists + FastMutInt + FileOps + FNameOps + Map + Position + Set + UNames + CIO + State + StateBase + StateTrans + Attributes + Idents + NameSpaces + Lexers + C + CAST + CAttrs + CBuiltin + CLexer + CNames + CParser + CParserMonad + CPretty + CTokens + CTrav + CHS + CHSLexer + CInfo + GBMonad + GenBind + GenHeader + C2HSState + Switches + C2HSConfig + Version + + default-language: Haskell98 + default-extensions: ForeignFunctionInterface + BangPatterns + + if flag(ClosureSignals) + cpp-options: -DUSE_GCLOSURE_SIGNALS_IMPL + + if os(darwin) + cpp-options: -D_C2HS_CPP_IS_GCC + else + cpp-options: -D_C2HS_CPP_LANG_SINGLE + +Executable gtk2hsTypeGen + main-is: gtk2hsTypeGenMain.hs + hs-source-dirs: exe + build-depends: base, gtk2hs-buildtools + default-language: Haskell98 + +Executable gtk2hsHookGenerator + main-is: gtk2hsHookGeneratorMain.hs + hs-source-dirs: exe + build-depends: base, gtk2hs-buildtools + default-language: Haskell98 + +Executable gtk2hsC2hs + main-is: gtk2hsC2hsMain.hs + hs-source-dirs: exe + build-depends: base, gtk2hs-buildtools + default-language: Haskell98 diff --git a/gtk2hs-buildtools.spec b/gtk2hs-buildtools.spec index 2b0e75c..f9f7548 100644 --- a/gtk2hs-buildtools.spec +++ b/gtk2hs-buildtools.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.13 +# generated by cabal-rpm-0.13.1 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name gtk2hs-buildtools @@ -6,20 +6,20 @@ Name: %{pkg_name} Version: 0.13.4.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Tools to build the Gtk2Hs suite of User Interface libraries License: GPLv2+ Url: https://hackage.haskell.org/package/%{name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkgver}/%{name}.cabal#/%{pkgver}.cabal # End cabal-rpm sources # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: alex -BuildRequires: chrpath BuildRequires: ghc-array-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-directory-devel @@ -29,6 +29,7 @@ BuildRequires: ghc-pretty-devel BuildRequires: ghc-process-devel BuildRequires: ghc-random-devel BuildRequires: happy +Requires: %{name}-common = %{version}-%{release} # End cabal-rpm deps %description @@ -40,8 +41,17 @@ signal declarations that are used to call back from C to Haskell. These tools are not needed to actually run Gtk2Hs programs. +%package common +Summary: %{name} common files +BuildArch: noarch + +%description common +This package provides the %{name} common data files. + + %package -n ghc-%{name} Summary: Haskell %{name} library +Requires: %{name}-common = %{version}-%{release} %description -n ghc-%{name} This package provides the Haskell %{name} shared library. @@ -63,7 +73,9 @@ This package provides the Haskell %{name} library development files. %prep +# Begin cabal-rpm setup: %setup -q +cp -bp %{SOURCE1} %{name}.cabal # End cabal-rpm setup @@ -74,7 +86,9 @@ This package provides the Haskell %{name} library development files. %install +# Begin cabal-rpm install %ghc_lib_install +mv %{buildroot}%{_ghcdocdir}{,-common} # End cabal-rpm install @@ -88,25 +102,31 @@ This package provides the Haskell %{name} library development files. %files # Begin cabal-rpm files: -%license COPYING %{_bindir}/gtk2hsC2hs %{_bindir}/gtk2hsHookGenerator %{_bindir}/gtk2hsTypeGen -%{_datadir}/%{pkgver} # End cabal-rpm files -%files -n ghc-%{name} -f ghc-%{name}.files +%files common # Begin cabal-rpm files: %license COPYING %{_datadir}/%{pkgver} # End cabal-rpm files +%files -n ghc-%{name} -f ghc-%{name}.files +# Begin cabal-rpm files: +# End cabal-rpm files + + %files -n ghc-%{name}-devel -f ghc-%{name}-devel.files %changelog +* Wed Feb 27 2019 Jens Petersen - 0.13.4.0-4 +- refresh to cabal-rpm-0.13.1 + * Fri Feb 01 2019 Fedora Release Engineering - 0.13.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild