From f5334c0a212c19483a3265dceafa9bf6fef9c36857d1add198bc364ed0cc6cf6 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 29 Jun 2022 12:18:12 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-hi-file-parser revision:14, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hi-file-parser?expand=0&rev=22 --- ghc-hi-file-parser.changes | 6 +++ ghc-hi-file-parser.spec | 4 +- hi-file-parser.cabal | 81 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 hi-file-parser.cabal diff --git a/ghc-hi-file-parser.changes b/ghc-hi-file-parser.changes index 64f2631..bedf06c 100644 --- a/ghc-hi-file-parser.changes +++ b/ghc-hi-file-parser.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon May 23 17:33:43 UTC 2022 - Peter Simons + +- Update hi-file-parser to version 0.1.2.0 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + ------------------------------------------------------------------- Fri Apr 9 08:53:16 UTC 2021 - psimons@suse.com diff --git a/ghc-hi-file-parser.spec b/ghc-hi-file-parser.spec index d26d3c8..6830ea4 100644 --- a/ghc-hi-file-parser.spec +++ b/ghc-hi-file-parser.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-hi-file-parser # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,6 +25,7 @@ Summary: Parser for GHC's hi files License: BSD-3-Clause URL: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-binary-devel BuildRequires: ghc-bytestring-devel @@ -52,6 +53,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep %autosetup -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build diff --git a/hi-file-parser.cabal b/hi-file-parser.cabal new file mode 100644 index 0000000..51e6ab4 --- /dev/null +++ b/hi-file-parser.cabal @@ -0,0 +1,81 @@ +cabal-version: 1.12 + +-- This file has been generated from package.yaml by hpack version 0.33.0. +-- +-- see: https://github.com/sol/hpack +-- +-- hash: 683b7e0e97c0e1fcb98a9024ffc0a5f9051cd019a6f4d164f2c77d55a16f83c4 + +name: hi-file-parser +version: 0.1.2.0 +x-revision: 1 +synopsis: Parser for GHC's hi files +description: Please see the README on Github at +category: Development +homepage: https://github.com/commercialhaskell/hi-file-parser#readme +bug-reports: https://github.com/commercialhaskell/hi-file-parser/issues +author: Hussein Ait-Lahcen +maintainer: michael@snoyman.com +license: BSD3 +license-file: LICENSE +build-type: Simple +extra-source-files: + README.md + ChangeLog.md + test-files/iface/x64/ghc844/Main.hi + test-files/iface/x64/ghc844/X.hi + test-files/iface/x64/ghc822/Main.hi + test-files/iface/x64/ghc822/X.hi + test-files/iface/x64/ghc864/Main.hi + test-files/iface/x64/ghc864/X.hi + test-files/iface/x64/ghc884/Main.hi + test-files/iface/x64/ghc884/X.hi + test-files/iface/x64/ghc8104/Main.hi + test-files/iface/x64/ghc8104/X.hi + test-files/iface/x64/ghc901/Main.hi + test-files/iface/x64/ghc901/X.hi + test-files/iface/x32/ghc844/Main.hi + test-files/iface/x32/ghc802/Main.hi + test-files/iface/x32/ghc7103/Main.hi + test-files/iface/x32/ghc822/Main.hi + +source-repository head + type: git + location: https://github.com/commercialhaskell/hi-file-parser + +library + exposed-modules: + HiFileParser + other-modules: + Paths_hi_file_parser + hs-source-dirs: + src + ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints + build-depends: + base >=4.10 && <5 + , binary + , bytestring + , mtl < 2.3 + , rio + , vector + default-language: Haskell2010 + +test-suite hi-file-parser-test + type: exitcode-stdio-1.0 + main-is: Spec.hs + other-modules: + HiFileParserSpec + Paths_hi_file_parser + hs-source-dirs: + test + ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N + build-depends: + base >=4.10 && <5 + , binary + , bytestring + , hi-file-parser + , hspec + , mtl + , rio + , vector + default-language: Haskell2010