+++ /dev/null
---- libextractor-1.2/src/plugins/thumbnailffmpeg_extractor.c.orig 2013-08-28 11:30:31.000000000 +0200
-+++ libextractor-1.2/src/plugins/thumbnailffmpeg_extractor.c 2013-10-27 07:03:46.045814925 +0100
-@@ -327,10 +327,10 @@
- #endif
- }
-
--#if AV_VERSION_INT(54,25,0) > LIBAVUTIL_VERSION_INT
-+#if AV_VERSION_INT(54,25,0) > LIBAVCODEC_VERSION_INT
- #define ENUM_CODEC_ID enum CodecID
- #else
--#define ENUM_CODEC_ID enum AvCodecID
-+#define ENUM_CODEC_ID enum AVCodecID
- #endif
-
-
--- /dev/null
+--- libextractor-1.3/po/pl.po.orig 2013-12-22 23:11:22.000000000 +0100
++++ libextractor-1.3/po/pl.po 2013-12-26 20:33:06.570265595 +0100
+@@ -5,10 +5,10 @@
+ #
+ msgid ""
+ msgstr ""
+-"Project-Id-Version: libextractor 1.0.0-pre1\n"
++"Project-Id-Version: libextractor 1.3\n"
+ "Report-Msgid-Bugs-To: libextractor@gnu.org\n"
+ "POT-Creation-Date: 2013-12-22 23:11+0100\n"
+-"PO-Revision-Date: 2012-12-01 15:45+0100\n"
++"PO-Revision-Date: 2013-12-26 20:30+0100\n"
+ "Last-Translator: Jakub Bogusz <qboosh@pld-linux.org>\n"
+ "Language-Team: Polish <translation-team-pl@lists.sourceforge.net>\n"
+ "Language: pl\n"
+@@ -129,9 +129,8 @@
+ msgstr "Opcja --help pozwala uzyskać listę opcji.\n"
+
+ #: src/main/extract.c:964
+-#, fuzzy
+ msgid "% BiBTeX file\n"
+-msgstr "%% plik BiBTeX\n"
++msgstr "% plik BiBTeX\n"
+
+ #: src/main/extract.c:972
+ #, c-format
+@@ -1693,7 +1692,6 @@
+ msgstr "numer sezonu przestawienia/serialu"
+
+ #: src/main/extractor_metatypes.c:504
+-#, fuzzy
+ msgid "grouping"
+ msgstr "grupowanie"
+
+@@ -1854,14 +1852,12 @@
+ msgstr "czas trwania strumienia napisów"
+
+ #: src/main/extractor_metatypes.c:551
+-#, fuzzy
+ msgid "audio preview"
+-msgstr "prędkosć transmisji dźwięku"
++msgstr "podgląd dźwięku"
+
+ #: src/main/extractor_metatypes.c:552
+-#, fuzzy
+ msgid "a preview of the file audio stream"
+-msgstr "częstotliwość próbkowania ścieżki dźwiękowej"
++msgstr "podgląd strumienia dźwięku z pliku"
+
+ #: src/main/extractor_metatypes.c:554 src/main/extractor_metatypes.c:555
+ msgid "last"
# install plugins under:
---- libextractor-1.0.1/src/plugins/rpm_extractor.c.orig 2012-08-06 13:02:13.000000000 +0200
-+++ libextractor-1.0.1/src/plugins/rpm_extractor.c 2012-12-01 21:35:01.967430974 +0100
+--- libextractor-1.3/src/plugins/rpm_extractor.c.orig 2013-11-28 22:16:45.000000000 +0100
++++ libextractor-1.3/src/plugins/rpm_extractor.c 2013-12-26 20:29:36.083607762 +0100
@@ -25,9 +25,10 @@
#include "platform.h"
#include "extractor.h"
+#include <rpmio.h>
+#include <rpmts.h>
+#include <rpmlog.h>
- #include <pthread.h>
- #include <sys/types.h>
- #include <signal.h>
-@@ -124,6 +125,7 @@ pipe_feeder (void * args)
+ #if SOMEBSD
+ #include <pthread_np.h>
+ #else
+@@ -128,6 +129,7 @@ pipe_feeder (void * args)
* LOG callback called by librpm. Does nothing, we
* just need this to override the default behavior.
*/
+#ifdef RPMLOG_DEFAULT
- static int
+ static int
discard_log_callback (rpmlogRec rec,
- void *ctx)
-@@ -131,7 +133,9 @@ discard_log_callback (rpmlogRec rec,
+ void *ctx)
+@@ -135,6 +137,9 @@ discard_log_callback (rpmlogRec rec,
/* do nothing! */
return 0;
}
--
+#else
+static void discard_log_callback() { }
+#endif
+
/**
- * Mapping from RPM tags to LE types.
-@@ -236,6 +240,12 @@ static struct Matches tests[] = {
+@@ -240,6 +245,12 @@ static struct Matches tests[] = {
{0, 0}
};
+#endif
/**
- * Main entry method for the 'application/x-rpm' extraction plugin.
-@@ -251,7 +261,7 @@ EXTRACTOR_rpm_extract_method (struct EXT
+ * Main entry method for the 'application/x-rpm' extraction plugin.
+@@ -255,7 +266,7 @@ EXTRACTOR_rpm_extract_method (struct EXT
const char *str;
Header hdr;
HeaderIterator hi;
int i;
FD_t fdi;
rpmRC rc;
-@@ -282,7 +292,11 @@ EXTRACTOR_rpm_extract_method (struct EXT
+@@ -286,7 +297,11 @@ EXTRACTOR_rpm_extract_method (struct EXT
CLOSE (parg.pi[1]);
return;
}
fdi = fdDup (parg.pi[0]);
ts = rpmtsCreate();
rc = rpmReadPackageFile (ts, fdi, "GNU libextractor", &hdr);
-@@ -310,19 +324,38 @@ EXTRACTOR_rpm_extract_method (struct EXT
+@@ -314,19 +329,38 @@ EXTRACTOR_rpm_extract_method (struct EXT
goto END;
}
pthread_mutex_unlock (&parg.lock);
case RPM_STRING_ARRAY_TYPE:
case RPM_I18NSTRING_TYPE:
- case RPM_STRING_TYPE:
-- while (NULL != (str = rpmtdNextString (p)))
+- while (NULL != (str = rpmtdNextString (p)))
+ for(p->ix = 0; p->ix < p->c; p->ix++)
{
pthread_mutex_lock (&parg.lock);
- if (0 != ec->proc (ec->cls,
-@@ -330,8 +363,8 @@ EXTRACTOR_rpm_extract_method (struct EXT
+ if (0 != ec->proc (ec->cls,
+@@ -334,8 +368,8 @@ EXTRACTOR_rpm_extract_method (struct EXT
tests[i].type,
EXTRACTOR_METAFORMAT_UTF8,
"text/plain",
- strlen (str) + 1))
+ p->p.argv[p->ix],
+ strlen (p->p.argv[p->ix]) + 1))
-
- {
+
+ {
pthread_mutex_unlock (&parg.lock);
-@@ -340,12 +373,12 @@ EXTRACTOR_rpm_extract_method (struct EXT
+@@ -344,12 +378,12 @@ EXTRACTOR_rpm_extract_method (struct EXT
pthread_mutex_unlock (&parg.lock);
}
break;
time_t tp = (time_t) *v;
ctime_r (&tp, tmp);
-@@ -367,7 +400,7 @@ EXTRACTOR_rpm_extract_method (struct EXT
+@@ -371,7 +405,7 @@ EXTRACTOR_rpm_extract_method (struct EXT
else
{
char tmp[14];
- uint32_t *s = rpmtdNextUint32 (p);
+ uint32_t *s = p->p.ui32p;
- snprintf (tmp,
- sizeof (tmp),
-@@ -394,7 +427,6 @@ EXTRACTOR_rpm_extract_method (struct EXT
- }
+ snprintf (tmp,
+ sizeof (tmp),
+@@ -398,7 +432,6 @@ EXTRACTOR_rpm_extract_method (struct EXT
+ }
}
CLEANUP:
- rpmtdFree (p);
headerFreeIterator (hi);
- END:
+ END:
Summary: Meta-data extraction library
Summary(pl.UTF-8): Biblioteka do ekstrakcji metadanych
Name: libextractor
-Version: 1.2
+Version: 1.3
Release: 1
License: GPL v3+
Group: Libraries
Source0: http://ftp.gnu.org/gnu/libextractor/%{name}-%{version}.tar.gz
-# Source0-md5: d88c1b7fab9c59486badaa38ca68a600
+# Source0-md5: 35b8913dbebafe583a2781bf71509c48
Patch0: %{name}-info.patch
Patch1: %{name}-rpm5.patch
-Patch2: %{name}-ffmpeg2.patch
+Patch2: %{name}-pl.po-update.patch
URL: http://www.gnu.org/software/libextractor/
BuildRequires: autoconf >= 2.61
BuildRequires: automake >= 1:1.11
GIF, RPM, RA, RM, PS, PDF, ZIP, QT, ASF).
%package thumbnail-ffmpeg
-Summary: FFmpeg Thumbnail plugin for libextractor
-Summary(pl.UTF-8): Wtyczka obsługująca miniaturki obrazów poprzez FFmpeg dla biblioteki libextractor
+Summary: FFmpeg Thumbnail and audio preview plugins for libextractor
+Summary(pl.UTF-8): Wtyczki obsługująca miniaturki obrazów oraz podgląd dźwięku poprzez FFmpeg dla biblioteki libextractor
Group: Libraries
Requires: %{name} = %{version}-%{release}
%description thumbnail-ffmpeg
-libextractor plugin that supports thumbnails through FFmpeg.
+libextractor plugins that supports thumbnails and audio preview
+through FFmpeg.
%description thumbnail-ffmpeg -l pl.UTF-8
-Wtyczka biblioteki libextractor obsługująca miniaturki obrazów poprzez
-FFmpeg.
+Wtyczki biblioteki libextractor obsługujące miniaturki obrazów oraz
+podgląd dźwięku poprzez FFmpeg.
%package thumbnail-gtk
Summary: GTK+ Thumbnail plugin for libextractor
%files thumbnail-ffmpeg
%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/libextractor_previewopus.so
%attr(755,root,root) %{_libdir}/%{name}/libextractor_thumbnailffmpeg.so
%files thumbnail-gtk