From 73398c504de4e0cbbd475e2ba02b72197c3d7e28 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sun, 29 Oct 2023 01:43:51 +0000 Subject: automatic import of ghc-xml --- .gitignore | 1 + ghc-xml.spec | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + xml.cabal | 32 +++++++++++++++++++++++++ 4 files changed, 112 insertions(+) create mode 100644 ghc-xml.spec create mode 100644 sources create mode 100755 xml.cabal diff --git a/.gitignore b/.gitignore index e69de29..ac55f36 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/xml-1.3.14.tar.gz diff --git a/ghc-xml.spec b/ghc-xml.spec new file mode 100644 index 0000000..4eea281 --- /dev/null +++ b/ghc-xml.spec @@ -0,0 +1,78 @@ +%global pkg_name xml +%global pkgver %{pkg_name}-%{version} + +Name: ghc-%{pkg_name} +Version: 1.3.14 +Release: 1 +Summary: A simple XML library +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/2.cabal#/%{pkg_name}.cabal +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-bytestring-prof +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-text-devel +BuildRequires: ghc-text-prof +ExcludeArch: %{ix86} + +%description +A simple XML library. + +%package devel +Summary: Haskell %{pkg_name} library development files +Requires: %{name} = %{version}-%{release} +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} + +%description devel +This package provides the Haskell %{pkg_name} library development files. + +%package -n ghc-%{pkg_name}-help +Summary: Haskell %{pkg_name} library documentation +BuildArch: noarch + +%description -n ghc-%{pkg_name}-help +This package provides the Haskell %{pkg_name} library documentation. + +%package -n ghc-%{pkg_name}-prof +Summary: Haskell %{pkg_name} profiling library +Requires: ghc-%{pkg_name}-devel = %{version}-%{release} +Supplements: (ghc-%{pkg_name}-devel and ghc-prof) + +%description -n ghc-%{pkg_name}-prof +This package provides the Haskell %{pkg_name} profiling library. + +%prep +%autosetup -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal + +%build +%ghc_lib_build + +%install +%ghc_lib_install + +%post devel +%ghc_pkg_recache + +%postun devel +%ghc_pkg_recache + +%files -f %{name}.files +%license LICENSE + +%files devel -f %{name}-devel.files + +%files -n ghc-%{pkg_name}-help -f ghc-%{pkg_name}-help.files +%license LICENSE + +%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files + +%changelog +* Thu Sep 28 2023 Lin Runze 1.3.14-1 +- Initial packaging (Version 1.3.14) diff --git a/sources b/sources new file mode 100644 index 0000000..0a38ba2 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +bc3d37dca61f52e4d3f547b07beb76c8 xml-1.3.14.tar.gz diff --git a/xml.cabal b/xml.cabal new file mode 100755 index 0000000..aad11f7 --- /dev/null +++ b/xml.cabal @@ -0,0 +1,32 @@ +Name: xml +Version: 1.3.14 +x-revision: 2 +Homepage: https://github.com/GaloisInc/xml +Synopsis: A simple XML library. +Description: A simple XML library. +Category: Text, XML +License: BSD3 +License-File: LICENSE +Author: Galois Inc. +Maintainer: diatchki@galois.com +Copyright: (c) 2007-2008 Galois Inc. +Build-type: Simple +Cabal-version: >= 1.6 + + +library + Build-depends: base >= 3 && < 5, bytestring, text + Ghc-options: -Wall -O2 + Exposed-modules: Text.XML.Light, + Text.XML.Light.Types, + Text.XML.Light.Output, + Text.XML.Light.Input, + Text.XML.Light.Lexer, + Text.XML.Light.Proc + Text.XML.Light.Cursor + Extensions: FlexibleInstances + +source-repository head + type: git + location: git://github.com/GaloisInc/xml.git + -- cgit v1.2.3