Hello community,

here is the log from the commit of package kfilemetadata5 for openSUSE:Factory 
checked in at 2015-09-24 07:11:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kfilemetadata5 (Old)
 and      /work/SRC/openSUSE:Factory/.kfilemetadata5.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kfilemetadata5"

Changes:
--------
--- /work/SRC/openSUSE:Factory/kfilemetadata5/kfilemetadata5.changes    
2015-09-08 17:38:32.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.kfilemetadata5.new/kfilemetadata5.changes       
2015-09-24 07:11:34.000000000 +0200
@@ -1,0 +2,10 @@
+Tue Sep  8 17:13:05 UTC 2015 - [email protected]
+
+- Update to 5.14.0
+  * PlainTextExtractor: enable O_NOATIME branch on GNU libc platforms
+  * PlainTextExtractor: make the Linux branch work also without O_NOATIME
+  * PlainTextExtractor: fix error check on open(O_NOATIME) failure
+  * For more details please see:
+    https://www.kde.org/announcements/kde-frameworks-5.14.0.php
+
+-------------------------------------------------------------------

Old:
----
  kfilemetadata-5.13.0.tar.xz

New:
----
  kfilemetadata-5.14.0.tar.xz

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

Other differences:
------------------
++++++ kfilemetadata5.spec ++++++
--- /var/tmp/diff_new_pack.gjKycP/_old  2015-09-24 07:11:35.000000000 +0200
+++ /var/tmp/diff_new_pack.gjKycP/_new  2015-09-24 07:11:35.000000000 +0200
@@ -17,9 +17,9 @@
 
 
 %bcond_without lang
-%define _tar_path 5.13
+%define _tar_path 5.14
 Name:           kfilemetadata5
-Version:        5.13.0
+Version:        5.14.0
 Release:        0
 %define kf5_version %{version}
 Summary:        Extract Metadata
@@ -59,7 +59,7 @@
 Summary:        Development package for kfilemetadata
 Group:          Development/Libraries/KDE
 Requires:       %{name} = %{version}
-Requires:       extra-cmake-modules >= 1.0.0
+Requires:       extra-cmake-modules >= %{_tar_path}
 Requires:       cmake(Qt5Core) >= 5.4.0
 
 %description devel

++++++ kfilemetadata-5.13.0.tar.xz -> kfilemetadata-5.14.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kfilemetadata-5.13.0/CMakeLists.txt 
new/kfilemetadata-5.14.0/CMakeLists.txt
--- old/kfilemetadata-5.13.0/CMakeLists.txt     2015-08-04 12:56:30.000000000 
+0200
+++ new/kfilemetadata-5.14.0/CMakeLists.txt     2015-09-05 11:00:05.000000000 
+0200
@@ -3,7 +3,7 @@
 project(kfilemetadata)
 
 include(FeatureSummary)
-find_package(ECM 5.13.0  NO_MODULE)
+find_package(ECM 5.14.0  NO_MODULE)
 set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake 
Modules." URL 
"https://projects.kde.org/projects/kdesupport/extra-cmake-modules";)
 feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND 
FATAL_ON_MISSING_REQUIRED_PACKAGES)
 
@@ -17,8 +17,8 @@
 include(ECMSetupVersion)
 include(ECMGenerateHeaders)
 
-set(KF5_VERSION "5.13.0") # handled by release scripts
-set(KF5_DEP_VERSION "5.13.0") # handled by release scripts
+set(KF5_VERSION "5.14.0") # handled by release scripts
+set(KF5_DEP_VERSION "5.14.0") # handled by release scripts
 
 ecm_setup_version(${KF5_VERSION}
                   VARIABLE_PREFIX KFILEMETADATA
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kfilemetadata-5.13.0/README.md 
new/kfilemetadata-5.14.0/README.md
--- old/kfilemetadata-5.13.0/README.md  1970-01-01 01:00:00.000000000 +0100
+++ new/kfilemetadata-5.14.0/README.md  2015-09-05 11:00:05.000000000 +0200
@@ -0,0 +1,53 @@
+# KFileMetaData
+
+## Introduction
+
+KFileMetaData provides a simple library for extracting the text and metadata
+from a number of different files. This library is typically used by file
+indexers to retreive the metadata.
+
+## Using the library
+
+In order to use the library you must implement your own `ExtractionResult`
+class. Instances of this class will be passed to every applicable plugin and
+they will populate with the information.
+
+For convenience a `SimpleResult` class has been provided which stores all the
+data in memory and allows it to be introspected later. Most clients *should*
+implement thier own `ExtractionResult` as the data can get quite large when
+extracting the text content from very large files.
+
+## Extracting Metadata from a file
+
+This requires us to create a `ExtractionPluginManger` class, fetch the 
extractor
+plugins which are applicable for that file, and then pass the instance of
+`ExtractionResult` to each Extractor.
+
+A simple test example called `dump.cpp` has been written.
+
+## Writing a custom file extractor
+
+The Metadata is extracted with the help of Extraction Plugins. Each plugin
+provides a list of mimetypes that it supports, and implements the extraction
+function which extracts the data and fills it in an `ExtractionResult`.
+
+Most of the common file types are already provided by the library.
+
+Extractors should typically avoid implementing any logic themselves and should
+just be wrappers on top of existing libraries.
+
+### Adding data into an `ExtractionResult`
+
+The ExtractionResult can be filled with (key, value) pairs and plain text. The
+keys in these pairs typically correspond to a predefinied property. The list
+of properties is defined in the `properties.h` header. Every plugin should
+use the properties defined in this header. If a required property is missing
+then it should be added to this framework.
+
+The ExtractionResult should also be given a list of types. These types are
+defined in the `types.h` header. The correspond to a higher level overview
+of the files which the user typically expects.
+
+## Links
+- Mailing list: <https://mail.kde.org/mailman/listinfo/kde-devel>
+- IRC channel: #kde-devel on Freenode
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kfilemetadata-5.13.0/Readme.md 
new/kfilemetadata-5.14.0/Readme.md
--- old/kfilemetadata-5.13.0/Readme.md  2015-08-04 12:56:30.000000000 +0200
+++ new/kfilemetadata-5.14.0/Readme.md  1970-01-01 01:00:00.000000000 +0100
@@ -1,51 +0,0 @@
-# KFileMetaData
-
-KFileMetaData provides a simple library for extracting the text and metadata
-from a number of different files. This library is typically used by file
-indexers to retreive the metadata.
-
-## Using the library
-
-In order to use the library you must implement your own `ExtractionResult`
-class. Instances of this class will be passed to every applicable plugin and
-they will populate with the information.
-
-For convenience a `SimpleResult` class has been provided which stores all the
-data in memory and allows it to be introspected later. Most clients *should*
-implement thier own `ExtractionResult` as the data can get quite large when
-extracting the text content from very large files.
-
-## Extracting Metadata from a file
-
-This requires us to create a `ExtractionPluginManger` class, fetch the 
extractor
-plugins which are applicable for that file, and then pass the instance of
-`ExtractionResult` to each Extractor.
-
-A simple test example called `dump.cpp` has been written.
-
-## Writing a custom file extractor
-
-The Metadata is extracted with the help of Extraction Plugins. Each plugin
-provides a list of mimetypes that it supports, and implements the extraction
-function which extracts the data and fills it in an `ExtractionResult`.
-
-Most of the common file types are already provided by the library.
-
-Extractors should typically avoid implementing any logic themselves and should
-just be wrappers on top of existing libraries.
-
-### Adding data into an `ExtractionResult`
-
-The ExtractionResult can be filled with (key, value) pairs and plain text. The
-keys in these pairs typically correspond to a predefinied property. The list
-of properties is defined in the `properties.h` header. Every plugin should
-use the properties defined in this header. If a required property is missing
-then it should be added to this framework.
-
-The ExtractionResult should also be given a list of types. These types are
-defined in the `types.h` header. The correspond to a higher level overview
-of the files which the user typically expects.
-
-## Links
-- Mailing list: <https://mail.kde.org/mailman/listinfo/kde-devel>
-- IRC channel: #kde-devel on Freenode
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kfilemetadata-5.13.0/po/da/kfilemetadata.po 
new/kfilemetadata-5.14.0/po/da/kfilemetadata.po
--- old/kfilemetadata-5.13.0/po/da/kfilemetadata.po     2015-08-04 
12:56:30.000000000 +0200
+++ new/kfilemetadata-5.14.0/po/da/kfilemetadata.po     2015-09-05 
11:00:05.000000000 +0200
@@ -1,13 +1,13 @@
 # Copyright (C) YEAR This_file_is_part_of_KDE
 # This file is distributed under the same license as the PACKAGE package.
 #
-# Martin Schlander <[email protected]>, 2014.
+# Martin Schlander <[email protected]>, 2014, 2015.
 msgid ""
 msgstr ""
 "Project-Id-Version: \n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n";
 "POT-Creation-Date: 2015-04-18 09:10+0000\n"
-"PO-Revision-Date: 2014-08-26 20:04+0200\n"
+"PO-Revision-Date: 2015-08-26 19:59+0200\n"
 "Last-Translator: Martin Schlander <[email protected]>\n"
 "Language-Team: Danish <[email protected]>\n"
 "Language: da\n"
@@ -185,17 +185,17 @@
 #: src/propertyinfo.cpp:260
 msgctxt "@label EXIF"
 msgid "Photo GPS Latitude"
-msgstr ""
+msgstr "Foto GPS-breddegrad"
 
 #: src/propertyinfo.cpp:266
 msgctxt "@label EXIF"
 msgid "Photo GPS Longitude"
-msgstr ""
+msgstr "Foto GPS-længdegrad"
 
 #: src/propertyinfo.cpp:272
 msgctxt "@label EXIF"
 msgid "Photo GPS Altitude"
-msgstr ""
+msgstr "Foto GPS-højde"
 
 #: src/propertyinfo.cpp:278
 msgctxt "@label EXIF"
@@ -275,22 +275,19 @@
 #: src/propertyinfo.cpp:370
 msgctxt "@label number of translatable strings"
 msgid "Translatable Units"
-msgstr ""
+msgstr "Enheder som kan oversættes"
 
 #: src/propertyinfo.cpp:377
 msgctxt "@label number of translated strings"
 msgid "Translations"
-msgstr ""
+msgstr "Oversættelser"
 
 #: src/propertyinfo.cpp:385
 msgctxt "@label number of fuzzy translated strings"
 msgid "Draft Translations"
-msgstr ""
+msgstr "Kladder til oversættelser"
 
 #: src/propertyinfo.cpp:392
-#, fuzzy
-#| msgctxt "@label"
-#| msgid "Author"
 msgctxt "@label translation author"
 msgid "Author"
 msgstr "Ophavsmand"
@@ -298,15 +295,12 @@
 #: src/propertyinfo.cpp:399
 msgctxt "@label translations last update"
 msgid "Last Update"
-msgstr ""
+msgstr "Sidst opdateret"
 
 #: src/propertyinfo.cpp:406
-#, fuzzy
-#| msgctxt "@label EXIF"
-#| msgid "Image Orientation"
 msgctxt "@label date of template creation8"
 msgid "Template Creation"
-msgstr "Billedorientering"
+msgstr "Oprettelse af skabelon"
 
 #: src/typeinfo.cpp:47
 msgctxt "@label"
@@ -351,4 +345,4 @@
 #: src/typeinfo.cpp:87
 msgctxt "@label"
 msgid "Folder"
-msgstr ""
+msgstr "Mappe"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/kfilemetadata-5.13.0/src/extractors/plaintextextractor.cpp 
new/kfilemetadata-5.14.0/src/extractors/plaintextextractor.cpp
--- old/kfilemetadata-5.13.0/src/extractors/plaintextextractor.cpp      
2015-08-04 12:56:30.000000000 +0200
+++ new/kfilemetadata-5.14.0/src/extractors/plaintextextractor.cpp      
2015-09-05 11:00:05.000000000 +0200
@@ -26,7 +26,7 @@
 
 #include <fstream>
 
-#ifdef __linux__
+#if defined(Q_OS_LINUX) || defined(__GLIBC__)
     #include <sys/types.h>
     #include <sys/stat.h>
     #include <fcntl.h>
@@ -48,11 +48,16 @@
 
 void PlainTextExtractor::extract(ExtractionResult* result)
 {
-#ifdef __linux__
+#if defined(Q_OS_LINUX) || defined(__GLIBC__)
     QByteArray filePath = QFile::encodeName(result->inputUrl());
 
+#ifdef O_NOATIME
     int fd = open(filePath.constData(), O_RDONLY | O_NOATIME);
-    if (!fd) {
+    if (fd < 0)
+#else
+    int fd;
+#endif
+    {
         fd = open(filePath.constData(), O_RDONLY);
     }
 
@@ -99,7 +104,7 @@
     std::string line;
     int lines = 0;
 
-    std::ifstream fstream(QFile::encodeName(result->inputUrl()));
+    std::ifstream fstream(QFile::encodeName(result->inputUrl()).constData());
     if (!fstream.is_open()) {
         return;
     }


Reply via email to