Hello community,

here is the log from the commit of package karchive for openSUSE:Factory 
checked in at 2014-07-10 08:18:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/karchive (Old)
 and      /work/SRC/openSUSE:Factory/.karchive.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "karchive"

Changes:
--------
--- /work/SRC/openSUSE:Factory/karchive/karchive.changes        2014-06-10 
14:37:05.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.karchive.new/karchive.changes   2014-07-10 
09:31:36.000000000 +0200
@@ -1,0 +2,10 @@
+Tue Jul  1 21:36:02 UTC 2014 - [email protected]
+
+- Update to 5.0.0
+  * Final release of KDE Frameworks 5
+  * API improvements and cleanups
+  * Buildsystem fixes
+  * For more details please see:
+    http://www.kde.org/announcements/kde-frameworks-5.0.php
+
+-------------------------------------------------------------------

Old:
----
  karchive-4.100.0.tar.xz

New:
----
  karchive-5.0.0.tar.xz

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

Other differences:
------------------
++++++ karchive.spec ++++++
--- /var/tmp/diff_new_pack.7sk6Py/_old  2014-07-10 09:31:36.000000000 +0200
+++ /var/tmp/diff_new_pack.7sk6Py/_new  2014-07-10 09:31:36.000000000 +0200
@@ -18,10 +18,10 @@
 
 %define lname   libKF5Archive5
 Name:           karchive
-Version:        4.100.0
+Version:        5.0.0
 Release:        0
 BuildRequires:  cmake >= 2.8.12
-BuildRequires:  extra-cmake-modules >= 0.0.14
+BuildRequires:  extra-cmake-modules >= 1.0.0
 BuildRequires:  fdupes
 BuildRequires:  kf5-filesystem
 BuildRequires:  pkgconfig(Qt5Core) >= 5.2.0
@@ -32,7 +32,7 @@
 License:        LGPL-2.1+
 Group:          System/GUI/KDE
 Url:            http://www.kde.org
-Source:         
http://download.kde.org/unstable/frameworks/%{version}/%{name}-%{version}.tar.xz
+Source:         
http://download.kde.org/stable/frameworks/%{version}/%{name}-%{version}.tar.xz
 Source1:        baselibs.conf
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 

++++++ karchive-4.100.0.tar.xz -> karchive-5.0.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/karchive-4.100.0/CMakeLists.txt 
new/karchive-5.0.0/CMakeLists.txt
--- old/karchive-4.100.0/CMakeLists.txt 2014-06-01 12:37:42.000000000 +0200
+++ new/karchive-5.0.0/CMakeLists.txt   2014-07-01 20:13:29.000000000 +0200
@@ -2,7 +2,7 @@
 
 project(KArchive)
 
-find_package(ECM 0.0.14 REQUIRED NO_MODULE)
+find_package(ECM 1.0.0 REQUIRED NO_MODULE)
 
 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
 
@@ -45,7 +45,7 @@
 include(ECMSetupVersion)
 include(ECMGenerateHeaders)
 
-set(KF5_VERSION "4.100.0") # handled by release scripts
+set(KF5_VERSION "5.0.0") # handled by release scripts
 
 ecm_setup_version(${KF5_VERSION}
     VARIABLE_PREFIX KARCHIVE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/karchive-4.100.0/autotests/CMakeLists.txt 
new/karchive-5.0.0/autotests/CMakeLists.txt
--- old/karchive-4.100.0/autotests/CMakeLists.txt       2014-06-01 
12:37:42.000000000 +0200
+++ new/karchive-5.0.0/autotests/CMakeLists.txt 2014-07-01 20:13:29.000000000 
+0200
@@ -13,20 +13,19 @@
     karchivetest.cpp
     kfiltertest.cpp
     deprecatedtest.cpp
-    NAME_PREFIX "karchive-"
     LINK_LIBRARIES KF5::Archive Qt5::Test
 )
 
-target_compile_definitions(karchive-deprecatedtest PRIVATE 
KARCHIVE_DEPRECATED=)
-target_link_libraries(karchive-kfiltertest ${ZLIB_LIBRARIES})
+target_compile_definitions(deprecatedtest PRIVATE KARCHIVE_DEPRECATED=)
+target_link_libraries(kfiltertest ${ZLIB_LIBRARIES})
 
 ########### klimitediodevicetest ###############
 
 ecm_add_test(
     klimitediodevicetest.cpp
     ../src/klimitediodevice.cpp
-    TEST_NAME karchive-klimitediodevicetest
+    TEST_NAME klimitediodevicetest
     LINK_LIBRARIES Qt5::Test
 )
-target_include_directories(karchive-klimitediodevicetest
+target_include_directories(klimitediodevicetest
     PRIVATE $<TARGET_PROPERTY:KF5Archive,INTERFACE_INCLUDE_DIRECTORIES>)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/karchive-4.100.0/examples/bzip2gzip/CMakeLists.txt 
new/karchive-5.0.0/examples/bzip2gzip/CMakeLists.txt
--- old/karchive-4.100.0/examples/bzip2gzip/CMakeLists.txt      1970-01-01 
01:00:00.000000000 +0100
+++ new/karchive-5.0.0/examples/bzip2gzip/CMakeLists.txt        2014-07-01 
20:13:29.000000000 +0200
@@ -0,0 +1,8 @@
+cmake_minimum_required(VERSION 2.8.12)
+
+project(BZip2GZip)
+
+find_package(KF5Archive ${KF5_VERSION} REQUIRED)
+
+add_executable(bzip2gzip main.cpp)
+target_link_libraries(bzip2gzip KF5::Archive)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/karchive-4.100.0/examples/bzip2gzip/main.cpp 
new/karchive-5.0.0/examples/bzip2gzip/main.cpp
--- old/karchive-4.100.0/examples/bzip2gzip/main.cpp    1970-01-01 
01:00:00.000000000 +0100
+++ new/karchive-5.0.0/examples/bzip2gzip/main.cpp      2014-07-01 
20:13:29.000000000 +0200
@@ -0,0 +1,91 @@
+/*  This file is part of the KDE project
+
+    Copyright (C) 2014 Maarten De Meyer <[email protected]>
+
+    You may use this file under the terms of the BSD license as follows:
+
+    Redistribution and use in source and binary forms, with or without
+    modification, are permitted provided that the following conditions
+    are met:
+
+    1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+    2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in the
+      documentation and/or other materials provided with the distribution.
+
+    THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+    OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+    IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+    INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+    NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+    THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * bzip2gzip
+ * This example shows the usage of KCompressionDevice.
+ * It converts BZip2 files to GZip archives.
+ *
+ * api: KCompressionDevice(QIODevice * inputDevice, bool 
autoDeleteInputDevice, CompressionType type)
+ * api: KCompressionDevice(const QString & fileName, CompressionType type)
+ * api: QIODevice::readAll()
+ * api: QIODevice::read(qint64 maxSize)
+ * api: QIODevice::write(const QByteArray &data)
+ *
+ * Usage: ./bzip2gzip <archive.bz2>
+*/
+
+#include <QCoreApplication>
+#include <QStringList>
+#include <QFile>
+#include <QFileInfo>
+
+#include <KCompressionDevice>
+
+int main(int argc, char *argv[])
+{
+    QCoreApplication app(argc, argv);
+    QStringList args(app.arguments());
+
+    if (args.size() != 2) {
+        qWarning("Usage: ./bzip2gzip <archive.bz2>");
+        return 1;
+    }
+
+    QString inputFile = args.at(1);
+    QFile file(inputFile);
+    QFileInfo info(inputFile);
+
+    if (info.suffix() != QStringLiteral("bz2")) {
+        qCritical("Error: not a valid BZip2 file!");
+        return 1;
+    }
+
+    // Open the input archive
+    KCompressionDevice input(&file, false, KCompressionDevice::BZip2);
+    input.open(QIODevice::ReadOnly);
+
+    QString outputFile = (info.completeBaseName() + QStringLiteral(".gz"));
+
+    // Open the new output file
+    KCompressionDevice output(outputFile, KCompressionDevice::GZip);
+    output.open(QIODevice::WriteOnly);
+
+    while(!input.atEnd()) {
+        // Read and uncompress the data
+        QByteArray data = input.read(512);
+
+        // Write data like you would to any other QIODevice
+        output.write(data);
+    }
+
+    input.close();
+    output.close();
+
+    return 0;
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/karchive-4.100.0/examples/unzipper/CMakeLists.txt 
new/karchive-5.0.0/examples/unzipper/CMakeLists.txt
--- old/karchive-4.100.0/examples/unzipper/CMakeLists.txt       1970-01-01 
01:00:00.000000000 +0100
+++ new/karchive-5.0.0/examples/unzipper/CMakeLists.txt 2014-07-01 
20:13:29.000000000 +0200
@@ -0,0 +1,8 @@
+cmake_minimum_required(VERSION 2.8.12)
+
+project(Unzipper)
+
+find_package(KF5Archive ${KF5_VERSION} REQUIRED)
+
+add_executable(unzipper main.cpp)
+target_link_libraries(unzipper KF5::Archive)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/karchive-4.100.0/examples/unzipper/main.cpp 
new/karchive-5.0.0/examples/unzipper/main.cpp
--- old/karchive-4.100.0/examples/unzipper/main.cpp     1970-01-01 
01:00:00.000000000 +0100
+++ new/karchive-5.0.0/examples/unzipper/main.cpp       2014-07-01 
20:13:29.000000000 +0200
@@ -0,0 +1,77 @@
+/*  This file is part of the KDE project
+
+    Copyright (C) 2014 Maarten De Meyer <[email protected]>
+
+    You may use this file under the terms of the BSD license as follows:
+
+    Redistribution and use in source and binary forms, with or without
+    modification, are permitted provided that the following conditions
+    are met:
+
+    1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+    2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in the
+      documentation and/or other materials provided with the distribution.
+
+    THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+    OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+    IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+    INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+    NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+    THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Unzipper
+ * This example shows how to extract all files from a zip archive.
+ *
+ * api: KArchive::directory()
+ * api: KArchiveDirectory::copyTo(QString destination, bool recursive)
+ *
+ * Usage: ./unzipper <archive>
+*/
+
+#include <QCoreApplication>
+#include <QDir>
+
+#include <kzip.h>
+
+int main(int argc, char *argv[])
+{
+    QCoreApplication app(argc, argv);
+    QStringList args(app.arguments());
+
+    if (args.size() != 2) {
+        // Too many or too few arguments
+        qWarning("Usage: ./unzipper <archive.zip>");
+        return 1;
+    }
+
+    QString file = args.at(1);
+    KZip archive(file);
+
+    // Open the archive
+    if (!archive.open(QIODevice::ReadOnly)) {
+        qWarning("Cannot open " + file.toLatin1());
+        qWarning("Is it a valid zip file?");
+        return 1;
+    }
+
+    // Take the root folder from the archive and create a KArchiveDirectory 
object.
+    // KArchiveDirectory represents a directory in a KArchive.
+    const KArchiveDirectory *root = archive.directory();
+
+    // We can extract all contents from a KArchiveDirectory to a destination.
+    // recursive true will also extract subdirectories.
+    QString destination = QDir::currentPath();
+    bool recursive = true;
+    root->copyTo(destination, recursive);
+
+    archive.close();
+    return 0;
+}

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

Reply via email to