Hello community,

here is the log from the commit of package abi-monitor for openSUSE:Factory 
checked in at 2017-09-05 15:16:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/abi-monitor (Old)
 and      /work/SRC/openSUSE:Factory/.abi-monitor.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "abi-monitor"

Tue Sep  5 15:16:06 2017 rev:2 rq:520533 version:1.12

Changes:
--------
--- /work/SRC/openSUSE:Factory/abi-monitor/abi-monitor.changes  2017-07-08 
12:34:50.830664741 +0200
+++ /work/SRC/openSUSE:Factory/.abi-monitor.new/abi-monitor.changes     
2017-09-05 15:16:07.385622242 +0200
@@ -1,0 +2,12 @@
+Sun Sep  3 18:59:31 UTC 2017 - [email protected]
+
+- update to 1.12:
+  * Added options of the profile:
+    KeepMiniMult
+    KeepMicroMult
+  * Improved search for packages
+  * Support for txz packages
+  * Improved search for changelog
+  * Fixed converter of static objects to shared
+
+-------------------------------------------------------------------

Old:
----
  abi-monitor-1.11.tar.gz

New:
----
  abi-monitor-1.12.tar.gz

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

Other differences:
------------------
++++++ abi-monitor.spec ++++++
--- /var/tmp/diff_new_pack.jQfAhC/_old  2017-09-05 15:16:08.245501374 +0200
+++ /var/tmp/diff_new_pack.jQfAhC/_new  2017-09-05 15:16:08.249500812 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           abi-monitor
-Version:        1.11
+Version:        1.12
 Release:        0
 Summary:        A tool to monitor and build new versions of a software library
 License:        GPL-2.0+ or LGPL-2.1+
@@ -33,12 +33,11 @@
 Recommends:     cmake
 Recommends:     gcc
 Recommends:     gcc-c++
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
 
 %description
 Monitor new versions of a software library, try to build them
-and create profile for abi-tracker
+and create profiles for abi-tracker
 
 %prep
 %setup -q
@@ -59,7 +58,6 @@
 install -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1
 
 %files
-%defattr(-,root,root)
 %doc GPL-2.0 LGPL-2.1 LICENSE README
 %{_bindir}/*
 %{_datadir}/%{name}

++++++ abi-monitor-1.11.tar.gz -> abi-monitor-1.12.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/abi-monitor-1.11/abi-monitor.pl 
new/abi-monitor-1.12/abi-monitor.pl
--- old/abi-monitor-1.11/abi-monitor.pl 2017-06-18 06:20:31.000000000 +0200
+++ new/abi-monitor-1.12/abi-monitor.pl 2017-08-30 08:22:47.000000000 +0200
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 ##################################################################
-# ABI Monitor 1.11
+# ABI Monitor 1.12
 # A tool to monitor new versions of a software library, build them
 # and create profile for ABI Tracker.
 #
@@ -44,7 +44,7 @@
 use Cwd qw(abs_path cwd);
 use Data::Dumper;
 
-my $TOOL_VERSION = "1.11";
+my $TOOL_VERSION = "1.12";
 my $DB_PATH = "Monitor.data";
 my $REPO = "src";
 my $INSTALLED = "installed";
@@ -56,7 +56,7 @@
 my $CONNECT_TIMEOUT = 5;
 my $ACCESS_TRIES = 2;
 my $USE_CURL = 1;
-my $PKG_EXT = 
"tar\\.bz2|tar\\.gz|tar\\.xz|tar\\.lzma|tar\\.lz|tar\\.Z|tbz2|tgz|zip";
+my $PKG_EXT = 
"tar\\.bz2|tar\\.gz|tar\\.xz|tar\\.lzma|tar\\.lz|tar\\.Z|tbz2|tgz|txz|zip";
 
 # Internal modules
 my $MODULES_DIR = get_Modules();
@@ -159,7 +159,10 @@
 GENERAL OPTIONS:
   -get
       Download new library versions.
-      
+  
+  -get-old
+      Download old packages from OldSourceUrl option of the profile.
+  
   -build
       Build library versions.
   
@@ -198,6 +201,7 @@
 my $Profile;
 my $DB;
 my $TARGET_LIB;
+my $TARGET_TITLE;
 my $C_FLAGS;
 my $CXX_FLAGS;
 
@@ -757,7 +761,7 @@
         return -1;
     }
     
-    printMsg("INFO", "Downloading package \'$P\'");
+    printMsg("INFO", "Downloading package \'$P\' ($TARGET_TITLE)");
     
     if($Debug) {
         printMsg("INFO", "Link: \'$Link\'");
@@ -1101,7 +1105,7 @@
             $Links4{linkSum($Url, $1)} = 1;
         }
         while($Line=~s/(src|href)\s*\=\s*([^"'<>\s]+?)[ >]//i) {
-            $Links2{linkSum($Url, $2)} = 1;
+            $Links5{linkSum($Url, $2)} = 1;
         }
     }
     
@@ -1639,7 +1643,8 @@
     
     foreach my $Name ("NEWS", "CHANGES", "CHANGES.txt", "RELEASE_NOTES", 
"ChangeLog", "ChangeLog.md", "Changelog",
     "changelog", "RELEASE_NOTES.md", "CHANGELOG.md", "CHANGELOG.txt", 
"RELEASE_NOTES.markdown", "NEWS.md",
-    "CHANGES.md", "changes.txt", "changes", "CHANGELOG", "RELEASE-NOTES", 
"WHATSNEW", "CHANGE_LOG", "doc/ChangeLog")
+    "CHANGES.md", "changes.txt", "changes", "CHANGELOG", "RELEASE-NOTES", 
"WHATSNEW", "CHANGE_LOG", "doc/ChangeLog",
+    "ChangeLog.txt")
     {
         if(-f $Dir."/".$Name
         and (-s $Dir."/".$Name > $MIN_LOG))
@@ -2599,7 +2604,7 @@
         }
         
         chdir($To);
-        my $Cmd_B = $GCC." -nostdlib -shared -o \"$Object_S\" 
-Wl,--whole-archive \"$Object_A\"";
+        my $Cmd_B = $GCC." -shared -o \"$Object_S\" -Wl,--whole-archive 
\"$Object_A\" -Wl,--no-whole-archive"; # -nostdlib
         qx/$Cmd_B/;
         
         if($? or not -f $Object_S)
@@ -2777,6 +2782,11 @@
     $TARGET_LIB = $Profile->{"Name"};
     $DB_PATH = "db/".$TARGET_LIB."/".$DB_PATH;
     
+    $TARGET_TITLE = $TARGET_LIB;
+    if($Profile->{"Title"}) {
+        $TARGET_TITLE = $Profile->{"Title"};
+    }
+    
     $DB = readDB($DB_PATH);
     
     checkDB();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/abi-monitor-1.11/modules/Internals/Basic.pm 
new/abi-monitor-1.12/modules/Internals/Basic.pm
--- old/abi-monitor-1.11/modules/Internals/Basic.pm     2017-06-18 
06:20:31.000000000 +0200
+++ new/abi-monitor-1.12/modules/Internals/Basic.pm     2017-08-30 
08:22:47.000000000 +0200
@@ -142,7 +142,7 @@
 {
     my ($Path, $OutDir) = @_;
     
-    if($Path=~/\.(tar\.\w+|tgz|tbz2)\Z/i) {
+    if($Path=~/\.(tar\.\w+|tgz|tbz2|txz)\Z/i) {
         return "tar -xf $Path --directory=$OutDir";
     }
     elsif($Path=~/\.zip\Z/i) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/abi-monitor-1.11/modules/Internals/CmpVersions.pm 
new/abi-monitor-1.12/modules/Internals/CmpVersions.pm
--- old/abi-monitor-1.11/modules/Internals/CmpVersions.pm       2017-06-18 
06:20:31.000000000 +0200
+++ new/abi-monitor-1.12/modules/Internals/CmpVersions.pm       2017-08-30 
08:22:47.000000000 +0200
@@ -328,6 +328,52 @@
         }
     }
     
+    if(defined $Profile->{"KeepMiniMult"})
+    {
+        my @KeepMult = @{$Profile->{"KeepMiniMult"}};
+        
+        if(my $Mini = getVerNum($V, 2))
+        {
+            my $Keep = 0;
+            
+            foreach my $K (@KeepMult)
+            {
+                if($Mini % $K == 0)
+                {
+                    $Keep = 1;
+                    last;
+                }
+            }
+            
+            if(not $Keep) {
+                return 1;
+            }
+        }
+    }
+    
+    if(defined $Profile->{"KeepMicroMult"})
+    {
+        my @KeepMult = @{$Profile->{"KeepMicroMult"}};
+        
+        if(my $Micro = getVerNum($V, 3))
+        {
+            my $Keep = 0;
+            
+            foreach my $K (@KeepMult)
+            {
+                if($Micro % $K == 0)
+                {
+                    $Keep = 1;
+                    last;
+                }
+            }
+            
+            if(not $Keep) {
+                return 1;
+            }
+        }
+    }
+    
     if(defined $Profile->{"SkipOdd"})
     {
         if($V=~/\A\d+\.(\d+)/)
@@ -538,6 +584,17 @@
     return $V;
 }
 
+sub getVerNum($$)
+{
+    my ($V, $N) = @_;
+    
+    $V=~s/[\-_]/./g;
+    
+    my @P = split(/\./, $V);
+    
+    return $P[$N-1];
+}
+
 sub getVDepth($) {
     return $_[0]=~tr!\.!!;
 }


Reply via email to