commit ghc-unix-time for openSUSE:Factory

2020-08-28 Thread root
Hello community,

here is the log from the commit of package ghc-unix-time for openSUSE:Factory 
checked in at 2020-08-28 21:40:19

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


Package is "ghc-unix-time"

Fri Aug 28 21:40:19 2020 rev:16 rq:829471 version:0.4.7

Changes:

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



Other differences:
--
++ ghc-unix-time.spec ++
--- /var/tmp/diff_new_pack.58S0sq/_old  2020-08-28 21:40:24.268865746 +0200
+++ /var/tmp/diff_new_pack.58S0sq/_new  2020-08-28 21:40:24.272865747 +0200
@@ -51,7 +51,7 @@
 This package provides the Haskell %{pkg_name} library development files.
 
 %prep
-%setup -q -n %{pkg_name}-%{version}
+%autosetup -n %{pkg_name}-%{version}
 
 %build
 %ghc_lib_build




commit ghc-unix-time for openSUSE:Factory

2020-06-19 Thread root
Hello community,

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

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


Package is "ghc-unix-time"

Fri Jun 19 17:20:19 2020 rev:15 rq:815206 version:0.4.7

Changes:

--- /work/SRC/openSUSE:Factory/ghc-unix-time/ghc-unix-time.changes  
2019-12-27 13:58:51.360817397 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-unix-time.new.3606/ghc-unix-time.changes
2020-06-19 17:20:20.311362140 +0200
@@ -2 +2 @@
-Fri Nov  8 16:15:07 UTC 2019 - Peter Simons 
+Tue Jun  9 09:26:15 UTC 2020 - psim...@suse.com
@@ -4 +4 @@
-- Drop obsolete group attributes.
+- Add unix-time at version 0.4.7.
@@ -6,77 +5,0 @@

-Wed Jun 19 11:46:01 UTC 2019 - psim...@suse.com
-
-- Update unix-time to version 0.4.7.
-  Upstream does not provide a change log file.
-

-Fri Jun 14 02:03:26 UTC 2019 - psim...@suse.com
-
-- Update unix-time to version 0.4.6.
-  Upstream does not provide a change log file.
-

-Wed Jan 23 03:02:22 UTC 2019 - psim...@suse.com
-
-- Update unix-time to version 0.4.5.
-  Upstream does not provide a change log file.
-

-Tue Dec 25 03:01:39 UTC 2018 - psim...@suse.com
-
-- Update unix-time to version 0.4.4.
-  Upstream does not provide a change log file.
-

-Wed Dec 19 13:56:10 UTC 2018 - psim...@suse.com
-
-- Update unix-time to version 0.4.3.
-  Upstream does not provide a change log file.
-

-Thu Dec 13 03:01:41 UTC 2018 - psim...@suse.com
-
-- Update unix-time to version 0.4.0.
-  Upstream does not provide a change log file.
-

-Sat Oct 20 11:32:11 UTC 2018 - Peter Simons 
-
-- Use https URL to refer to bugs.opensuse.org.
-

-Wed Jul 18 14:26:46 UTC 2018 - psim...@suse.com
-
-- Cosmetic: replace tabs with blanks, strip trailing white space,
-  and update copyright headers with spec-cleaner.
-

-Mon May 14 17:02:11 UTC 2018 - psim...@suse.com
-
-- Update unix-time to version 0.3.8.
-  Upstream does not provide a changelog.
-

-Thu Aug  3 15:38:38 UTC 2017 - psim...@suse.com
-
-- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf.
-

-Thu Sep 15 06:42:12 UTC 2016 - psim...@suse.com
-
-- Update to version 0.3.7 revision 0 with cabal2obs.
-

-Sun Jul 10 17:29:14 UTC 2016 - psim...@suse.com
-
-- Update to version 0.3.6 revision 0 with cabal2obs.
-

-Sun Oct 18 14:54:48 UTC 2015 - mimi...@gmail.com
-
-- update to 0.3.6
-

-Fri Apr 24 18:21:51 UTC 2015 - mimi...@gmail.com
-
-- initial commit



Other differences:
--
++ ghc-unix-time.spec ++
--- /var/tmp/diff_new_pack.QJ2Ger/_old  2020-06-19 17:20:20.943363800 +0200
+++ /var/tmp/diff_new_pack.QJ2Ger/_new  2020-06-19 17:20:20.943363800 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-unix-time
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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




commit ghc-unix-time for openSUSE:Factory

2019-12-27 Thread root
Hello community,

here is the log from the commit of package ghc-unix-time for openSUSE:Factory 
checked in at 2019-12-27 13:58:49

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


Package is "ghc-unix-time"

Fri Dec 27 13:58:49 2019 rev:14 rq:759549 version:0.4.7

Changes:

--- /work/SRC/openSUSE:Factory/ghc-unix-time/ghc-unix-time.changes  
2019-06-30 10:21:49.219649931 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-unix-time.new.6675/ghc-unix-time.changes
2019-12-27 13:58:51.360817397 +0100
@@ -1,0 +2,5 @@
+Fri Nov  8 16:15:07 UTC 2019 - Peter Simons 
+
+- Drop obsolete group attributes.
+
+---



Other differences:
--
++ ghc-unix-time.spec ++
--- /var/tmp/diff_new_pack.LRLxzL/_old  2019-12-27 13:58:52.576817985 +0100
+++ /var/tmp/diff_new_pack.LRLxzL/_new  2019-12-27 13:58:52.580817987 +0100
@@ -23,7 +23,6 @@
 Release:0
 Summary:Unix time parser/formatter and utilities
 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
 BuildRequires:  ghc-Cabal-devel
@@ -43,7 +42,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-unix-time for openSUSE:Factory

2019-06-30 Thread root
Hello community,

here is the log from the commit of package ghc-unix-time for openSUSE:Factory 
checked in at 2019-06-30 10:21:48

Comparing /work/SRC/openSUSE:Factory/ghc-unix-time (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-unix-time.new.4615 (New)


Package is "ghc-unix-time"

Sun Jun 30 10:21:48 2019 rev:13 rq:712507 version:0.4.7

Changes:

--- /work/SRC/openSUSE:Factory/ghc-unix-time/ghc-unix-time.changes  
2019-06-19 21:13:07.514784761 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-unix-time.new.4615/ghc-unix-time.changes
2019-06-30 10:21:49.219649931 +0200
@@ -1,0 +2,6 @@
+Wed Jun 19 11:46:01 UTC 2019 - psim...@suse.com
+
+- Update unix-time to version 0.4.7.
+  Upstream does not provide a change log file.
+
+---

Old:

  unix-time-0.4.6.tar.gz

New:

  unix-time-0.4.7.tar.gz



Other differences:
--
++ ghc-unix-time.spec ++
--- /var/tmp/diff_new_pack.Wmsf97/_old  2019-06-30 10:21:50.735652286 +0200
+++ /var/tmp/diff_new_pack.Wmsf97/_new  2019-06-30 10:21:50.735652286 +0200
@@ -19,7 +19,7 @@
 %global pkg_name unix-time
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.4.6
+Version:0.4.7
 Release:0
 Summary:Unix time parser/formatter and utilities
 License:BSD-3-Clause

++ unix-time-0.4.6.tar.gz -> unix-time-0.4.7.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.4.6/Data/UnixTime/Conv.hs 
new/unix-time-0.4.7/Data/UnixTime/Conv.hs
--- old/unix-time-0.4.6/Data/UnixTime/Conv.hs   2019-06-13 05:15:06.0 
+0200
+++ new/unix-time-0.4.7/Data/UnixTime/Conv.hs   2019-06-18 09:45:05.0 
+0200
@@ -71,6 +71,7 @@
 -- This is a wrapper for strftime_l().
 -- 'utMicroSeconds' is ignored.
 -- The result depends on the TZ environment variable.
+--
 
 formatUnixTime :: Format -> UnixTime -> IO ByteString
 formatUnixTime fmt t =
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.4.6/cbits/conv.c 
new/unix-time-0.4.7/cbits/conv.c
--- old/unix-time-0.4.6/cbits/conv.c2019-06-13 05:15:06.0 +0200
+++ new/unix-time-0.4.7/cbits/conv.c2019-06-18 09:45:05.0 +0200
@@ -50,7 +50,7 @@
 char *tz;
 tz = getenv("TZ");
 #if defined(_WIN32)
-_patch_setenv("TZ", "", 1);
+_patch_setenv("TZ", "UTC", 1);
 #else
 setenv("TZ", "", 1);
 #endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.4.6/cbits/strftime.c 
new/unix-time-0.4.7/cbits/strftime.c
--- old/unix-time-0.4.6/cbits/strftime.c2019-06-13 05:15:06.0 
+0200
+++ new/unix-time-0.4.7/cbits/strftime.c2019-06-18 09:45:05.0 
+0200
@@ -522,7 +522,8 @@
 #ifdef ALTZONE
diff = -altzone;
 #else /* !defined ALTZONE */
-   continue;
+   // Fix the daylight saving time, see 
#54.
+   diff = -(_timezone - 3600 * 
t->tm_isdst);
 #endif /* !defined ALTZONE */
 #endif /* !defined TM_GMTOFF */
if (diff < 0) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.4.6/cbits/win_patch.c 
new/unix-time-0.4.7/cbits/win_patch.c
--- old/unix-time-0.4.6/cbits/win_patch.c   2019-06-13 05:15:06.0 
+0200
+++ new/unix-time-0.4.7/cbits/win_patch.c   2019-06-18 09:45:05.0 
+0200
@@ -100,18 +100,26 @@
 };
 
 
-int _patch_setenv(const char *var, const char *val, int ovr) {
-BOOL b = SetEnvironmentVariableA(var, val);
-if (b) {
-return 0;
-} else {
-return 1;
+int _patch_setenv(const char *var, const char *val, int _ovr) {
+if (val == NULL) {
+return _patch_unsetenv(var);
 }
+int varlen = strlen(var);
+int vallen = strlen(val);
+int len = varlen + vallen + 2;
+char *sname = (char *)malloc(len);
+strcpy(sname, var);
+sname[varlen] = '=';
+strcpy(sname + varlen + 1, val);
+sname[varlen + vallen + 1] = '\0';
+int r = _putenv(sname);
+free(sname);
+return r;
 }
 
 int _patch_unsetenv(const char *name) {
-int len = strlen(name);
-char *sname = (char *)malloc(len + 2);
+int len = strlen(name) + 2;
+char *sname = (char *)malloc(len);
 strcpy(sname, name);
 sname[len] = '=';
 sname[len + 1] = '\0';
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.4.6/unix-time.cabal 
new/unix-time-0.4.7/unix-time.cabal
--- old/unix-time-0.4.6/unix-time.cabal 2019-06-13 

commit ghc-unix-time for openSUSE:Factory

2019-06-19 Thread root
Hello community,

here is the log from the commit of package ghc-unix-time for openSUSE:Factory 
checked in at 2019-06-19 21:12:17

Comparing /work/SRC/openSUSE:Factory/ghc-unix-time (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-unix-time.new.4811 (New)


Package is "ghc-unix-time"

Wed Jun 19 21:12:17 2019 rev:12 rq:710646 version:0.4.6

Changes:

--- /work/SRC/openSUSE:Factory/ghc-unix-time/ghc-unix-time.changes  
2019-02-17 12:20:37.204212455 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-unix-time.new.4811/ghc-unix-time.changes
2019-06-19 21:13:07.514784761 +0200
@@ -1,0 +2,6 @@
+Fri Jun 14 02:03:26 UTC 2019 - psim...@suse.com
+
+- Update unix-time to version 0.4.6.
+  Upstream does not provide a change log file.
+
+---

Old:

  unix-time-0.4.5.tar.gz

New:

  unix-time-0.4.6.tar.gz



Other differences:
--
++ ghc-unix-time.spec ++
--- /var/tmp/diff_new_pack.izzBEU/_old  2019-06-19 21:13:07.982785216 +0200
+++ /var/tmp/diff_new_pack.izzBEU/_new  2019-06-19 21:13:07.986785220 +0200
@@ -19,7 +19,7 @@
 %global pkg_name unix-time
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.4.5
+Version:0.4.6
 Release:0
 Summary:Unix time parser/formatter and utilities
 License:BSD-3-Clause

++ unix-time-0.4.5.tar.gz -> unix-time-0.4.6.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.4.5/Data/UnixTime/Sys.hsc 
new/unix-time-0.4.6/Data/UnixTime/Sys.hsc
--- old/unix-time-0.4.5/Data/UnixTime/Sys.hsc   2019-01-22 04:43:00.0 
+0100
+++ new/unix-time-0.4.6/Data/UnixTime/Sys.hsc   2019-06-13 05:15:06.0 
+0200
@@ -26,6 +26,4 @@
 getUnixTime :: IO UnixTime
 getUnixTime = allocaBytes (#const sizeof(struct timeval)) $ \ p_timeval -> do
 throwErrnoIfMinus1_ "getClockTime" $ c_gettimeofday p_timeval nullPtr
-sec  <- (#peek struct timeval,tv_sec)  p_timeval
-usec <- (#peek struct timeval,tv_usec) p_timeval
-return $ UnixTime sec usec
+peek (castPtr p_timeval)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.4.5/cbits/config.h.in 
new/unix-time-0.4.6/cbits/config.h.in
--- old/unix-time-0.4.5/cbits/config.h.in   2019-01-22 04:43:00.0 
+0100
+++ new/unix-time-0.4.6/cbits/config.h.in   2019-06-13 05:15:06.0 
+0200
@@ -21,6 +21,12 @@
 /* Define to 1 if you have the `strptime_l' function. */
 #undef HAVE_STRPTIME_L
 
+/* Define to 1 if you have the `strtoll_l' function. */
+#undef HAVE_STRTOLL_L
+
+/* Define to 1 if you have the `strtol_l' function. */
+#undef HAVE_STRTOL_L
+
 /* Define to 1 if you have the  header file. */
 #undef HAVE_SYS_STAT_H
 
@@ -30,27 +36,39 @@
 /* Define to 1 if you have the `timegm' function. */
 #undef HAVE_TIMEGM
 
-/* Define to 1 if you have the `_mkgmtime' function. */
-#undef HAVE__MKGMTIME
+/* Define to 1 if you have the  header file. */
+#undef HAVE_UNISTD_H
+
+/* Define to 1 if you have the  header file. */
+#undef HAVE_XLOCALE_H
+
+/* Define to 1 if you have the `_create_locale' function. */
+#undef HAVE__CREATE_LOCALE
 
 /* Define to 1 if you have the `_get_current_locale' function. */
 #undef HAVE__GET_CURRENT_LOCALE
 
-/* Define to 1 if you have the `strtol_l' function. */
-#undef HAVE_STRTOL_L
+/* Define to 1 if you have the `_isblank_l' function. */
+#undef HAVE__ISBLANK_L
 
-/* Define to 1 if you have the `strtoll_l' function. */
-#undef HAVE_STRTOLL_L
+/* Define to 1 if you have the `_isdigit_l' function. */
+#undef HAVE__ISDIGIT_L
 
-/* Define to 1 if you have the  header file. */
-#undef HAVE_UNISTD_H
+/* Define to 1 if you have the `_isspace_l' function. */
+#undef HAVE__ISSPACE_L
 
-/* Define to 1 if you have the  header file. */
-#undef HAVE_XLOCALE_H
+/* Define to 1 if you have the `_isupper_l' function. */
+#undef HAVE__ISUPPER_L
+
+/* Define to 1 if you have the `_mkgmtime' function. */
+#undef HAVE__MKGMTIME
 
 /* "Is Linux" */
 #undef IS_LINUX
 
+/* "Is Windows NT 6.1" */
+#undef IS_NT61
+
 /* Define to the address where bug reports for this package should be sent. */
 #undef PACKAGE_BUGREPORT
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.4.5/cbits/strftime.c 
new/unix-time-0.4.6/cbits/strftime.c
--- old/unix-time-0.4.5/cbits/strftime.c2019-01-22 04:43:00.0 
+0100
+++ new/unix-time-0.4.6/cbits/strftime.c2019-06-13 05:15:06.0 
+0200
@@ -112,8 +112,11 @@
 {
 #if HAVE__GET_CURRENT_LOCALE
return _patch_strftime_l(s, maxsize, format, t, _get_current_locale());
-#else
+#elif HAVE__CREATE_LOCALE && !IS_NT61
return 

commit ghc-unix-time for openSUSE:Factory

2019-02-17 Thread root
Hello community,

here is the log from the commit of package ghc-unix-time for openSUSE:Factory 
checked in at 2019-02-17 12:20:37

Comparing /work/SRC/openSUSE:Factory/ghc-unix-time (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-unix-time.new.28833 (New)


Package is "ghc-unix-time"

Sun Feb 17 12:20:37 2019 rev:11 rq:674310 version:0.4.5

Changes:

--- /work/SRC/openSUSE:Factory/ghc-unix-time/ghc-unix-time.changes  
2018-12-28 12:35:30.955955342 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-unix-time.new.28833/ghc-unix-time.changes   
2019-02-17 12:20:37.204212455 +0100
@@ -1,0 +2,6 @@
+Wed Jan 23 03:02:22 UTC 2019 - psim...@suse.com
+
+- Update unix-time to version 0.4.5.
+  Upstream does not provide a change log file.
+
+---

Old:

  unix-time-0.4.4.tar.gz

New:

  unix-time-0.4.5.tar.gz



Other differences:
--
++ ghc-unix-time.spec ++
--- /var/tmp/diff_new_pack.9MBESr/_old  2019-02-17 12:20:37.756212304 +0100
+++ /var/tmp/diff_new_pack.9MBESr/_new  2019-02-17 12:20:37.756212304 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-unix-time
 #
-# 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
@@ -19,7 +19,7 @@
 %global pkg_name unix-time
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.4.4
+Version:0.4.5
 Release:0
 Summary:Unix time parser/formatter and utilities
 License:BSD-3-Clause
@@ -29,12 +29,10 @@
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-binary-devel
 BuildRequires:  ghc-bytestring-devel
-BuildRequires:  ghc-cabal-doctest-devel
 BuildRequires:  ghc-old-time-devel
 BuildRequires:  ghc-rpm-macros
 %if %{with tests}
 BuildRequires:  ghc-QuickCheck-devel
-BuildRequires:  ghc-doctest-devel
 BuildRequires:  ghc-hspec-devel
 BuildRequires:  ghc-old-locale-devel
 BuildRequires:  ghc-time-devel

++ unix-time-0.4.4.tar.gz -> unix-time-0.4.5.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.4.4/Setup.hs new/unix-time-0.4.5/Setup.hs
--- old/unix-time-0.4.4/Setup.hs2018-12-24 06:09:10.0 +0100
+++ new/unix-time-0.4.5/Setup.hs2019-01-22 04:43:00.0 +0100
@@ -1,33 +1,6 @@
-{-# LANGUAGE CPP #-}
-{-# OPTIONS_GHC -Wall #-}
 module Main (main) where
 
-#ifndef MIN_VERSION_cabal_doctest
-#define MIN_VERSION_cabal_doctest(x,y,z) 0
-#endif
-
-#if MIN_VERSION_cabal_doctest(1,0,0)
-
-import Distribution.Extra.Doctest ( defaultMainAutoconfWithDoctests )
-main :: IO ()
-main = defaultMainAutoconfWithDoctests "doctests"
-
-#else
-
-#ifdef MIN_VERSION_Cabal
--- If the macro is defined, we have new cabal-install,
--- but for some reason we don't have cabal-doctest in package-db
---
--- Probably we are running cabal sdist, when otherwise using new-build
--- workflow
-#warning You are configuring this package without cabal-doctest installed. \
- The doctests test-suite will not work as a result. \
- To fix this, install cabal-doctest before configuring.
-#endif
-
 import Distribution.Simple
 
 main :: IO ()
-main = defaultMain
-
-#endif
+main = defaultMainWithHooks autoconfUserHooks
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.4.4/unix-time.cabal 
new/unix-time-0.4.5/unix-time.cabal
--- old/unix-time-0.4.4/unix-time.cabal 2018-12-24 06:09:10.0 +0100
+++ new/unix-time-0.4.5/unix-time.cabal 2019-01-22 04:43:00.0 +0100
@@ -1,5 +1,5 @@
 Name:   unix-time
-Version:0.4.4
+Version:0.4.5
 Author: Kazu Yamamoto 
 Maintainer: Kazu Yamamoto 
 License:BSD3
@@ -7,8 +7,8 @@
 Synopsis:   Unix time parser/formatter and utilities
 Description:Fast parser\/formatter\/utilities for Unix time
 Category:   Data
-Cabal-Version:  >= 1.10
-Build-Type: Custom
+Cabal-Version:  1.18
+Build-Type: Configure
 Extra-Source-Files: cbits/config.h.in
 cbits/conv.c
 cbits/strftime.c
@@ -19,9 +19,6 @@
 configure.ac
 Extra-Tmp-Files:config.log config.status autom4te.cache cbits/config.h
 
-Custom-Setup
-  Setup-Depends:base, Cabal, cabal-doctest >=1.0.6 && <1.1
-
 Library
   Default-Language: Haskell2010
   GHC-Options:  -Wall
@@ -45,6 +42,7 @@
   include-dirs: cbits
 
 Test-Suite doctests
+  

commit ghc-unix-time for openSUSE:Factory

2018-12-28 Thread root
Hello community,

here is the log from the commit of package ghc-unix-time for openSUSE:Factory 
checked in at 2018-12-28 12:35:23

Comparing /work/SRC/openSUSE:Factory/ghc-unix-time (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-unix-time.new.28833 (New)


Package is "ghc-unix-time"

Fri Dec 28 12:35:23 2018 rev:10 rq:661503 version:0.4.4

Changes:

--- /work/SRC/openSUSE:Factory/ghc-unix-time/ghc-unix-time.changes  
2018-12-21 08:21:26.721568529 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-unix-time.new.28833/ghc-unix-time.changes   
2018-12-28 12:35:30.955955342 +0100
@@ -1,0 +2,12 @@
+Tue Dec 25 03:01:39 UTC 2018 - psim...@suse.com
+
+- Update unix-time to version 0.4.4.
+  Upstream does not provide a change log file.
+
+---
+Wed Dec 19 13:56:10 UTC 2018 - psim...@suse.com
+
+- Update unix-time to version 0.4.3.
+  Upstream does not provide a change log file.
+
+---

Old:

  unix-time-0.4.0.tar.gz

New:

  unix-time-0.4.4.tar.gz



Other differences:
--
++ ghc-unix-time.spec ++
--- /var/tmp/diff_new_pack.VRtRul/_old  2018-12-28 12:35:31.519954948 +0100
+++ /var/tmp/diff_new_pack.VRtRul/_new  2018-12-28 12:35:31.519954948 +0100
@@ -19,7 +19,7 @@
 %global pkg_name unix-time
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.4.0
+Version:0.4.4
 Release:0
 Summary:Unix time parser/formatter and utilities
 License:BSD-3-Clause
@@ -29,6 +29,7 @@
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-binary-devel
 BuildRequires:  ghc-bytestring-devel
+BuildRequires:  ghc-cabal-doctest-devel
 BuildRequires:  ghc-old-time-devel
 BuildRequires:  ghc-rpm-macros
 %if %{with tests}

++ unix-time-0.4.0.tar.gz -> unix-time-0.4.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.4.0/Setup.hs new/unix-time-0.4.4/Setup.hs
--- old/unix-time-0.4.0/Setup.hs2018-12-13 02:46:40.0 +0100
+++ new/unix-time-0.4.4/Setup.hs2018-12-24 06:09:10.0 +0100
@@ -1,3 +1,33 @@
+{-# LANGUAGE CPP #-}
+{-# OPTIONS_GHC -Wall #-}
+module Main (main) where
+
+#ifndef MIN_VERSION_cabal_doctest
+#define MIN_VERSION_cabal_doctest(x,y,z) 0
+#endif
+
+#if MIN_VERSION_cabal_doctest(1,0,0)
+
+import Distribution.Extra.Doctest ( defaultMainAutoconfWithDoctests )
+main :: IO ()
+main = defaultMainAutoconfWithDoctests "doctests"
+
+#else
+
+#ifdef MIN_VERSION_Cabal
+-- If the macro is defined, we have new cabal-install,
+-- but for some reason we don't have cabal-doctest in package-db
+--
+-- Probably we are running cabal sdist, when otherwise using new-build
+-- workflow
+#warning You are configuring this package without cabal-doctest installed. \
+ The doctests test-suite will not work as a result. \
+ To fix this, install cabal-doctest before configuring.
+#endif
+
 import Distribution.Simple
 
-main = defaultMainWithHooks autoconfUserHooks
+main :: IO ()
+main = defaultMain
+
+#endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.4.0/cbits/strftime.c 
new/unix-time-0.4.4/cbits/strftime.c
--- old/unix-time-0.4.0/cbits/strftime.c2018-12-13 02:46:40.0 
+0100
+++ new/unix-time-0.4.4/cbits/strftime.c2018-12-24 06:09:10.0 
+0100
@@ -476,7 +476,7 @@
else
 #endif /* defined TM_ZONE */
if (t->tm_isdst >= 0)
-   pt = _add(tzname[t->tm_isdst != 0],
+   pt = _add(_tzname[t->tm_isdst != 0],
pt, ptlim);
/*
 * C99 says that %Z must be replaced by the
@@ -514,7 +514,7 @@
 * appropriate variables are not available.
 */
if (t->tm_isdst == 0)
-   diff = -timezone;
+   diff = -_timezone;
else
 #ifdef ALTZONE
diff = -altzone;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.4.0/cbits/strptime.c 
new/unix-time-0.4.4/cbits/strptime.c
--- old/unix-time-0.4.0/cbits/strptime.c2018-12-13 02:46:40.0 
+0100
+++ new/unix-time-0.4.4/cbits/strptime.c2018-12-24 06:09:10.0 
+0100
@@ -548,9 +548,9 @@
if (0 == strcmp(zonestr, "GMT") ||
 

commit ghc-unix-time for openSUSE:Factory

2018-12-20 Thread root
Hello community,

here is the log from the commit of package ghc-unix-time for openSUSE:Factory 
checked in at 2018-12-21 08:21:11

Comparing /work/SRC/openSUSE:Factory/ghc-unix-time (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-unix-time.new.28833 (New)


Package is "ghc-unix-time"

Fri Dec 21 08:21:11 2018 rev:9 rq:658076 version:0.4.0

Changes:

--- /work/SRC/openSUSE:Factory/ghc-unix-time/ghc-unix-time.changes  
2018-10-25 09:06:52.434485894 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-unix-time.new.28833/ghc-unix-time.changes   
2018-12-21 08:21:26.721568529 +0100
@@ -1,0 +2,6 @@
+Thu Dec 13 03:01:41 UTC 2018 - psim...@suse.com
+
+- Update unix-time to version 0.4.0.
+  Upstream does not provide a change log file.
+
+---

Old:

  unix-time-0.3.8.tar.gz

New:

  unix-time-0.4.0.tar.gz



Other differences:
--
++ ghc-unix-time.spec ++
--- /var/tmp/diff_new_pack.ArzwBQ/_old  2018-12-21 08:21:27.185568095 +0100
+++ /var/tmp/diff_new_pack.ArzwBQ/_new  2018-12-21 08:21:27.185568095 +0100
@@ -19,7 +19,7 @@
 %global pkg_name unix-time
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.3.8
+Version:0.4.0
 Release:0
 Summary:Unix time parser/formatter and utilities
 License:BSD-3-Clause

++ unix-time-0.3.8.tar.gz -> unix-time-0.4.0.tar.gz ++
 1756 lines of diff (skipped)




commit ghc-unix-time for openSUSE:Factory

2018-10-25 Thread root
Hello community,

here is the log from the commit of package ghc-unix-time for openSUSE:Factory 
checked in at 2018-10-25 09:06:50

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


Package is "ghc-unix-time"

Thu Oct 25 09:06:50 2018 rev:8 rq:643484 version:0.3.8

Changes:

--- /work/SRC/openSUSE:Factory/ghc-unix-time/ghc-unix-time.changes  
2018-07-21 10:24:14.206971758 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-unix-time.new/ghc-unix-time.changes 
2018-10-25 09:06:52.434485894 +0200
@@ -1,0 +2,5 @@
+Sat Oct 20 11:32:11 UTC 2018 - Peter Simons 
+
+- Use https URL to refer to bugs.opensuse.org.
+
+---



Other differences:
--
++ ghc-unix-time.spec ++
--- /var/tmp/diff_new_pack.59oA5L/_old  2018-10-25 09:06:53.250485407 +0200
+++ /var/tmp/diff_new_pack.59oA5L/_new  2018-10-25 09:06:53.254485405 +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-unix-time for openSUSE:Factory

2018-07-21 Thread root
Hello community,

here is the log from the commit of package ghc-unix-time for openSUSE:Factory 
checked in at 2018-07-21 10:24:11

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


Package is "ghc-unix-time"

Sat Jul 21 10:24:11 2018 rev:7 rq:623885 version:0.3.8

Changes:

--- /work/SRC/openSUSE:Factory/ghc-unix-time/ghc-unix-time.changes  
2018-05-30 12:27:46.453298768 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-unix-time.new/ghc-unix-time.changes 
2018-07-21 10:24:14.206971758 +0200
@@ -1,0 +2,6 @@
+Wed Jul 18 14:26:46 UTC 2018 - psim...@suse.com
+
+- Cosmetic: replace tabs with blanks, strip trailing white space,
+  and update copyright headers with spec-cleaner.
+
+---
@@ -31 +36,0 @@
-



Other differences:
--



commit ghc-unix-time for openSUSE:Factory

2018-05-30 Thread root
Hello community,

here is the log from the commit of package ghc-unix-time for openSUSE:Factory 
checked in at 2018-05-30 12:15:26

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


Package is "ghc-unix-time"

Wed May 30 12:15:26 2018 rev:6 rq:607915 version:0.3.8

Changes:

--- /work/SRC/openSUSE:Factory/ghc-unix-time/ghc-unix-time.changes  
2017-09-15 22:21:54.982876839 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-unix-time.new/ghc-unix-time.changes 
2018-05-30 12:27:46.453298768 +0200
@@ -1,0 +2,6 @@
+Mon May 14 17:02:11 UTC 2018 - psim...@suse.com
+
+- Update unix-time to version 0.3.8.
+  Upstream does not provide a changelog.
+
+---

Old:

  unix-time-0.3.7.tar.gz

New:

  unix-time-0.3.8.tar.gz



Other differences:
--
++ ghc-unix-time.spec ++
--- /var/tmp/diff_new_pack.00vK93/_old  2018-05-30 12:27:47.025278690 +0200
+++ /var/tmp/diff_new_pack.00vK93/_new  2018-05-30 12:27:47.029278549 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-unix-time
 #
-# 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
@@ -19,7 +19,7 @@
 %global pkg_name unix-time
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.3.7
+Version:0.3.8
 Release:0
 Summary:Unix time parser/formatter and utilities
 License:BSD-3-Clause
@@ -72,7 +72,7 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%doc LICENSE
+%license LICENSE
 
 %files devel -f %{name}-devel.files
 

++ unix-time-0.3.7.tar.gz -> unix-time-0.3.8.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.3.7/Data/UnixTime/Sys.hsc 
new/unix-time-0.3.8/Data/UnixTime/Sys.hsc
--- old/unix-time-0.3.7/Data/UnixTime/Sys.hsc   2016-09-06 04:46:51.0 
+0200
+++ new/unix-time-0.3.8/Data/UnixTime/Sys.hsc   2018-02-26 02:38:36.0 
+0100
@@ -21,7 +21,7 @@
 c_gettimeofday :: Ptr CTimeVal -> Ptr CTimeZone -> IO CInt
 
 -- |
--- Getting 'UnixTime' from OS.
+-- Get current 'UnixTime' from OS.
 
 getUnixTime :: IO UnixTime
 getUnixTime = allocaBytes (#const sizeof(struct timeval)) $ \ p_timeval -> do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.3.7/unix-time.cabal 
new/unix-time-0.3.8/unix-time.cabal
--- old/unix-time-0.3.7/unix-time.cabal 2016-09-06 04:46:51.0 +0200
+++ new/unix-time-0.3.8/unix-time.cabal 2018-02-26 02:38:36.0 +0100
@@ -1,5 +1,5 @@
 Name:   unix-time
-Version:0.3.7
+Version:0.3.8
 Author: Kazu Yamamoto 
 Maintainer: Kazu Yamamoto 
 License:BSD3
@@ -27,6 +27,7 @@
   , old-time
   , binary
   C-Sources:cbits/conv.c
+  include-dirs: cbits
 
 Test-Suite doctest
   Type: exitcode-stdio-1.0




commit ghc-unix-time for openSUSE:Factory

2017-09-15 Thread root
Hello community,

here is the log from the commit of package ghc-unix-time for openSUSE:Factory 
checked in at 2017-09-15 22:21:53

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


Package is "ghc-unix-time"

Fri Sep 15 22:21:53 2017 rev:5 rq:525611 version:0.3.7

Changes:

--- /work/SRC/openSUSE:Factory/ghc-unix-time/ghc-unix-time.changes  
2016-10-19 13:04:46.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-unix-time.new/ghc-unix-time.changes 
2017-09-15 22:21:54.982876839 +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-unix-time.spec ++
--- /var/tmp/diff_new_pack.sHmGfB/_old  2017-09-15 22:21:55.682778256 +0200
+++ /var/tmp/diff_new_pack.sHmGfB/_new  2017-09-15 22:21:55.686777692 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-unix-time
 #
-# 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
@@ -23,15 +23,14 @@
 Release:0
 Summary:Unix time parser/formatter and utilities
 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
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-binary-devel
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-old-time-devel
 BuildRequires:  ghc-rpm-macros
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-QuickCheck-devel
 BuildRequires:  ghc-doctest-devel
@@ -45,7 +44,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}
@@ -73,10 +72,8 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%defattr(-,root,root,-)
 %doc LICENSE
 
 %files devel -f %{name}-devel.files
-%defattr(-,root,root,-)
 
 %changelog




commit ghc-unix-time for openSUSE:Factory

2016-10-19 Thread h_root
Hello community,

here is the log from the commit of package ghc-unix-time for openSUSE:Factory 
checked in at 2016-10-19 13:04:45

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


Package is "ghc-unix-time"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-unix-time/ghc-unix-time.changes  
2016-07-20 09:24:41.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-unix-time.new/ghc-unix-time.changes 
2016-10-19 13:04:46.0 +0200
@@ -1,0 +2,5 @@
+Thu Sep 15 06:42:12 UTC 2016 - psim...@suse.com
+
+- Update to version 0.3.7 revision 0 with cabal2obs.
+
+---

Old:

  unix-time-0.3.6.tar.gz

New:

  unix-time-0.3.7.tar.gz



Other differences:
--
++ ghc-unix-time.spec ++
--- /var/tmp/diff_new_pack.THcvg9/_old  2016-10-19 13:04:47.0 +0200
+++ /var/tmp/diff_new_pack.THcvg9/_new  2016-10-19 13:04:47.0 +0200
@@ -19,15 +19,14 @@
 %global pkg_name unix-time
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:0.3.6
+Version:0.3.7
 Release:0
 Summary:Unix time parser/formatter and utilities
 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
 BuildRequires:  ghc-Cabal-devel
-# Begin cabal-rpm deps:
 BuildRequires:  ghc-binary-devel
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-old-time-devel
@@ -40,7 +39,6 @@
 BuildRequires:  ghc-old-locale-devel
 BuildRequires:  ghc-time-devel
 %endif
-# End cabal-rpm deps
 
 %description
 Fast parser/formatter/utilities for Unix time.
@@ -59,20 +57,14 @@
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
-
 %build
 %ghc_lib_build
 
-
 %install
 %ghc_lib_install
 
-
 %check
-%if %{with tests}
-%{cabal} test
-%endif
-
+%cabal_test
 
 %post devel
 %ghc_pkg_recache

++ unix-time-0.3.6.tar.gz -> unix-time-0.3.7.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.3.6/Data/UnixTime/Conv.hs 
new/unix-time-0.3.7/Data/UnixTime/Conv.hs
--- old/unix-time-0.3.6/Data/UnixTime/Conv.hs   2015-10-14 07:10:32.0 
+0200
+++ new/unix-time-0.3.7/Data/UnixTime/Conv.hs   2016-09-06 04:46:51.0 
+0200
@@ -19,6 +19,9 @@
 import System.Posix.Types (EpochTime)
 import System.Time (ClockTime(..))
 
+-- $setup
+-- >>> import Data.Function (on)
+
 foreign import ccall unsafe "c_parse_unix_time"
 c_parse_unix_time :: CString -> CString -> IO CTime
 
@@ -38,6 +41,7 @@
 -- This is a wrapper for strptime_l().
 -- Many implementations of strptime_l() do not support %Z and
 -- some implementations of strptime_l() do not support %z, either.
+-- 'utMicroSeconds' is always set to 0.
 
 parseUnixTime :: Format -> ByteString -> UnixTime
 parseUnixTime fmt str = unsafePerformIO $
@@ -48,6 +52,7 @@
 -- |
 -- Parsing 'ByteString' to 'UnixTime' interpreting as GMT.
 -- This is a wrapper for strptime_l().
+-- 'utMicroSeconds' is always set to 0.
 --
 -- >>> parseUnixTimeGMT webDateFormat "Thu, 01 Jan 1970 00:00:00 GMT"
 -- UnixTime {utSeconds = 0, utMicroSeconds = 0}
@@ -64,6 +69,8 @@
 -- |
 -- Formatting 'UnixTime' to 'ByteString' in local time.
 -- This is a wrapper for strftime_l().
+-- 'utMicroSeconds' is ignored.
+-- The result depends on the TZ environment variable.
 
 formatUnixTime :: Format -> UnixTime -> IO ByteString
 formatUnixTime fmt t =
@@ -73,9 +80,17 @@
 -- |
 -- Formatting 'UnixTime' to 'ByteString' in GMT.
 -- This is a wrapper for strftime_l().
+-- 'utMicroSeconds' is ignored.
 --
 -- >>> formatUnixTimeGMT webDateFormat $ UnixTime 0 0
 -- "Thu, 01 Jan 1970 00:00:00 GMT"
+-- >>> let ut = UnixTime 100 200
+-- >>> let str = formatUnixTimeGMT "%s" ut
+-- >>> let ut' = parseUnixTimeGMT "%s" str
+-- >>> ((==) `on` utSeconds) ut ut'
+-- True
+-- >>> ((==) `on` utMicroSeconds) ut ut'
+-- False
 
 formatUnixTimeGMT :: Format -> UnixTime -> ByteString
 formatUnixTimeGMT fmt t =
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.3.6/cbits/conv.c 
new/unix-time-0.3.7/cbits/conv.c
--- old/unix-time-0.3.6/cbits/conv.c2015-10-14 07:10:32.0 +0200
+++ new/unix-time-0.3.7/cbits/conv.c2016-09-06 04:46:51.0 +0200
@@ -15,6 +15,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #if THREAD_SAFE
 #if HAVE_XLOCALE_H
@@ -36,6 +37,31 @@
 }
 #endif
 
+/*
+ * Set the value of the TZ environment variable to UTC
+ * and return the old value.
+ */
+char *set_tz_utc() {
+char *tz;
+tz 

commit ghc-unix-time for openSUSE:Factory

2016-07-20 Thread h_root
Hello community,

here is the log from the commit of package ghc-unix-time for openSUSE:Factory 
checked in at 2016-07-20 09:24:39

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


Package is "ghc-unix-time"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-unix-time/ghc-unix-time.changes  
2015-10-20 00:08:28.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-unix-time.new/ghc-unix-time.changes 
2016-07-20 09:24:41.0 +0200
@@ -1,0 +2,5 @@
+Sun Jul 10 17:29:14 UTC 2016 - psim...@suse.com
+
+- Update to version 0.3.6 revision 0 with cabal2obs.
+
+---



Other differences:
--
++ ghc-unix-time.spec ++
--- /var/tmp/diff_new_pack.bXmP7l/_old  2016-07-20 09:24:42.0 +0200
+++ /var/tmp/diff_new_pack.bXmP7l/_new  2016-07-20 09:24:42.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-unix-time
 #
-# 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,26 +17,22 @@
 
 
 %global pkg_name unix-time
-
 %bcond_with tests
-
-Name:   ghc-unix-time
+Name:   ghc-%{pkg_name}
 Version:0.3.6
 Release:0
 Summary:Unix time parser/formatter and utilities
 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-binary-devel
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-old-time-devel
+BuildRequires:  ghc-rpm-macros
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with tests}
 BuildRequires:  ghc-QuickCheck-devel
 BuildRequires:  ghc-doctest-devel
@@ -49,33 +45,35 @@
 %description
 Fast parser/formatter/utilities for Unix time.
 
-
 %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}
 
+
 %build
 %ghc_lib_build
 
+
 %install
 %ghc_lib_install
 
+
 %check
 %if %{with tests}
-%cabal test
+%{cabal} test
 %endif
 
+
 %post devel
 %ghc_pkg_recache
 




commit ghc-unix-time for openSUSE:Factory

2015-10-19 Thread h_root
Hello community,

here is the log from the commit of package ghc-unix-time for openSUSE:Factory 
checked in at 2015-10-19 22:53:28

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


Package is "ghc-unix-time"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-unix-time/ghc-unix-time.changes  
2015-05-21 08:38:29.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-unix-time.new/ghc-unix-time.changes 
2015-10-20 00:08:28.0 +0200
@@ -1,0 +2,5 @@
+Sun Oct 18 14:54:48 UTC 2015 - mimi...@gmail.com
+
+- update to 0.3.6 
+
+---

Old:

  unix-time-0.3.5.tar.gz

New:

  unix-time-0.3.6.tar.gz



Other differences:
--
++ ghc-unix-time.spec ++
--- /var/tmp/diff_new_pack.OSZDJ7/_old  2015-10-20 00:08:29.0 +0200
+++ /var/tmp/diff_new_pack.OSZDJ7/_new  2015-10-20 00:08:29.0 +0200
@@ -15,17 +15,18 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 %global pkg_name unix-time
 
 %bcond_with tests
 
-Name:   ghc-%{pkg_name}
-Version:0.3.5
+Name:   ghc-unix-time
+Version:0.3.6
 Release:0
 Summary:Unix time parser/formatter and utilities
+License:BSD-3-Clause
 Group:  System/Libraries
 
-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
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -64,36 +65,28 @@
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
-
 %build
 %ghc_lib_build
 
-
 %install
 %ghc_lib_install
 
-
 %check
 %if %{with tests}
 %cabal test
 %endif
 
-
 %post devel
 %ghc_pkg_recache
 
-
 %postun devel
 %ghc_pkg_recache
 
-
 %files -f %{name}.files
 %defattr(-,root,root,-)
 %doc LICENSE
 
-
 %files devel -f %{name}-devel.files
 %defattr(-,root,root,-)
 
-
 %changelog

++ unix-time-0.3.5.tar.gz -> unix-time-0.3.6.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.3.5/Data/UnixTime/Types.hsc 
new/unix-time-0.3.6/Data/UnixTime/Types.hsc
--- old/unix-time-0.3.5/Data/UnixTime/Types.hsc 2015-02-24 04:28:03.0 
+0100
+++ new/unix-time-0.3.6/Data/UnixTime/Types.hsc 2015-10-14 07:10:32.0 
+0200
@@ -12,8 +12,6 @@
 
 #include 
 
-#let alignment t = "%lu", (unsigned long)offsetof(struct {char x__; t (y__); 
}, y__)
-
 -- |
 -- Data structure for Unix time.
 --
@@ -35,7 +33,7 @@
 
 instance Storable UnixTime where
 sizeOf _= (#size struct timeval)
-alignment _ = (#alignment struct timeval)
+alignment _ = (#const offsetof(struct {char x__; struct timeval (y__); }, 
y__))
 peek ptr= UnixTime
 <$> (#peek struct timeval, tv_sec)  ptr
 <*> (#peek struct timeval, tv_usec) ptr
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/unix-time-0.3.5/unix-time.cabal 
new/unix-time-0.3.6/unix-time.cabal
--- old/unix-time-0.3.5/unix-time.cabal 2015-02-24 04:28:03.0 +0100
+++ new/unix-time-0.3.6/unix-time.cabal 2015-10-14 07:10:32.0 +0200
@@ -1,5 +1,5 @@
 Name:   unix-time
-Version:0.3.5
+Version:0.3.6
 Author: Kazu Yamamoto 
 Maintainer: Kazu Yamamoto 
 License:BSD3