From 9f88e3d747d49a4080754457952798756eed65048ffef2fdfdcd8fee4f623fd7 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 16 Jun 2020 10:56:45 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-feed revision:2, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-feed?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + feed-1.3.0.1.tar.gz | 3 + feed.cabal | 144 ++++++++++++++++++++++++++++++++++++++++++++ ghc-feed.changes | 5 ++ ghc-feed.spec | 101 +++++++++++++++++++++++++++++++ 6 files changed, 277 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 feed-1.3.0.1.tar.gz create mode 100644 feed.cabal create mode 100644 ghc-feed.changes create mode 100644 ghc-feed.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/feed-1.3.0.1.tar.gz b/feed-1.3.0.1.tar.gz new file mode 100644 index 0000000..d7c9346 --- /dev/null +++ b/feed-1.3.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:92611f52bd4ea52436ab64144143bc35db7afce8fd7694467f505399d7a6be39 +size 107230 diff --git a/feed.cabal b/feed.cabal new file mode 100644 index 0000000..4ae70c0 --- /dev/null +++ b/feed.cabal @@ -0,0 +1,144 @@ +name: feed +version: 1.3.0.1 +x-revision: 1 +license: BSD3 +license-file: LICENSE +category: Text +synopsis: Interfacing with RSS (v 0.9x, 2.x, 1.0) + Atom feeds. +description: Interfacing with RSS (v 0.9x, 2.x, 1.0) + Atom feeds. + . + To help working with the multiple feed formats we've + ended up with, this set of modules provides parsers, + pretty printers and some utility code for querying + and just generally working with a concrete representation + of feeds in Haskell. + . + See here for an example of how to create an Atom feed: + + . + For basic reading and editing of feeds, consult + the documentation of the Text.Feed.* hierarchy. +author: Sigbjorn Finne +maintainer: Adam Bergmark +homepage: https://github.com/bergmark/feed +bug-reports: https://github.com/bergmark/feed/issues +cabal-version: >= 1.8 +build-type: Simple +tested-with: + GHC == 7.4.2 + , GHC == 7.6.3 + , GHC == 7.8.4 + , GHC == 7.10.3 + , GHC == 8.0.2 + , GHC == 8.2.2 + , GHC == 8.4.4 + , GHC == 8.6.5 + , GHC == 8.8.1 +data-files: + tests/files/*.xml +extra-source-files: + README.md + CHANGELOG.md + +source-repository head + type: git + location: https://github.com/bergmark/feed.git + +library + ghc-options: -Wall + hs-source-dirs: src + extensions: + NoImplicitPrelude + OverloadedStrings + exposed-modules: + Text.Atom.Feed + Text.Atom.Feed.Export + Text.Atom.Feed.Import + Text.Atom.Feed.Link + Text.Atom.Feed.Validate + Text.Atom.Pub + Text.Atom.Pub.Export + Text.DublinCore.Types + Text.Feed.Constructor + Text.Feed.Export + Text.Feed.Import + Text.Feed.Query + Text.Feed.Translate + Text.Feed.Types + Text.Feed.Util + Text.RSS.Export + Text.RSS.Import + Text.RSS.Syntax + Text.RSS1.Export + Text.RSS1.Import + Text.RSS1.Syntax + Text.RSS1.Utils + other-modules: + Data.Text.Util + Data.XML.Compat + build-depends: + base >= 4 && < 4.15 + , base-compat >= 0.9 && < 0.12 + , bytestring >= 0.9 && < 0.11 + , old-locale == 1.0.* + , old-time >= 1 && < 1.2 + , safe == 0.3.* + , text < 1.3 + , time < 1.10 + , time-locale-compat == 0.1.* + , utf8-string < 1.1 + , xml-types >= 0.3.6 && < 0.4 + , xml-conduit >= 1.3 && < 1.10 + +test-suite tests + ghc-options: -Wall + hs-source-dirs: tests + main-is: Main.hs + type: exitcode-stdio-1.0 + extensions: + NoImplicitPrelude + OverloadedStrings + other-modules: + Paths_feed + Example + Example.CreateAtom + ImportExport + Text.Atom.Tests + Text.Atom.Validate.Tests + Text.Feed.Util.Tests + Text.RSS.Equals + Text.RSS.Export.Tests + Text.RSS.Import.Tests + Text.RSS.Tests + Text.RSS.Utils + build-depends: + base >= 4 && < 4.15 + , base-compat >= 0.9 && < 0.12 + , HUnit >= 1.2 && < 1.7 + , feed + , old-time >= 1 && < 1.2 + , syb + , test-framework == 0.8.* + , test-framework-hunit == 0.3.* + , text < 1.3 + , time < 1.10 + , xml-types >= 0.3.6 && < 0.4 + , xml-conduit >= 1.3 && < 1.10 + +test-suite readme + ghc-options: -Wall -pgmL markdown-unlit + main-is: README.lhs + extensions: + NoImplicitPrelude + OverloadedStrings + type: exitcode-stdio-1.0 + build-depends: + base >= 4 && < 4.15 + , base-compat >= 0.9 && < 0.12 + , text + , xml-types + , feed + , xml-conduit + , xml-types + build-tool-depends: + markdown-unlit:markdown-unlit >= 0.4 && < 0.6 diff --git a/ghc-feed.changes b/ghc-feed.changes new file mode 100644 index 0000000..53c7f7c --- /dev/null +++ b/ghc-feed.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Jun 9 09:26:18 UTC 2020 - psimons@suse.com + +- Add feed at version 1.3.0.1. + diff --git a/ghc-feed.spec b/ghc-feed.spec new file mode 100644 index 0000000..448349b --- /dev/null +++ b/ghc-feed.spec @@ -0,0 +1,101 @@ +# +# spec file for package ghc-feed +# +# Copyright (c) 2020 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global pkg_name feed +%bcond_with tests +Name: ghc-%{pkg_name} +Version: 1.3.0.1 +Release: 0 +Summary: Interfacing with RSS (v 0.9x, 2.x, 1.0) + Atom feeds +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-base-compat-devel +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-old-locale-devel +BuildRequires: ghc-old-time-devel +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-safe-devel +BuildRequires: ghc-text-devel +BuildRequires: ghc-time-devel +BuildRequires: ghc-time-locale-compat-devel +BuildRequires: ghc-utf8-string-devel +BuildRequires: ghc-xml-conduit-devel +BuildRequires: ghc-xml-types-devel +%if %{with tests} +BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-syb-devel +BuildRequires: ghc-test-framework-devel +BuildRequires: ghc-test-framework-hunit-devel +%endif + +%description +Interfacing with RSS (v 0.9x, 2.x, 1.0) + Atom feeds. + +To help working with the multiple feed formats we've ended up with, this set of +modules provides parsers, pretty printers and some utility code for querying +and just generally working with a concrete representation of feeds in Haskell. + +See here for an example of how to create an Atom feed: + + +For basic reading and editing of feeds, consult the documentation of the +Text.Feed.* hierarchy. + +%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. + +%prep +%setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal + +%build +%ghc_lib_build + +%install +%ghc_lib_install + +%check +%cabal_test + +%post devel +%ghc_pkg_recache + +%postun devel +%ghc_pkg_recache + +%files -f %{name}.files +%license LICENSE +%dir %{_datadir}/%{pkg_name}-%{version} +%dir %{_datadir}/%{pkg_name}-%{version}/tests +%dir %{_datadir}/%{pkg_name}-%{version}/tests/files +%{_datadir}/%{pkg_name}-%{version}/tests/files/*.xml + +%files devel -f %{name}-devel.files +%doc CHANGELOG.md README.md + +%changelog