Hello community, here is the log from the commit of package ghc-cmark for openSUSE:Factory checked in at 2016-07-21 08:05:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-cmark (Old) and /work/SRC/openSUSE:Factory/.ghc-cmark.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-cmark" Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-cmark/ghc-cmark.changes 2016-06-20 11:06:44.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-cmark.new/ghc-cmark.changes 2016-07-21 08:05:23.000000000 +0200 @@ -1,0 +2,5 @@ +Sun Jul 10 17:27:16 UTC 2016 - [email protected] + +- Update to version 0.5.2.1 revision 0 with cabal2obs. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-cmark.spec ++++++ --- /var/tmp/diff_new_pack.pCCQx7/_old 2016-07-21 08:05:24.000000000 +0200 +++ /var/tmp/diff_new_pack.pCCQx7/_new 2016-07-21 08:05:24.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-cmark # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,37 +15,32 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + +%global pkg_name cmark %if 0%{?suse_version} >= 1330 %define is_tumble 1 %endif - # is Leap 42.2+ or SLE12SP2+ %if 0%{?sle_version} >= 120200 %define is_sp2up 1 %endif - -%global pkg_name cmark - %bcond_with tests - -Name: ghc-cmark +Name: ghc-%{pkg_name} Version: 0.5.2.1 Release: 0 Summary: Fast, accurate CommonMark (Markdown) parser and renderer License: BSD-3-Clause and BSD-2-Clause and MIT Group: System/Libraries - Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build - BuildRequires: ghc-Cabal-devel -BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-rpm-macros BuildRequires: ghc-text-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?is_tumble} || 0%{?is_sp2up} -BuildRequires: pkg-config +BuildRequires: pkgconfig BuildRequires: pkgconfig(libcmark) %endif %if %{with tests} @@ -56,66 +51,17 @@ %description This package provides Haskell bindings for <https://github.com/jgm/cmark libcmark>, the reference parser for <http://commonmark.org CommonMark>, a fully -specified variant of Markdown. It includes sources for libcmark (0.19.0) and +specified variant of Markdown. It includes sources for libcmark (0.25.2) and does not require prior installation of the C library. -cmark provides the following advantages over existing Markdown libraries for -Haskell: - -- Speed: Conversion speed is on par with the -<https://hackage.haskell.org/package/sundown sundown> library. We were unable -to measure precisely against <https://hackage.haskell.org/package/sundown -sundown>, which raised a malloc error when compiled into our benchmark suite. -Relative to other implementations: cmark was 82 times faster than -<https://hackage.haskell.org/package/cheapskate cheapskate>, 59 times faster -than <https://hackage.haskell.org/package/markdown markdown>, 105 times faster -than <https://hackage.haskell.org/package/pandoc pandoc>, and 2.8 times faster -than <https://hackage.haskell.org/package/discount discount>. - -- Memory footprint: Memory footprint is on par with -<https://hackage.haskell.org/package/sundown sundown>. On one sample, the -library uses a fourth the memory that -<https://hackage.haskell.org/package/markdown markdown> uses, and less than a -tenth the memory that <https://hackage.haskell.org/package/pandoc pandoc> uses. - -- Robustness: cmark can handle whatever is thrown at it, without the -exponential blowups in parsing time one can sometimes get with other libraries. -(The input 'bench/full-sample.md', for example, causes both -<https://hackage.haskell.org/package/pandoc pandoc> and -<https://hackage.haskell.org/package/markdown markdown> to grind to a halt.) - -- Accuracy: cmark passes the CommonMark spec's suite of over 500 conformance -tests. - -- Standardization: Since there is a spec and a comprehensive suite of tests, we -can have a high degree of confidence that any two CommonMark implementations -will behave the same. Thus, for example, one could use this library for -server-side rendering and <http://github.com/jgm/commonmark.js commonmark.js> -for client-side previewing. - -- Ease of installation: cmark is portable and has minimal dependencies. - -cmark does not provide Haskell versions of the whole -<http://github.com/jgm/cmark libcmark> API, which is built around mutable -'cmark_node' objects. Instead, it provides functions for converting CommonMark -to HTML (and other formats), and a function for converting CommonMark to a -'Node' tree that can be processed further using Haskell. - -A note on security: This library does not attempt to sanitize HTML output. -We recommend using <https://hackage.haskell.org/package/xss-sanitize -xss-sanitize> to filter the output. - -A note on stability: There is a good chance the API will change significantly -after this early release. - - %package devel Summary: Haskell %{pkg_name} library development files Group: Development/Libraries/Other +Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} +Requires: pkgconfig Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} -Requires: %{name} = %{version}-%{release} %if 0%{?is_tumble} || 0%{?is_sp2up} Requires: pkgconfig(libcmark) %endif @@ -123,7 +69,6 @@ %description devel This package provides the Haskell %{pkg_name} library development files. - %prep %setup -q -n %{pkg_name}-%{version} %if 0%{?is_tumble} || 0%{?is_sp2up} @@ -133,14 +78,17 @@ %build %ghc_lib_build + %install %ghc_lib_install + %check %if %{with tests} -%cabal test +%{cabal} test %endif + %post devel %ghc_pkg_recache @@ -153,6 +101,6 @@ %files devel -f %{name}-devel.files %defattr(-,root,root,-) -%doc README.md +%doc README.md changelog %changelog
