1
0

Put _kf5_bugfix_version to ease maintenance instead of relying on _tar_path (port from KUF)

OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kfilemetadata5?expand=0&rev=136
This commit is contained in:
Luca Beltrame 2017-04-17 16:14:06 +00:00 committed by Git OBS Bridge
parent 498c7402e9
commit a0b40db2bf

View File

@ -18,27 +18,30 @@
%bcond_without ffmpeg %bcond_without ffmpeg
%bcond_without lang %bcond_without lang
%define _tar_path 5.33
Name: kfilemetadata5 Name: kfilemetadata5
Version: 5.33.0 Version: 5.33.0
Release: 0 Release: 0
# Full KF5 version (e.g. 5.33.0)
%{!?_kf5_version: %global _kf5_version %{version}}
# Last major and minor KF5 version (e.g. 5.33)
%{!?_kf5_bugfix_version: %global _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')}
%define kf5_version %{version} %define kf5_version %{version}
Summary: Extract Metadata Summary: Extract Metadata
License: GPL-2.0+ and LGPL-2.1+ and LGPL-3.0 License: GPL-2.0+ and LGPL-2.1+ and LGPL-3.0
Group: Development/Libraries/KDE Group: Development/Libraries/KDE
Url: http://www.kde.org/ Url: http://www.kde.org/
Source: http://download.kde.org/stable/frameworks/%{_tar_path}/kfilemetadata-%{version}.tar.xz Source: http://download.kde.org/stable/frameworks/%{_kf5_bugfix_version}/kfilemetadata-%{version}.tar.xz
Source1: baselibs.conf Source1: baselibs.conf
Patch0: ffmpeg-buildrequires.patch Patch0: ffmpeg-buildrequires.patch
BuildRequires: extra-cmake-modules >= %{_tar_path} BuildRequires: extra-cmake-modules >= %{_kf5_bugfix_version}
%if %{with ffmpeg} %if %{with ffmpeg}
BuildRequires: pkgconfig(libavcodec) BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavformat) BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libavutil) BuildRequires: pkgconfig(libavutil)
%endif %endif
BuildRequires: karchive-devel >= %{_tar_path} BuildRequires: karchive-devel >= %{_kf5_bugfix_version}
BuildRequires: kf5-filesystem BuildRequires: kf5-filesystem
BuildRequires: ki18n-devel >= %{_tar_path} BuildRequires: ki18n-devel >= %{_kf5_bugfix_version}
BuildRequires: libattr-devel BuildRequires: libattr-devel
BuildRequires: libepub-devel BuildRequires: libepub-devel
BuildRequires: libexiv2-devel >= 0.21 BuildRequires: libexiv2-devel >= 0.21
@ -59,7 +62,7 @@ A library for extracting file metadata.
Summary: Development package for kfilemetadata Summary: Development package for kfilemetadata
Group: Development/Libraries/KDE Group: Development/Libraries/KDE
Requires: %{name} = %{version} Requires: %{name} = %{version}
Requires: extra-cmake-modules >= %{_tar_path} Requires: extra-cmake-modules >= %{_kf5_bugfix_version}
Requires: cmake(Qt5Core) >= 5.6.0 Requires: cmake(Qt5Core) >= 5.6.0
%description devel %description devel