2014-05-18 01:33:40 +02:00
|
|
|
#
|
|
|
|
# spec file for package kfilemetadata5
|
|
|
|
#
|
2021-01-09 13:18:48 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
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.
|
|
|
|
|
2018-10-16 14:24:55 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-05-18 01:33:40 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-09-13 14:34:03 +02:00
|
|
|
# Full KF5 version (e.g. 5.33.0)
|
|
|
|
%{!?_kf5_version: %global _kf5_version %{version}}
|
|
|
|
# Last major and minor KF5 version (e.g. 5.33)
|
2018-07-17 10:57:57 +02:00
|
|
|
%{!?_kf5_bugfix_version: %define _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')}
|
2018-08-20 14:58:39 +02:00
|
|
|
%bcond_without ffmpeg
|
2024-01-15 15:09:22 +01:00
|
|
|
%define qt5_version 5.15.2
|
2022-01-09 11:15:03 +01:00
|
|
|
%bcond_without released
|
2014-05-18 01:33:40 +02:00
|
|
|
Name: kfilemetadata5
|
2024-01-14 16:36:47 +01:00
|
|
|
Version: 5.114.0
|
2014-05-18 01:33:40 +02:00
|
|
|
Release: 0
|
2018-12-17 07:23:30 +01:00
|
|
|
Summary: Library for extracting Metadata
|
2018-03-14 14:00:32 +01:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-3.0-only
|
2018-10-16 14:24:55 +02:00
|
|
|
URL: https://www.kde.org
|
2021-11-12 13:20:54 +01:00
|
|
|
Source: kfilemetadata-%{version}.tar.xz
|
2022-01-09 11:15:03 +01:00
|
|
|
%if %{with released}
|
2021-11-12 13:20:54 +01:00
|
|
|
Source1: kfilemetadata-%{version}.tar.xz.sig
|
2019-08-11 23:07:18 +02:00
|
|
|
Source2: frameworks.keyring
|
|
|
|
%endif
|
2024-01-15 15:09:22 +01:00
|
|
|
BuildRequires: extra-cmake-modules >= %{_kf5_version}
|
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
|
2018-08-20 14:58:39 +02:00
|
|
|
BuildRequires: pkgconfig
|
2018-01-17 16:27:28 +01:00
|
|
|
BuildRequires: taglib-devel >= 1.9
|
2024-01-15 15:09:22 +01:00
|
|
|
BuildRequires: cmake(KF5Archive) >= %{_kf5_version}
|
|
|
|
BuildRequires: cmake(KF5CoreAddons) >= %{_kf5_version}
|
|
|
|
BuildRequires: cmake(KF5Config) >= %{_kf5_version}
|
|
|
|
BuildRequires: cmake(KF5I18n) >= %{_kf5_version}
|
2022-03-15 13:43:19 +01:00
|
|
|
BuildRequires: cmake(QMobipocket)
|
2024-01-15 15:09:22 +01:00
|
|
|
BuildRequires: cmake(Qt5Test) >= %{qt5_version}
|
|
|
|
BuildRequires: cmake(Qt5Xml) >= %{qt5_version}
|
2016-02-05 14:23:46 +01:00
|
|
|
BuildRequires: pkgconfig(poppler-qt5)
|
2018-08-20 14:58:39 +02:00
|
|
|
%if %{with ffmpeg}
|
|
|
|
BuildRequires: pkgconfig(libavcodec)
|
|
|
|
BuildRequires: pkgconfig(libavformat)
|
|
|
|
BuildRequires: pkgconfig(libavutil)
|
|
|
|
%endif
|
2014-05-18 01:33:40 +02:00
|
|
|
|
|
|
|
%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
|
|
|
|
Requires: %{name} = %{version}
|
2024-01-15 15:09:22 +01:00
|
|
|
Requires: cmake(Qt5Core) >= %{qt5_version}
|
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
|
2018-08-20 14:58:39 +02:00
|
|
|
|
2014-05-18 01:33:40 +02:00
|
|
|
%prep
|
2021-05-09 09:41:58 +02:00
|
|
|
%autosetup -p1 -n kfilemetadata-%{version}
|
2014-05-18 01:33:40 +02:00
|
|
|
|
|
|
|
%build
|
2021-05-09 09:41:58 +02:00
|
|
|
%cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=%{_kf5_localedir}
|
|
|
|
%cmake_build
|
2014-05-18 01:33:40 +02:00
|
|
|
|
|
|
|
%install
|
2021-05-09 09:41:58 +02:00
|
|
|
%kf5_makeinstall -C build
|
2022-10-08 19:27:53 +02:00
|
|
|
|
|
|
|
%{kf5_find_lang}
|
2014-05-18 01:33:40 +02:00
|
|
|
|
2023-02-12 10:52:58 +01:00
|
|
|
%ldconfig_scriptlets
|
2014-05-18 01:37:34 +02:00
|
|
|
|
2014-05-18 01:33:40 +02:00
|
|
|
%files
|
2020-07-11 12:30:48 +02:00
|
|
|
%license LICENSES/*
|
2017-12-22 17:25:23 +01:00
|
|
|
%{_kf5_debugdir}/*.categories
|
2020-08-09 09:39:40 +02:00
|
|
|
%{_kf5_debugdir}/*.renamecategories
|
2020-07-11 12:30:48 +02:00
|
|
|
%{_kf5_libdir}/libKF5FileMetaData.so.*
|
|
|
|
%{_kf5_plugindir}/
|
2014-05-18 01:33:40 +02:00
|
|
|
|
|
|
|
%files devel
|
2014-07-03 19:55:50 +02:00
|
|
|
%{_kf5_includedir}/KFileMetaData/
|
|
|
|
%{_kf5_libdir}/cmake/KF5FileMetaData/
|
2020-07-11 12:30:48 +02:00
|
|
|
%{_kf5_libdir}/libKF5FileMetaData.so
|
2018-05-15 14:58:17 +02:00
|
|
|
%{_kf5_mkspecsdir}/qt_KFileMetaData.pri
|
2014-05-18 01:33:40 +02:00
|
|
|
|
2016-07-06 18:37:40 +02:00
|
|
|
%files lang -f %{name}.lang
|
2015-01-08 19:50:00 +01:00
|
|
|
|
2014-05-18 01:33:40 +02:00
|
|
|
%changelog
|