2014-05-18 01:33:40 +02:00
|
|
|
#
|
|
|
|
# spec file for package kfilemetadata5
|
|
|
|
#
|
2017-01-09 00:40:54 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-05-18 01:33:40 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2016-07-25 22:59:46 +02:00
|
|
|
%bcond_without ffmpeg
|
2015-04-11 20:56:52 +02:00
|
|
|
%bcond_without lang
|
2017-09-12 20:58:29 +02:00
|
|
|
%define _tar_path 5.38
|
2014-05-18 01:33:40 +02:00
|
|
|
Name: kfilemetadata5
|
2017-09-12 20:58:29 +02:00
|
|
|
Version: 5.38.0
|
2014-05-18 01:33:40 +02:00
|
|
|
Release: 0
|
2015-08-12 19:17:58 +02:00
|
|
|
%define kf5_version %{version}
|
2014-05-18 01:33:40 +02:00
|
|
|
Summary: Extract Metadata
|
|
|
|
License: GPL-2.0+ and LGPL-2.1+ and LGPL-3.0
|
2014-05-18 01:42:03 +02:00
|
|
|
Group: Development/Libraries/KDE
|
2014-05-18 01:40:59 +02:00
|
|
|
Url: http://www.kde.org/
|
2017-04-27 22:25:01 +02:00
|
|
|
Source: http://download.kde.org/stable/frameworks/%{_tar_path}/kfilemetadata-%{version}.tar.xz
|
2014-09-11 18:01:33 +02:00
|
|
|
Source1: baselibs.conf
|
2016-04-17 22:59:17 +02:00
|
|
|
Patch0: ffmpeg-buildrequires.patch
|
2017-04-27 22:25:01 +02:00
|
|
|
BuildRequires: extra-cmake-modules >= %{_tar_path}
|
2016-07-25 22:59:46 +02:00
|
|
|
%if %{with ffmpeg}
|
2016-04-17 22:59:17 +02:00
|
|
|
BuildRequires: pkgconfig(libavcodec)
|
|
|
|
BuildRequires: pkgconfig(libavformat)
|
|
|
|
BuildRequires: pkgconfig(libavutil)
|
2015-03-31 20:58:25 +02:00
|
|
|
%endif
|
2017-04-27 22:25:01 +02:00
|
|
|
BuildRequires: karchive-devel >= %{_tar_path}
|
2014-05-18 01:33:40 +02:00
|
|
|
BuildRequires: kf5-filesystem
|
2017-04-27 22:25:01 +02:00
|
|
|
BuildRequires: ki18n-devel >= %{_tar_path}
|
2015-04-10 11:07:47 +02:00
|
|
|
BuildRequires: libattr-devel
|
2014-05-18 01:33:40 +02:00
|
|
|
BuildRequires: libepub-devel
|
|
|
|
BuildRequires: libexiv2-devel >= 0.21
|
2015-04-10 03:36:36 +02:00
|
|
|
BuildRequires: taglib-devel >= 1.9
|
2017-09-13 11:31:25 +02:00
|
|
|
BuildRequires: cmake(Qt5Multimedia) >= 5.6.0
|
2017-02-09 10:28:12 +01:00
|
|
|
BuildRequires: cmake(Qt5Test) >= 5.6.0
|
|
|
|
BuildRequires: cmake(Qt5Xml) >= 5.6.0
|
2016-02-05 14:23:46 +01:00
|
|
|
BuildRequires: pkgconfig(poppler-qt5)
|
2015-09-04 19:05:56 +02:00
|
|
|
Recommends: catdoc
|
2015-04-11 20:56:52 +02:00
|
|
|
%if %{with lang}
|
2015-01-08 19:50:00 +01:00
|
|
|
Recommends: %{name}-lang
|
2015-04-11 20:56:52 +02:00
|
|
|
%endif
|
2014-05-18 01:33:40 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2014-07-03 19:55:50 +02:00
|
|
|
A library for extracting file metadata.
|
2014-05-18 01:33:40 +02:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development package for kfilemetadata
|
2014-05-18 01:42:03 +02:00
|
|
|
Group: Development/Libraries/KDE
|
2014-05-18 01:33:40 +02:00
|
|
|
Requires: %{name} = %{version}
|
2017-04-27 22:25:01 +02:00
|
|
|
Requires: extra-cmake-modules >= %{_tar_path}
|
2017-02-09 10:28:12 +01:00
|
|
|
Requires: cmake(Qt5Core) >= 5.6.0
|
2014-05-18 01:33:40 +02:00
|
|
|
|
|
|
|
%description devel
|
2014-07-03 19:55:50 +02:00
|
|
|
A library for extracting file metadata. Development files
|
2014-05-18 01:33:40 +02:00
|
|
|
|
2015-01-08 19:50:00 +01:00
|
|
|
%lang_package
|
2014-05-18 01:33:40 +02:00
|
|
|
%prep
|
2014-06-05 17:56:48 +02:00
|
|
|
%setup -q -n kfilemetadata-%{version}
|
2016-04-17 22:59:17 +02:00
|
|
|
%patch0 -p1
|
2014-05-18 01:33:40 +02:00
|
|
|
|
|
|
|
%build
|
2016-07-06 18:37:40 +02:00
|
|
|
%cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=%{_kf5_localedir}
|
2014-05-18 01:33:40 +02:00
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
|
|
|
%kf5_makeinstall -C build
|
2016-07-06 18:37:40 +02:00
|
|
|
%if %{with lang}
|
|
|
|
%kf5_find_lang
|
|
|
|
%endif
|
2014-05-18 01:33:40 +02:00
|
|
|
|
2014-05-18 01:37:34 +02:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2014-05-18 01:33:40 +02:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING*
|
|
|
|
%{_kf5_plugindir}/
|
2014-07-03 19:55:50 +02:00
|
|
|
%{_kf5_libdir}/libKF5FileMetaData.so.*
|
2014-05-18 01:33:40 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING*
|
2014-07-03 19:55:50 +02:00
|
|
|
%{_kf5_libdir}/libKF5FileMetaData.so
|
|
|
|
%{_kf5_includedir}/KFileMetaData/
|
|
|
|
%{_kf5_libdir}/cmake/KF5FileMetaData/
|
2014-05-18 01:33:40 +02:00
|
|
|
|
2015-04-11 20:56:52 +02:00
|
|
|
%if %{with lang}
|
2016-07-06 18:37:40 +02:00
|
|
|
%files lang -f %{name}.lang
|
2015-01-08 19:50:00 +01:00
|
|
|
%doc COPYING*
|
2015-04-11 20:56:52 +02:00
|
|
|
%endif
|
2015-01-08 19:50:00 +01:00
|
|
|
|
2014-05-18 01:33:40 +02:00
|
|
|
%changelog
|