Hello community,

here is the log from the commit of package remind for openSUSE:Factory checked 
in at 2013-04-23 15:20:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/remind (Old)
 and      /work/SRC/openSUSE:Factory/.remind.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "remind", Maintainer is ""

Changes:
--------
--- /work/SRC/openSUSE:Factory/remind/remind.changes    2012-03-01 
17:27:17.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.remind.new/remind.changes       2013-04-23 
15:20:25.000000000 +0200
@@ -1,0 +2,16 @@
+Mon Apr 22 20:28:03 UTC 2013 - [email protected]
+
+- update to remind-3.1.13 
+  - BUG FIX: Sunrise/Sunset calculations greatly improved thanks to
+    John McGowan.  Accuracy should now be within a couple of
+    minutes in most places.
+  - BUG FIX: Allow specification of margins as low as 0 points in
+    rem2ps, courtesy of Jonathan Kamens.
+  - BUG FIX: Permit compilation with gcc 2.95 (which doesn't allow
+    variable declarations after non-declaration statements in a
+    block.)
+  - BUG FIX: Several minor documentation errors corrected courtesy
+    of Simon Ruderich.
+  - BUG FIX: Spurious test harness failure was fixed.
+
+-------------------------------------------------------------------

Old:
----
  remind-03.01.12.tar.gz
  remind-3.1.12-rpmlintrc

New:
----
  remind-03.01.13.tar.gz
  remind-3.1.13-rpmlintrc

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

Other differences:
------------------
++++++ remind.spec ++++++
--- /var/tmp/diff_new_pack.MBquFr/_old  2013-04-23 15:20:27.000000000 +0200
+++ /var/tmp/diff_new_pack.MBquFr/_new  2013-04-23 15:20:27.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package remind
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products 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,9 +17,9 @@
 
 
 Name:           remind
-Version:        3.1.12
+Version:        3.1.13
 Release:        0
-%define tar_version 03.01.12
+%define tar_version 03.01.13
 Summary:        A sophisticated calendar and alarm program
 License:        GPL-2.0
 Group:          Productivity/Office/Organizers

++++++ remind-03.01.12.tar.gz -> remind-03.01.13.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/remind-03.01.12/configure 
new/remind-03.01.13/configure
--- old/remind-03.01.12/configure       2012-01-23 19:11:34.000000000 +0100
+++ new/remind-03.01.13/configure       2013-03-22 20:43:57.000000000 +0100
@@ -3949,7 +3949,7 @@
 fi
 done
 
-VERSION=03.01.12
+VERSION=03.01.13
 
 ac_config_files="$ac_config_files src/Makefile www/Makefile src/version.h"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/remind-03.01.12/configure.in 
new/remind-03.01.13/configure.in
--- old/remind-03.01.12/configure.in    2012-01-23 19:11:13.000000000 +0100
+++ new/remind-03.01.13/configure.in    2013-03-22 20:43:43.000000000 +0100
@@ -75,6 +75,6 @@
 fi
 
 AC_CHECK_FUNCS(setenv unsetenv glob mbstowcs setlocale)
-VERSION=03.01.12
+VERSION=03.01.13
 AC_SUBST(VERSION)
 AC_OUTPUT(src/Makefile www/Makefile src/version.h)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/remind-03.01.12/docs/WHATSNEW 
new/remind-03.01.13/docs/WHATSNEW
--- old/remind-03.01.12/docs/WHATSNEW   2012-01-23 19:06:41.000000000 +0100
+++ new/remind-03.01.13/docs/WHATSNEW   2013-03-22 20:47:55.000000000 +0100
@@ -1,5 +1,22 @@
 CHANGES TO REMIND
 
+* Version 3.1 Patch 13 - 2013-03-22
+
+- BUG FIX: Sunrise/Sunset calculations greatly improved thanks to John
+  McGowan.  Accuracy should now be within a couple of minutes in most
+  places.
+
+- BUG FIX: Allow specification of margins as low as 0 points in rem2ps,
+  courtesy of Jonathan Kamens.
+
+- BUG FIX: Permit compilation with gcc 2.95 (which doesn't allow variable
+  declarations after non-declaration statements in a block.)
+
+- BUG FIX: Several minor documentation errors corrected courtesy of
+  Simon Ruderich.
+
+- BUG FIX: Spurious test harness failure was fixed.
+
 * Version 3.1 Patch 12 - 2012-01-23
 
 - NEW FEATURE: Many substitution sequences "%x" have an alternate mode
@@ -562,7 +579,7 @@
 + BUG FIXES
 
 - Fixed sunset(), sunrise() and minsfromutc() functions which were broken
-  by 3.0.17.  (In 3.0.17, they did not account for daylight savings time.)
+  by 3.0.17.  (In 3.0.17, they did not account for daylight saving time.)
 
 - Updated "finnish.h" to include proper URL and translation of all
   error messages.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/remind-03.01.12/examples/defs.rem 
new/remind-03.01.13/examples/defs.rem
--- old/remind-03.01.12/examples/defs.rem       2010-04-21 15:49:28.000000000 
+0200
+++ new/remind-03.01.13/examples/defs.rem       2012-03-23 20:45:38.000000000 
+0100
@@ -307,8 +307,8 @@
 
 # The DST rules are accurate for most locations in
 # North America
-REM Sun Apr 1 ++2 UNTIL 1 Jan 2007 MSG Daylight Savings Time - %"DST starts%" 
%b
-REM Sun Mar 8 ++2 FROM 1 Jan 2007 MSG Daylight Savings Time - %"DST starts%" %b
+REM Sun Apr 1 ++2 UNTIL 1 Jan 2007 MSG Daylight Saving Time - %"DST starts%" %b
+REM Sun Mar 8 ++2 FROM 1 Jan 2007 MSG Daylight Saving Time - %"DST starts%" %b
 
 REM      Apr  1                MSG %"April Fool's%" Day
 REM  Mon Tue Wed Thu Fri Sat 15 Apr MSG %"Income tax%" due
@@ -327,8 +327,8 @@
 
 # The DST rules are accurate for most locations in
 # North America
-REM Sun [_last(Oct)] UNTIL 1 Jan 2007 MSG Daylight Savings Time - %"DST over%"
-REM Sun 1 Nov FROM 1 Jan 2007 MSG Daylight Savings Time - %"DST over%"
+REM Sun [_last(Oct)] UNTIL 1 Jan 2007 MSG Daylight Saving Time - %"DST over%"
+REM Sun 1 Nov FROM 1 Jan 2007 MSG Daylight Saving Time - %"DST over%"
 
 REM      Oct 30                MSG %"Mischief Night%"
 REM      Oct 31                MSG %"Halloween%"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/remind-03.01.12/man/remind.1 
new/remind-03.01.13/man/remind.1
--- old/remind-03.01.12/man/remind.1    2012-01-12 19:05:44.000000000 +0100
+++ new/remind-03.01.13/man/remind.1    2013-03-18 19:05:45.000000000 +0100
@@ -236,20 +236,17 @@
 .PP
 to have all of your \fBMSG\fR-type reminders processed using xmessage.
 .PP
-A word of warning:  It is very easy to spawn dozens of xmessage processes
-with the above technique.  So be very careful.  Also, the \fIcmd\fR is passed
-as an argument to \fBsprintf()\fR.  If you use formatting directives other
-than %s, or use more than one %s directive, there's a good chance that
-you'll crash \fBRemind\fR.  Finally, because all shell and whitespace
-characters are escaped, the program you execute with the \fB\-k\fR
-option must be prepared to handle the entire message as a single argument.
+A word of warning: It is very easy to spawn dozens of xmessage
+processes with the above technique.  So be very careful.  Because all
+shell and whitespace characters are escaped, the program you execute
+with the \fB\-k\fR option must be prepared to handle the entire
+message as a single argument.
 .RE
 .TP
-\fB\-z\fR[\fIn\fR]
-Runs \fBRemind\fR in the daemon mode.  If \fIn\fR is supplied, it
-specifies how often (in minutes) \fBRemind\fR should wake up to
-check if the reminder script has been changed.  \fIN\fR defaults
-to 5, and can range from 5 to 60.  Note that the use of the
+\fB\-z\fR[\fIn\fR] Runs \fBRemind\fR in the daemon mode.  If \fIn\fR
+is supplied, it specifies how often (in minutes) \fBRemind\fR should
+wake up to check if the reminder script has been changed.  \fIN\fR
+defaults to 1, and can range from 1 to 60.  Note that the use of the
 \fB\-z\fR option also enables the \fB\-f\fR option.
 .PP
 .RS
@@ -1461,7 +1458,7 @@
 If you specify a filename of "-" in the \fBINCLUDE\fR command, \fBRemind\fR
 will begin reading from standard input.
 .PP
-If you specify a \fIdirectory\fR as the argument to \fBINCLDUE\fR, then
+If you specify a \fIdirectory\fR as the argument to \fBINCLUDE\fR, then
 \fBRemind\fR will process all files in that directory that match the shell
 patterm "*.rem".  The files are processed in sorted order; the sort order
 matches that used by the shell when it expands "*.rem".
@@ -1930,10 +1927,10 @@
 The standard Unix library functions may have difficulty dealing with dates
 later than 2037.  If this variable is set to 1, then the UTC calculations
 "fold back" years later than 2037 before using the Unix library functions.
-For example, to find out whether or not daylight savings time is in
+For example, to find out whether or not daylight saving time is in
 effect in June, 2077, the year is "folded back" to 2010, because both
 years begin on a Monday, and both are non-leapyears.  The rules for
-daylight savings time are thus presumed to be identical for both
+daylight saving time are thus presumed to be identical for both
 years, and the Unix library functions can handle 2010.  By default,
 this variable is 0.  Set it to 1 if the sun or UTC functions misbehave
 for years greater than 2037.
@@ -1990,7 +1987,7 @@
 \fB$CalcUTC\fR is non-zero, this is calculated upon startup of \fBRemind\fR.
 Otherwise, you must set it explicitly.  If \fB$CalcUTC\fR is zero,
 then \fB$MinsFromUTC\fR is used in the astronomical calculations.  You
-must adjust it for daylight savings time yourself.  Also, if you
+must adjust it for daylight saving time yourself.  Also, if you
 want to initialize \fB$MinsFromUTC\fR
 using the \fB\-i\fR command-line option, you
 must also set \fB$CalcUTC\fR to 0 with the \fB\-i\fR option.
@@ -2402,7 +2399,7 @@
 .RE
 .TP
 .B isdst([d_date [,t_time]]) \fRor\fB isdst(q_datetime)
-Returns a positive number if daylight savings time is in
+Returns a positive number if daylight saving time is in
 effect on the specified date and time.  \fIDate\fR
 defaults to \fBtoday()\fR and \fItime\fR defaults to midnight.
 .RS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/remind-03.01.12/src/Makefile.in 
new/remind-03.01.13/src/Makefile.in
--- old/remind-03.01.12/src/Makefile.in 2012-01-23 17:13:46.000000000 +0100
+++ new/remind-03.01.13/src/Makefile.in 2012-10-18 15:30:48.000000000 +0200
@@ -41,7 +41,7 @@
        @sh ../tests/test-rem
 
 .c.o:
-       @CC@ -c @CFLAGS@ @DEFS@ $(CEXTRA) $(LANGDEF) -I. -I$(srcdir) $<
+       @CC@ -c @CPPFLAGS@ @CFLAGS@ @DEFS@ $(CEXTRA) $(LANGDEF) -I. -I$(srcdir) 
$<
 
 rem2ps: rem2ps.o dynbuf.o
        @CC@ @LDFLAGS@ $(LDEXTRA) -o rem2ps rem2ps.o dynbuf.o
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/remind-03.01.12/src/custom.h.in 
new/remind-03.01.13/src/custom.h.in
--- old/remind-03.01.12/src/custom.h.in 2010-09-09 23:19:36.000000000 +0200
+++ new/remind-03.01.13/src/custom.h.in 2012-12-09 17:17:45.000000000 +0100
@@ -178,7 +178,7 @@
 /*---------------------------------------------------------------------*/
 /* How many attempts to resolve a weird date spec?                     */
 /*---------------------------------------------------------------------*/
-#define TRIG_ATTEMPTS 50
+#define TRIG_ATTEMPTS 500
 
 /*---------------------------------------------------------------------*/
 /* How many global omits of the form YYYY MM DD do we handle?          */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/remind-03.01.12/src/funcs.c 
new/remind-03.01.13/src/funcs.c
--- old/remind-03.01.12/src/funcs.c     2012-01-12 19:12:55.000000000 +0100
+++ new/remind-03.01.13/src/funcs.c     2013-03-18 19:04:48.000000000 +0100
@@ -1791,7 +1791,7 @@
 /*                                                             */
 /*  FIsdst and FMinsfromutc                                    */
 /*                                                             */
-/*  Check whether daylight savings time is in effect, and      */
+/*  Check whether daylight saving time is in effect, and      */
 /*  get minutes from UTC.                                      */
 /*                                                             */
 /***************************************************************/
@@ -1855,12 +1855,9 @@
 static int SunStuff(int rise, double cosz, int jul)
 {
     int mins, hours;
-    int dusk_or_dawn;
     int year, mon, day;
-    int jan0;
-    double jan0d;
 
-    double M, L, tanA, sinDelta, cosDelta, a, a_hr, cosH, t, H, T;
+    double M, L, sinDelta, cosDelta, a, a_hr, cosH, t, H, T;
     double latitude, longdeg, UT, local;
 
 /* Get offset from UTC */
@@ -1880,10 +1877,7 @@
 
 
     FromJulian(jul, &year, &mon, &day);
-    jan0 = jul - Julian(year, 0, 1);
-    jan0d = (double) jan0;
 
-    dusk_or_dawn = rise;
     if (rise > 1)
        rise -= 2;
 
@@ -1891,10 +1885,8 @@
     t = (double) jul;
     if (rise) {
        t += (6.0 + longdeg/15.0) / 24.0;
-       jan0d += (6.0 + longdeg/15.0) / 24.0;
     } else {
        t += (18.0 + longdeg/15.0) / 24.0;
-       jan0d += (18.0 + longdeg/15.0) / 24.0;
     }
 
 /* Mean anomaly of sun starting from 1 Jan 1990 */
@@ -1902,34 +1894,22 @@
 #if BASE != 1990
 #error Sun calculations assume a BASE of 1990!
 #endif
-    M = (0.9856002585 * t) + 357.828757;  /* In degrees */
+    t = 0.9856002585 * t;
+    M = t + 357.828757; /* In degrees */
 
     /* Make sure M is in the range [0, 360) */
     M -= (floor(M/360.0) * 360.0);
 
 /* Sun's true longitude */
-    L = M + 1.916*sin(DEGRAD*M) + 0.02*sin(2*DEGRAD*M) + 282.565;
+    L = M + 1.916*sin(DEGRAD*M) + 0.02*sin(2*DEGRAD*M) + 283.07080214;
     if (L > 360.0) L -= 360.0;
 
 /* Tan of sun's right ascension */
-    tanA = 0.91746 * tan(DEGRAD*L);
-    a = RADDEG * atan(tanA);
-
-/* Move a into same quadrant as L */
-    if (0.0 <= L && L < 90.0) {
-       if (a < 0.0) a += 180.0;
-    } else if (90.0 <= L && L < 180.0) {
-       a += 180.0;
-    } else if (180.0 <= L && L < 270.0) {
-       a += 180.0;
-    } else {
-       if (a > 0.0) a += 180.0;
+    a = RADDEG * atan2(0.91746*sin(DEGRAD*L), cos(DEGRAD*L));
+    if (a<0) {
+       a += 360.0;
     }
-/*   if (fabs(a - L) > 90.0)
-     a += 180.0; */
-    
-    if (a > 360.0)
-       a -= 360.0;
+
     a_hr = a / 15.0;
 
 /* Sine of sun's declination */
@@ -1951,7 +1931,9 @@
     H = RADDEG * acos(cosH);
     if (rise) H = 360.0 - H;
 
-    T = H / 15.0 + a_hr - 0.065710 * jan0d - 6.620;
+    t -= 360.0*floor(t/360.0);
+    T = (H-t) / 15.0 + a_hr - 6.726637276;
+
     if (T >= 24.0) T -= 24.0;
     else if (T < 0.0) T+= 24.0;
     
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/remind-03.01.12/src/init.c 
new/remind-03.01.13/src/init.c
--- old/remind-03.01.12/src/init.c      2012-01-12 18:50:13.000000000 +0100
+++ new/remind-03.01.13/src/init.c      2012-11-01 18:08:32.000000000 +0100
@@ -59,7 +59,7 @@
  *             v = Dump variables at end
  *             l = Display entire line in error messages
  *  -e       = Send messages normally sent to stderr to stdout instead
- *  -z[n]    = Daemon mode waking up every n (def 5) minutes.
+ *  -z[n]    = Daemon mode waking up every n (def 1) minutes.
  *  -bn      = Time format for cal (0, 1, or 2)
  *  -xn      = Max. number of iterations for SATISFY
  *  -uname   = Run as user 'name' - only valid when run by root.  If run
@@ -622,7 +622,7 @@
     fprintf(ErrFp, " -a     Don't trigger timed reminders immediately - just 
queue them\n");
     fprintf(ErrFp, " -q     Don't queue timed reminders\n");
     fprintf(ErrFp, " -f     Trigger timed reminders by staying in 
foreground\n");
-    fprintf(ErrFp, " -z[n]  Enter daemon mode, waking every n (5) minutes.\n");
+    fprintf(ErrFp, " -z[n]  Enter daemon mode, waking every n (1) minutes.\n");
     fprintf(ErrFp, " -d...  Debug: e=echo x=expr-eval t=trig v=dumpvars 
l=showline f=tracefiles\n");
     fprintf(ErrFp, " -e     Divert messages normally sent to stderr to 
stdout\n");
     fprintf(ErrFp, " -b[n]  Time format for cal: 0=am/pm, 1=24hr, 2=none\n");
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/remind-03.01.12/src/omit.c 
new/remind-03.01.13/src/omit.c
--- old/remind-03.01.12/src/omit.c      2010-09-01 23:14:23.000000000 +0200
+++ new/remind-03.01.13/src/omit.c      2012-02-13 16:23:45.000000000 +0100
@@ -390,12 +390,12 @@
 {
     int yend = NO_YR, mend = NO_MON, dend = NO_DAY, r;
     int start, end, tmp;
+    int parsing = 1;
 
     Token tok;
 
     DynamicBuffer buf;
     DBufInit(&buf);
-    int parsing = 1;
 
     while(parsing) {
        if ( (r=ParseToken(p, &buf)) ) return r;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/remind-03.01.12/src/rem2ps.c 
new/remind-03.01.13/src/rem2ps.c
--- old/remind-03.01.12/src/rem2ps.c    2011-12-05 23:08:21.000000000 +0100
+++ new/remind-03.01.13/src/rem2ps.c    2012-04-26 14:57:09.000000000 +0200
@@ -772,7 +772,7 @@
        case 'o':
            if (i == argc) Usage("Offset must be supplied");
            offset = atoi(argv[i++]);
-           if (offset < 36) offset = 36;
+           if (offset < 0) offset = 0;
            if (!*s) Usage("Offset must specify l, r, t or b");
            while(*s) {
                switch(*s++) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/remind-03.01.12/src/trigger.c 
new/remind-03.01.13/src/trigger.c
--- old/remind-03.01.12/src/trigger.c   2010-04-20 17:36:48.000000000 +0200
+++ new/remind-03.01.13/src/trigger.c   2012-12-09 17:23:51.000000000 +0100
@@ -426,7 +426,9 @@
        result;
 
     trig->expired = 0;
-    if (save_in_globals) LastTrigValid = 0;
+    if (save_in_globals) {
+       LastTrigValid = 0;
+    }
 
 /* Assume everything works */
     *err = OK;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/remind-03.01.12/tests/test-rem 
new/remind-03.01.13/tests/test-rem
--- old/remind-03.01.12/tests/test-rem  2012-01-23 19:15:09.000000000 +0100
+++ new/remind-03.01.13/tests/test-rem  2012-05-08 22:53:07.000000000 +0200
@@ -68,7 +68,7 @@
 (echo "REM AT 12:00 MSG Untimed"; echo "REM MSG Timed") | ../src/remind -q 
-gaaad - 1 Jan 2000 >> ../tests/test.out 2>&1
 
 echo "Purge Test" >> ../tests/test.out
-../src/remind -j999 ../tests/purge_dir/f1.rem >> ../tests/test.out 2>&1
+../src/remind -j999 ../tests/purge_dir/f1.rem 3 Feb 2012 >> ../tests/test.out 
2>&1
 echo "F1" >> ../tests/test.out
 cat ../tests/purge_dir/f1.rem.purged >> ../tests/test.out
 echo "F2" >> ../tests/test.out
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/remind-03.01.12/tests/test.cmp 
new/remind-03.01.13/tests/test.cmp
--- old/remind-03.01.12/tests/test.cmp  2012-01-23 19:15:32.000000000 +0100
+++ new/remind-03.01.13/tests/test.cmp  2013-03-22 20:43:39.000000000 +0100
@@ -836,7 +836,7 @@
 "a05" + "6" => "a056"
 value("a056") => "SDFJHSDF KSJDFH KJSDFH KSJDFH"
 set a058 version()
-version() => "03.01.12"
+version() => "03.01.13"
 set a059 wkday(today())
 today() => 1991-02-16
 wkday(1991-02-16) => "Saturday"
@@ -1059,7 +1059,7 @@
             a048  "foo"
             a067  "INT"
             a039  "February"
-            a058  "03.01.12"
+            a058  "03.01.13"
             a077  "1992 92
 "
             a049  21

++++++ remind-3.1.12-rpmlintrc -> remind-3.1.13-rpmlintrc ++++++

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to