Hello community,

here is the log from the commit of package ghc-email-validate for 
openSUSE:Factory checked in at 2016-07-20 09:27:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-email-validate (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-email-validate.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-email-validate"

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-email-validate/ghc-email-validate.changes    
2015-12-09 22:17:04.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-email-validate.new/ghc-email-validate.changes   
    2016-07-20 09:27:06.000000000 +0200
@@ -1,0 +2,5 @@
+Sun Jul 10 17:22:29 UTC 2016 - [email protected]
+
+- Update to version 2.2.0 revision 0 with cabal2obs.
+
+-------------------------------------------------------------------

Old:
----
  email-validate-2.1.3.tar.gz

New:
----
  email-validate-2.2.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-email-validate.spec ++++++
--- /var/tmp/diff_new_pack.FopxOZ/_old  2016-07-20 09:27:08.000000000 +0200
+++ /var/tmp/diff_new_pack.FopxOZ/_new  2016-07-20 09:27:08.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-email-validate
 #
-# 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,25 +17,21 @@
 
 
 %global pkg_name email-validate
-
 %bcond_with tests
-
-Name:           ghc-email-validate
-Version:        2.1.3
+Name:           ghc-%{pkg_name}
+Version:        2.2.0
 Release:        0
 Summary:        Validating an email address string against RFC 5322
 License:        BSD-3-Clause
 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-attoparsec-devel
 BuildRequires:  ghc-bytestring-devel
+BuildRequires:  ghc-rpm-macros
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-HUnit-devel
 BuildRequires:  ghc-QuickCheck-devel
@@ -48,19 +44,17 @@
 %description
 Validating an email address string against RFC 5322.
 
-
 %package devel
 Summary:        Haskell %{pkg_name} library development files
 Group:          Development/Libraries/Other
+Requires:       %{name} = %{version}-%{release}
 Requires:       ghc-compiler = %{ghc_version}
 Requires(post): ghc-compiler = %{ghc_version}
 Requires(postun): ghc-compiler = %{ghc_version}
-Requires:       %{name} = %{version}-%{release}
 
 %description devel
 This package provides the Haskell %{pkg_name} library development files.
 
-
 %prep
 %setup -q -n %{pkg_name}-%{version}
 sed -i 's/\r//' LICENSE
@@ -68,14 +62,17 @@
 %build
 %ghc_lib_build
 
+
 %install
 %ghc_lib_install
 
+
 %check
 %if %{with tests}
-%cabal test
+%{cabal} test
 %endif
 
+
 %post devel
 %ghc_pkg_recache
 

++++++ email-validate-2.1.3.tar.gz -> email-validate-2.2.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/email-validate-2.1.3/email-validate.cabal 
new/email-validate-2.2.0/email-validate.cabal
--- old/email-validate-2.1.3/email-validate.cabal       2015-05-29 
07:08:43.000000000 +0200
+++ new/email-validate-2.2.0/email-validate.cabal       2016-01-14 
21:58:59.000000000 +0100
@@ -1,5 +1,5 @@
 name:           email-validate
-version:        2.1.3
+version:        2.2.0
 license:        BSD3
 license-file:   LICENSE
 author:         George Pollard <[email protected]>
@@ -19,7 +19,7 @@
 source-repository this
     type: git
     location: git://github.com/Porges/email-validate-hs.git
-    tag: v2.1.3
+    tag: v2.2.0
 
 library
     build-depends:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/email-validate-2.1.3/src/Text/Email/Parser.hs 
new/email-validate-2.2.0/src/Text/Email/Parser.hs
--- old/email-validate-2.1.3/src/Text/Email/Parser.hs   2015-05-29 
07:08:43.000000000 +0200
+++ new/email-validate-2.2.0/src/Text/Email/Parser.hs   2016-01-14 
21:55:22.000000000 +0100
@@ -5,6 +5,7 @@
     , localPart
     , domainPart
     , EmailAddress
+    , unsafeEmailAddress
     , toByteString
     )
 where
@@ -25,6 +26,13 @@
 data EmailAddress = EmailAddress ByteString ByteString
     deriving (Eq, Ord, Data, Typeable, Generic)
 
+-- | Creates an email address without validating it.
+--   You should only use this when reading data from
+--   somewhere it has already been validated (e.g. a
+--   database).
+unsafeEmailAddress :: ByteString -> ByteString -> EmailAddress
+unsafeEmailAddress = EmailAddress
+
 instance Show EmailAddress where
     show = show . toByteString
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/email-validate-2.1.3/src/Text/Email/Validate.hs 
new/email-validate-2.2.0/src/Text/Email/Validate.hs
--- old/email-validate-2.1.3/src/Text/Email/Validate.hs 2015-05-29 
07:08:43.000000000 +0200
+++ new/email-validate-2.2.0/src/Text/Email/Validate.hs 2016-01-14 
21:57:18.000000000 +0100
@@ -1,21 +1,23 @@
 module Text.Email.Validate
-       ( isValid
-       , validate
-       , emailAddress
-       , canonicalizeEmail
-       , EmailAddress -- re-exported
-       , localPart
-       , domainPart
-       , toByteString
-       )
+        ( isValid
+        , validate
+        , emailAddress
+        , canonicalizeEmail
+        , EmailAddress -- re-exported
+        , unsafeEmailAddress
+        , localPart
+        , domainPart
+        , toByteString
+        )
 where
 
-import Control.Applicative ((<*))
+import           Control.Applicative        ((<*))
 
-import Data.ByteString (ByteString)
-import Data.Attoparsec.ByteString (parseOnly, endOfInput)
+import           Data.Attoparsec.ByteString (endOfInput, parseOnly)
+import           Data.ByteString            (ByteString)
 
-import Text.Email.Parser (EmailAddress, toByteString, addrSpec, localPart, 
domainPart)
+import           Text.Email.Parser          (EmailAddress(..), addrSpec, 
domainPart,
+                                             localPart, toByteString, 
unsafeEmailAddress)
 
 -- | Smart constructor for an email address
 emailAddress :: ByteString -> Maybe EmailAddress


Reply via email to