!1 Init package
From: @misaka00251 Reviewed-by: @peijiankang Signed-off-by: @peijiankang
This commit is contained in:
commit
8e75b27a8f
73
kf5-libkexiv2.spec
Normal file
73
kf5-libkexiv2.spec
Normal file
@ -0,0 +1,73 @@
|
||||
%global framework libkexiv2
|
||||
|
||||
Name: kf5-libkexiv2
|
||||
Summary: A wrapper around Exiv2 library
|
||||
Version: 22.12.0
|
||||
Release: 1
|
||||
|
||||
License: GPLv2+
|
||||
URL: https://invent.kde.org/graphics/%{framework}
|
||||
|
||||
%global revision %(echo %{version} | cut -d. -f3)
|
||||
%if %{revision} >= 50
|
||||
%global stable unstable
|
||||
%else
|
||||
%global stable stable
|
||||
%endif
|
||||
|
||||
Source0: http://download.kde.org/%{stable}/release-service/%{version}/src/%{framework}-%{version}.tar.xz
|
||||
|
||||
BuildRequires: extra-cmake-modules
|
||||
BuildRequires: kf5-rpm-macros
|
||||
BuildRequires: qt5-qtbase-devel
|
||||
BuildRequires: pkgconfig(exiv2)
|
||||
|
||||
Requires: kf5-filesystem
|
||||
|
||||
%description
|
||||
Libkexiv2 is a wrapper around Exiv2 library to manipulate pictures metadata
|
||||
as EXIF IPTC and XMP.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: qt5-qtbase-devel
|
||||
|
||||
%description devel
|
||||
%{summary}.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{framework}-%{version} -p1
|
||||
|
||||
|
||||
%build
|
||||
mkdir %{_target_platform}
|
||||
pushd %{_target_platform}
|
||||
%{cmake_kf5} ..
|
||||
popd
|
||||
%make_build -C %{_target_platform}
|
||||
|
||||
|
||||
%install
|
||||
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
||||
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%doc AUTHORS README
|
||||
%license LICENSES/*
|
||||
%{_kf5_datadir}/qlogging-categories5/*%{framework}.*
|
||||
%{_kf5_libdir}/libKF5KExiv2.so.*
|
||||
|
||||
%files devel
|
||||
%{_kf5_libdir}/libKF5KExiv2.so
|
||||
%{_kf5_includedir}/libkexiv2_version.h
|
||||
%{_kf5_includedir}/KExiv2/
|
||||
%{_kf5_libdir}/cmake/KF5KExiv2/
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri May 12 2023 misaka00251 <liuxin@iscas.ac.cn> - 22.12.0-1
|
||||
- Init package
|
||||
4
kf5-libkexiv2.yaml
Normal file
4
kf5-libkexiv2.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: KDE/libkexiv2
|
||||
tag_prefix: "^v"
|
||||
separator: "."
|
||||
BIN
libkexiv2-22.12.0.tar.xz
Normal file
BIN
libkexiv2-22.12.0.tar.xz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user