commit ghc-utf8-string for openSUSE:Factory

2020-09-07 Thread root
Hello community,

here is the log from the commit of package ghc-utf8-string for openSUSE:Factory 
checked in at 2020-09-07 22:04:22

Comparing /work/SRC/openSUSE:Factory/ghc-utf8-string (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-utf8-string.new.3399 (New)


Package is "ghc-utf8-string"

Mon Sep  7 22:04:22 2020 rev:13 rq:832334 version:1.0.1.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-utf8-string/ghc-utf8-string.changes  
2020-08-28 21:40:35.960870053 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-utf8-string.new.3399/ghc-utf8-string.changes
2020-09-07 22:04:26.194124191 +0200
@@ -1,0 +2,6 @@
+Mon Aug 31 09:34:33 UTC 2020 - psim...@suse.com
+
+- Update utf8-string to version 1.0.1.1 revision 3.
+  Upstream has revised the Cabal build instructions on Hackage.
+
+---



Other differences:
--



commit ghc-utf8-string for openSUSE:Factory

2020-08-28 Thread root
Hello community,

here is the log from the commit of package ghc-utf8-string for openSUSE:Factory 
checked in at 2020-08-28 21:40:33

Comparing /work/SRC/openSUSE:Factory/ghc-utf8-string (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-utf8-string.new.3399 (New)


Package is "ghc-utf8-string"

Fri Aug 28 21:40:33 2020 rev:12 rq:829476 version:1.0.1.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-utf8-string/ghc-utf8-string.changes  
2020-06-19 17:20:32.615394475 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-utf8-string.new.3399/ghc-utf8-string.changes
2020-08-28 21:40:35.960870053 +0200
@@ -1,0 +2,5 @@
+Tue Aug 18 10:46:29 UTC 2020 - Peter Simons 
+
+- Replace %setup -q with the more modern %autosetup macro.
+
+---



Other differences:
--
++ ghc-utf8-string.spec ++
--- /var/tmp/diff_new_pack.DfoSlK/_old  2020-08-28 21:40:36.512870256 +0200
+++ /var/tmp/diff_new_pack.DfoSlK/_new  2020-08-28 21:40:36.516870257 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-utf8-string
 #
-# Copyright (c) 2019 SUSE LLC
+# 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
@@ -45,7 +45,7 @@
 This package provides the Haskell %{pkg_name} library development files.
 
 %prep
-%setup -q -n %{pkg_name}-%{version}
+%autosetup -n %{pkg_name}-%{version}
 cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build




commit ghc-utf8-string for openSUSE:Factory

2020-06-19 Thread root
Hello community,

here is the log from the commit of package ghc-utf8-string for openSUSE:Factory 
checked in at 2020-06-19 17:20:28

Comparing /work/SRC/openSUSE:Factory/ghc-utf8-string (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-utf8-string.new.3606 (New)


Package is "ghc-utf8-string"

Fri Jun 19 17:20:28 2020 rev:11 rq:815210 version:1.0.1.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-utf8-string/ghc-utf8-string.changes  
2019-12-27 13:58:59.624821391 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-utf8-string.new.3606/ghc-utf8-string.changes
2020-06-19 17:20:32.615394475 +0200
@@ -1,0 +2,5 @@
+Tue Jun 16 11:14:48 UTC 2020 - Peter Simons 
+
+- Re-generate file with latest version of spec-cleaner.
+
+---



Other differences:
--
++ ghc-utf8-string.spec ++
--- /var/tmp/diff_new_pack.SsGzwX/_old  2020-06-19 17:20:33.975398049 +0200
+++ /var/tmp/diff_new_pack.SsGzwX/_new  2020-06-19 17:20:33.975398049 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-utf8-string
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed




commit ghc-utf8-string for openSUSE:Factory

2019-12-27 Thread root
Hello community,

here is the log from the commit of package ghc-utf8-string for openSUSE:Factory 
checked in at 2019-12-27 13:58:54

Comparing /work/SRC/openSUSE:Factory/ghc-utf8-string (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-utf8-string.new.6675 (New)


Package is "ghc-utf8-string"

Fri Dec 27 13:58:54 2019 rev:10 rq:759553 version:1.0.1.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-utf8-string/ghc-utf8-string.changes  
2018-10-25 09:06:58.346482367 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-utf8-string.new.6675/ghc-utf8-string.changes
2019-12-27 13:58:59.624821391 +0100
@@ -1,0 +2,5 @@
+Fri Nov  8 16:15:09 UTC 2019 - Peter Simons 
+
+- Drop obsolete group attributes.
+
+---



Other differences:
--
++ ghc-utf8-string.spec ++
--- /var/tmp/diff_new_pack.t6G4xT/_old  2019-12-27 13:59:00.092821617 +0100
+++ /var/tmp/diff_new_pack.t6G4xT/_new  2019-12-27 13:59:00.092821617 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-utf8-string
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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
@@ -22,7 +22,6 @@
 Release:0
 Summary:Support for reading and writing UTF8 Strings
 License:BSD-3-Clause
-Group:  Development/Libraries/Haskell
 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/3.cabal#/%{pkg_name}.cabal
@@ -37,7 +36,6 @@
 
 %package devel
 Summary:Haskell %{pkg_name} library development files
-Group:  Development/Libraries/Haskell
 Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
 Requires(post): ghc-compiler = %{ghc_version}




commit ghc-utf8-string for openSUSE:Factory

2018-10-25 Thread root
Hello community,

here is the log from the commit of package ghc-utf8-string for openSUSE:Factory 
checked in at 2018-10-25 09:06:55

Comparing /work/SRC/openSUSE:Factory/ghc-utf8-string (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-utf8-string.new (New)


Package is "ghc-utf8-string"

Thu Oct 25 09:06:55 2018 rev:9 rq:643486 version:1.0.1.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-utf8-string/ghc-utf8-string.changes  
2018-07-24 17:23:20.975373931 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-utf8-string.new/ghc-utf8-string.changes 
2018-10-25 09:06:58.346482367 +0200
@@ -1,0 +2,5 @@
+Sat Oct 20 11:32:12 UTC 2018 - Peter Simons 
+
+- Use https URL to refer to bugs.opensuse.org.
+
+---



Other differences:
--
++ ghc-utf8-string.spec ++
--- /var/tmp/diff_new_pack.mXl91q/_old  2018-10-25 09:06:58.782482106 +0200
+++ /var/tmp/diff_new_pack.mXl91q/_new  2018-10-25 09:06:58.782482106 +0200
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 




commit ghc-utf8-string for openSUSE:Factory

2018-07-24 Thread root
Hello community,

here is the log from the commit of package ghc-utf8-string for openSUSE:Factory 
checked in at 2018-07-24 17:23:18

Comparing /work/SRC/openSUSE:Factory/ghc-utf8-string (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-utf8-string.new (New)


Package is "ghc-utf8-string"

Tue Jul 24 17:23:18 2018 rev:8 rq:623890 version:1.0.1.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-utf8-string/ghc-utf8-string.changes  
2018-05-30 12:27:49.333197619 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-utf8-string.new/ghc-utf8-string.changes 
2018-07-24 17:23:20.975373931 +0200
@@ -1,0 +2,6 @@
+Wed Jul 18 14:26:47 UTC 2018 - psim...@suse.com
+
+- Cosmetic: replace tabs with blanks, strip trailing white space,
+  and update copyright headers with spec-cleaner.
+
+---



Other differences:
--
++ ghc-utf8-string.spec ++
--- /var/tmp/diff_new_pack.NybQFV/_old  2018-07-24 17:23:21.439374524 +0200
+++ /var/tmp/diff_new_pack.NybQFV/_new  2018-07-24 17:23:21.443374530 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-utf8-string
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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




commit ghc-utf8-string for openSUSE:Factory

2018-05-30 Thread root
Hello community,

here is the log from the commit of package ghc-utf8-string for openSUSE:Factory 
checked in at 2018-05-30 12:21:11

Comparing /work/SRC/openSUSE:Factory/ghc-utf8-string (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-utf8-string.new (New)


Package is "ghc-utf8-string"

Wed May 30 12:21:11 2018 rev:7 rq:609827 version:1.0.1.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-utf8-string/ghc-utf8-string.changes  
2017-09-15 22:22:33.393465586 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-utf8-string.new/ghc-utf8-string.changes 
2018-05-30 12:27:49.333197619 +0200
@@ -1,0 +2,7 @@
+Wed May 16 14:36:29 UTC 2018 - psim...@suse.com
+
+- Prefer the new %license attribute over %doc.
+- Update Cabal file to revision 3.
+  * add support for GHC 8.4.x
+
+---



Other differences:
--
++ ghc-utf8-string.spec ++
--- /var/tmp/diff_new_pack.34WnVn/_old  2018-05-30 12:27:50.001174144 +0200
+++ /var/tmp/diff_new_pack.34WnVn/_new  2018-05-30 12:27:50.005174004 +0200
@@ -25,7 +25,7 @@
 Group:  Development/Libraries/Haskell
 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
+Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/3.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-rpm-macros
@@ -63,7 +63,7 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%doc LICENSE
+%license LICENSE
 
 %files devel -f %{name}-devel.files
 %doc CHANGELOG.markdown

++ utf8-string.cabal ++
--- /var/tmp/diff_new_pack.34WnVn/_old  2018-05-30 12:27:50.053172316 +0200
+++ /var/tmp/diff_new_pack.34WnVn/_new  2018-05-30 12:27:50.057172175 +0200
@@ -1,6 +1,6 @@
 Name:   utf8-string
 Version:1.0.1.1
-x-revision: 2
+x-revision: 3
 Author: Eric Mertens
 Maintainer: emert...@galois.com
 License:BSD3
@@ -20,7 +20,7 @@
 library
   Ghc-options:-W -O2
 
-  build-depends: base >= 4.3 && < 4.11, bytestring >= 0.9
+  build-depends: base >= 4.3 && < 5, bytestring >= 0.9
 
   Extensions: CPP
   Exposed-modules:Codec.Binary.UTF8.String




commit ghc-utf8-string for openSUSE:Factory

2017-09-15 Thread root
Hello community,

here is the log from the commit of package ghc-utf8-string for openSUSE:Factory 
checked in at 2017-09-15 22:22:32

Comparing /work/SRC/openSUSE:Factory/ghc-utf8-string (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-utf8-string.new (New)


Package is "ghc-utf8-string"

Fri Sep 15 22:22:32 2017 rev:6 rq:525622 version:1.0.1.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-utf8-string/ghc-utf8-string.changes  
2017-06-04 01:55:49.598126871 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-utf8-string.new/ghc-utf8-string.changes 
2017-09-15 22:22:33.393465586 +0200
@@ -1,0 +2,5 @@
+Thu Aug  3 15:38:38 UTC 2017 - psim...@suse.com
+
+- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf.
+
+---



Other differences:
--
++ ghc-utf8-string.spec ++
--- /var/tmp/diff_new_pack.GPjZlS/_old  2017-09-15 22:22:34.33170 +0200
+++ /var/tmp/diff_new_pack.GPjZlS/_new  2017-09-15 22:22:34.337332606 +0200
@@ -22,14 +22,13 @@
 Release:0
 Summary:Support for reading and writing UTF8 Strings
 License:BSD-3-Clause
-Group:  Development/Languages/Other
-Url:https://hackage.haskell.org/package/%{pkg_name}
+Group:  Development/Libraries/Haskell
+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-bytestring-devel
 BuildRequires:  ghc-rpm-macros
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
 A UTF8 layer for Strings. The utf8-string package provides operations for
@@ -38,7 +37,7 @@
 
 %package devel
 Summary:Haskell %{pkg_name} library development files
-Group:  Development/Libraries/Other
+Group:  Development/Libraries/Haskell
 Requires:   %{name} = %{version}-%{release}
 Requires:   ghc-compiler = %{ghc_version}
 Requires(post): ghc-compiler = %{ghc_version}
@@ -64,11 +63,9 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%defattr(-,root,root,-)
 %doc LICENSE
 
 %files devel -f %{name}-devel.files
-%defattr(-,root,root,-)
 %doc CHANGELOG.markdown
 
 %changelog




commit ghc-utf8-string for openSUSE:Factory

2017-06-03 Thread root
Hello community,

here is the log from the commit of package ghc-utf8-string for openSUSE:Factory 
checked in at 2017-06-04 01:55:48

Comparing /work/SRC/openSUSE:Factory/ghc-utf8-string (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-utf8-string.new (New)


Package is "ghc-utf8-string"

Sun Jun  4 01:55:48 2017 rev:5 rq:494198 version:1.0.1.1

Changes:

--- /work/SRC/openSUSE:Factory/ghc-utf8-string/ghc-utf8-string.changes  
2016-07-20 09:24:47.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-utf8-string.new/ghc-utf8-string.changes 
2017-06-04 01:55:49.598126871 +0200
@@ -1,0 +2,5 @@
+Wed May  3 08:24:08 UTC 2017 - psim...@suse.com
+
+- Update to version 1.0.1.1 revision 2 with cabal2obs.
+
+---

Old:

  1.cabal

New:

  utf8-string.cabal



Other differences:
--
++ ghc-utf8-string.spec ++
--- /var/tmp/diff_new_pack.L5E0W1/_old  2017-06-04 01:55:51.329882210 +0200
+++ /var/tmp/diff_new_pack.L5E0W1/_new  2017-06-04 01:55:51.333881646 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-utf8-string
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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
@@ -22,16 +22,14 @@
 Release:0
 Summary:Support for reading and writing UTF8 Strings
 License:BSD-3-Clause
-Group:  System/Libraries
+Group:  Development/Languages/Other
 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
+Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
-# Begin cabal-rpm deps:
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-rpm-macros
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-# End cabal-rpm deps
 
 %description
 A UTF8 layer for Strings. The utf8-string package provides operations for
@@ -53,15 +51,12 @@
 %setup -q -n %{pkg_name}-%{version}
 cp -p %{SOURCE1} %{pkg_name}.cabal
 
-
 %build
 %ghc_lib_build
 
-
 %install
 %ghc_lib_install
 
-
 %post devel
 %ghc_pkg_recache
 

++ utf8-string.cabal ++
Name:   utf8-string
Version:1.0.1.1
x-revision: 2
Author: Eric Mertens
Maintainer: emert...@galois.com
License:BSD3
License-file:   LICENSE
Homepage:   http://github.com/glguy/utf8-string/
Synopsis:   Support for reading and writing UTF8 Strings
Description:A UTF8 layer for Strings. The utf8-string
package provides operations for encoding UTF8
strings to Word8 lists and back, and for reading and
writing UTF8 without truncation.
Category:   Codec
Build-type: Simple
cabal-version:  >= 1.2
Extra-Source-Files: CHANGELOG.markdown
Tested-With:GHC==7.0.4, GHC==7.4.2, GHC==7.6.3, GHC==7.8.4, GHC==7.10.2

library
  Ghc-options:-W -O2

  build-depends: base >= 4.3 && < 4.11, bytestring >= 0.9

  Extensions: CPP
  Exposed-modules:Codec.Binary.UTF8.String
  Codec.Binary.UTF8.Generic
  Data.String.UTF8
  Data.ByteString.UTF8
  Data.ByteString.Lazy.UTF8



commit ghc-utf8-string for openSUSE:Factory

2016-07-20 Thread h_root
Hello community,

here is the log from the commit of package ghc-utf8-string for openSUSE:Factory 
checked in at 2016-07-20 09:24:46

Comparing /work/SRC/openSUSE:Factory/ghc-utf8-string (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-utf8-string.new (New)


Package is "ghc-utf8-string"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-utf8-string/ghc-utf8-string.changes  
2015-09-02 00:36:13.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-utf8-string.new/ghc-utf8-string.changes 
2016-07-20 09:24:47.0 +0200
@@ -1,0 +2,5 @@
+Sun Jul 10 16:54:38 UTC 2016 - psim...@suse.com
+
+- Update to version 1.0.1.1 revision 1 with cabal2obs.
+
+---

Old:

  _service

New:

  1.cabal



Other differences:
--
++ ghc-utf8-string.spec ++
--- /var/tmp/diff_new_pack.6ppMSB/_old  2016-07-20 09:24:48.0 +0200
+++ /var/tmp/diff_new_pack.6ppMSB/_new  2016-07-20 09:24:48.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-utf8-string
 #
-# 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
@@ -17,52 +17,51 @@
 
 
 %global pkg_name utf8-string
-
-Name:   ghc-utf8-string
+Name:   ghc-%{pkg_name}
 Version:1.0.1.1
 Release:0
 Summary:Support for reading and writing UTF8 Strings
 License:BSD-3-Clause
 Group:  System/Libraries
-
-Url:http://hackage.haskell.org/package/%{pkg_name}
-Source0:
http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-
+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
 BuildRequires:  ghc-Cabal-devel
+# Begin cabal-rpm deps:
+BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-rpm-macros
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+# End cabal-rpm deps
 
 %description
-A UTF8 layer for IO and Strings. The utf8-string
-package provides operations for encoding UTF8
-strings to Word8 lists and back, and for reading and
-writing UTF8 without truncation.
-
+A UTF8 layer for Strings. The utf8-string package provides operations for
+encoding UTF8 strings to Word8 lists and back, and for reading and writing UTF8
+without truncation.
 
 %package devel
 Summary:Haskell %{pkg_name} library development files
 Group:  Development/Libraries/Other
-Requires:   ghc-compiler
-Requires(post): ghc-compiler
-Requires(postun): ghc-compiler
 Requires:   %{name} = %{version}-%{release}
+Requires:   ghc-compiler = %{ghc_version}
+Requires(post): ghc-compiler = %{ghc_version}
+Requires(postun): ghc-compiler = %{ghc_version}
 
 %description devel
-A UTF8 layer for Strings. The utf8-string
-package provides operations for encoding UTF8
-strings to Word8 lists and back, and for reading and
-writing UTF8 without truncation.
-
+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
 
+
 %post devel
 %ghc_pkg_recache
 
@@ -75,5 +74,6 @@
 
 %files devel -f %{name}-devel.files
 %defattr(-,root,root,-)
+%doc CHANGELOG.markdown
 
 %changelog

++ 1.cabal ++
Name:   utf8-string
Version:1.0.1.1
x-revision: 1
Author: Eric Mertens
Maintainer: emert...@galois.com
License:BSD3
License-file:   LICENSE
Homepage:   http://github.com/glguy/utf8-string/
Synopsis:   Support for reading and writing UTF8 Strings
Description:A UTF8 layer for Strings. The utf8-string
package provides operations for encoding UTF8
strings to Word8 lists and back, and for reading and
writing UTF8 without truncation.
Category:   Codec
Build-type: Simple
cabal-version:  >= 1.2
Extra-Source-Files: CHANGELOG.markdown
Tested-With:GHC==7.0.4, GHC==7.4.2, GHC==7.6.3, GHC==7.8.4, GHC==7.10.2

library
  Ghc-options:-W -O2

  build-depends: base >= 4.3 && < 4.10, bytestring >= 0.9

  Extensions: CPP
  Exposed-modules:Codec.Binary.UTF8.String
  Codec.Binary.UTF8.Generic
  Data.String.UTF8
  

commit ghc-utf8-string for openSUSE:Factory

2015-09-01 Thread h_root
Hello community,

here is the log from the commit of package ghc-utf8-string for openSUSE:Factory 
checked in at 2015-09-02 00:36:12

Comparing /work/SRC/openSUSE:Factory/ghc-utf8-string (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-utf8-string.new (New)


Package is "ghc-utf8-string"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-utf8-string/ghc-utf8-string.changes  
2015-08-27 08:56:49.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-utf8-string.new/ghc-utf8-string.changes 
2015-09-02 00:36:13.0 +0200
@@ -1,0 +2,6 @@
+Mon Aug 31 08:20:53 UTC 2015 - mimi...@gmail.com
+
+- update to 1.0.1.1
+* fix build under older GHC
+
+---

Old:

  utf8-string-1.0.1.tar.gz

New:

  utf8-string-1.0.1.1.tar.gz



Other differences:
--
++ ghc-utf8-string.spec ++
--- /var/tmp/diff_new_pack.Gnp6LQ/_old  2015-09-02 00:36:14.0 +0200
+++ /var/tmp/diff_new_pack.Gnp6LQ/_new  2015-09-02 00:36:14.0 +0200
@@ -19,7 +19,7 @@
 %global pkg_name utf8-string
 
 Name:   ghc-utf8-string
-Version:1.0.1
+Version:1.0.1.1
 Release:0
 Summary:Support for reading and writing UTF8 Strings
 License:BSD-3-Clause

++ utf8-string-1.0.1.tar.gz -> utf8-string-1.0.1.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/utf8-string-1.0.1/CHANGELOG.markdown 
new/utf8-string-1.0.1.1/CHANGELOG.markdown
--- old/utf8-string-1.0.1/CHANGELOG.markdown2015-08-22 00:38:06.0 
+0200
+++ new/utf8-string-1.0.1.1/CHANGELOG.markdown  2015-08-23 18:19:40.0 
+0200
@@ -1,3 +1,7 @@
+1.0.1.1
+-
+* Build correctly on GHC-7.0 (#14)
+
 1.0.1
 -
 * Improve the performance of Data.ByteString.Lazy.UTF8.fromString. (Thanks, 
ndmitchell)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/utf8-string-1.0.1/Data/ByteString/Lazy/UTF8.hs 
new/utf8-string-1.0.1.1/Data/ByteString/Lazy/UTF8.hs
--- old/utf8-string-1.0.1/Data/ByteString/Lazy/UTF8.hs  2015-08-22 
00:38:06.0 +0200
+++ new/utf8-string-1.0.1.1/Data/ByteString/Lazy/UTF8.hs2015-08-23 
18:19:40.0 +0200
@@ -46,11 +46,16 @@
 import qualified Data.ByteString.Lazy as B
 import qualified Data.ByteString.Lazy.Internal as B
 import qualified Data.ByteString.Internal as S
-import System.IO.Unsafe
 import Prelude hiding (take,drop,splitAt,span,break,foldr,foldl,length,lines)
 
 import Codec.Binary.UTF8.Generic (buncons)
 
+#if MIN_VERSION_base(4,4,0)
+import System.IO.Unsafe (unsafeDupablePerformIO)
+#else
+import GHC.IO (unsafeDupablePerformIO)
+#endif
+
 -
 -- ENCODING
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/utf8-string-1.0.1/utf8-string.cabal 
new/utf8-string-1.0.1.1/utf8-string.cabal
--- old/utf8-string-1.0.1/utf8-string.cabal 2015-08-22 00:38:06.0 
+0200
+++ new/utf8-string-1.0.1.1/utf8-string.cabal   2015-08-23 18:19:40.0 
+0200
@@ -1,5 +1,5 @@
 Name:   utf8-string
-Version:1.0.1
+Version:1.0.1.1
 Author: Eric Mertens
 Maintainer: emert...@galois.com
 License:BSD3
@@ -14,6 +14,7 @@
 Build-type: Simple
 cabal-version:  >= 1.2
 Extra-Source-Files: CHANGELOG.markdown
+Tested-With:GHC==7.0.4, GHC==7.4.2, GHC==7.6.3, GHC==7.8.4, GHC==7.10.2
 
 library
   Ghc-options:-W -O2




commit ghc-utf8-string for openSUSE:Factory

2015-08-27 Thread h_root
Hello community,

here is the log from the commit of package ghc-utf8-string for openSUSE:Factory 
checked in at 2015-08-27 08:56:48

Comparing /work/SRC/openSUSE:Factory/ghc-utf8-string (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-utf8-string.new (New)


Package is ghc-utf8-string

Changes:

--- /work/SRC/openSUSE:Factory/ghc-utf8-string/ghc-utf8-string.changes  
2015-05-27 12:42:55.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-utf8-string.new/ghc-utf8-string.changes 
2015-08-27 08:56:49.0 +0200
@@ -1,0 +2,6 @@
+Sun Aug 23 17:53:57 UTC 2015 - mimi...@gmail.com
+
+- update to 1.0.1
+* Improve the performance of Data.ByteString.Lazy.UTF8.fromString.
+
+---

Old:

  utf8-string-1.tar.gz

New:

  utf8-string-1.0.1.tar.gz



Other differences:
--
++ ghc-utf8-string.spec ++
--- /var/tmp/diff_new_pack.qHheNC/_old  2015-08-27 08:56:49.0 +0200
+++ /var/tmp/diff_new_pack.qHheNC/_new  2015-08-27 08:56:49.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-utf8-string
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 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
@@ -19,14 +19,14 @@
 %global pkg_name utf8-string
 
 Name:   ghc-utf8-string
-Version:1
+Version:1.0.1
 Release:0
 Summary:Support for reading and writing UTF8 Strings
 License:BSD-3-Clause
 Group:  System/Libraries
 
 Url:http://hackage.haskell.org/package/%{pkg_name}
-Source0:
http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
+Source0:
http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 BuildRequires:  ghc-Cabal-devel

++ utf8-string-1.tar.gz - utf8-string-1.0.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/utf8-string-1/CHANGELOG.markdown 
new/utf8-string-1.0.1/CHANGELOG.markdown
--- old/utf8-string-1/CHANGELOG.markdown2015-01-23 02:51:29.0 
+0100
+++ new/utf8-string-1.0.1/CHANGELOG.markdown2015-08-22 00:38:06.0 
+0200
@@ -1,3 +1,7 @@
+1.0.1
+-
+* Improve the performance of Data.ByteString.Lazy.UTF8.fromString. (Thanks, 
ndmitchell)
+
 1
 -
 * Remove out all the old utf8 IO support. GHC supports utf8 now.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/utf8-string-1/Data/ByteString/Lazy/UTF8.hs 
new/utf8-string-1.0.1/Data/ByteString/Lazy/UTF8.hs
--- old/utf8-string-1/Data/ByteString/Lazy/UTF8.hs  2015-01-23 
02:51:29.0 +0100
+++ new/utf8-string-1.0.1/Data/ByteString/Lazy/UTF8.hs  2015-08-22 
00:38:06.0 +0200
@@ -38,15 +38,62 @@
 import Data.Bits
 import Data.Word
 import Data.Int
+import Foreign.Storable
+import Foreign.Ptr
+import Foreign.ForeignPtr
+import Data.Char(ord)
+import Control.Exception(assert)
 import qualified Data.ByteString.Lazy as B
+import qualified Data.ByteString.Lazy.Internal as B
+import qualified Data.ByteString.Internal as S
+import System.IO.Unsafe
 import Prelude hiding (take,drop,splitAt,span,break,foldr,foldl,length,lines)
 
-import Codec.Binary.UTF8.String(encode)
 import Codec.Binary.UTF8.Generic (buncons)
 
+-
+-- ENCODING
+
 -- | Converts a Haskell string into a UTF8 encoded bytestring.
 fromString :: String - B.ByteString
-fromString xs = B.pack (encode xs)
+fromString []  = B.empty
+fromString xs0 = packChunks 32 xs0
+  where
+packChunks n xs = case packUptoLenBytes n xs of
+(bs, [] ) - B.chunk bs B.Empty
+(bs, xs') - B.Chunk bs (packChunks (min (n * 2) B.smallChunkSize) xs')
+
+packUptoLenBytes :: Int - String - (S.ByteString, String)
+packUptoLenBytes len xs = unsafeCreateUptoN' len $ \ptr - do
+(end, xs') - go ptr (ptr `plusPtr` (len-4)) xs
+return (end `minusPtr` ptr, xs')
+
+-- end is the last position at which you can write a whole 4 byte sequence 
safely
+go :: Ptr Word8 - Ptr Word8 - String - IO (Ptr Word8, String)
+go !ptr !end xs | ptr  end = return (ptr, xs)
+go !ptr !_   [] = return (ptr, [])
+go !ptr !end (x:xs)
+| x = '\x7f' = poke ptr (S.c2w x)  go (plusPtr ptr 1) end xs
+| otherwise = case ord x of
+oc | oc = 0x7ff - do
+poke ptr $ fromIntegral $ 0xc0 + (oc `shiftR` 6)
+