From 08455bd299945c0de3a4635bc944d830fff40d8a Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Mon, 8 Feb 2016 09:34:54 -0600 Subject: [PATCH] import --- .gitignore | 1 + kf5-libkexiv2.spec | 73 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 75 insertions(+) create mode 100644 kf5-libkexiv2.spec diff --git a/.gitignore b/.gitignore index e69de29..d316402 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/libkexiv2-15.12.1.tar.xz diff --git a/kf5-libkexiv2.spec b/kf5-libkexiv2.spec new file mode 100644 index 0000000..74818b4 --- /dev/null +++ b/kf5-libkexiv2.spec @@ -0,0 +1,73 @@ + +%global framework libkexiv2 + +Name: kf5-libkexiv2 +Summary: A wrapper around Exiv2 library +Version: 15.12.1 +Release: 1%{?dist} + +License: GPLv2+ +URL: https://projects.kde.org/libkexiv2 +%global revision %(echo %{version} | cut -d. -f3) +%if %{revision} >= 50 +%global stable unstable +%else +%global stable stable +%endif +Source0: http://download.kde.org/%{stable}/applications/%{version}/src/%{framework}-%{version}.tar.xz + +BuildRequires: extra-cmake-modules +BuildRequires: kf5-rpm-macros +BuildRequires: pkgconfig(Qt5Gui) +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: pkgconfig(Qt5Gui) +%description devel +%{summary}. + + +%prep +%autosetup -n %{framework}-%{version} -p1 + + +%build +mkdir %{_target_platform} +pushd %{_target_platform} +%{cmake_kf5} .. +popd + +make %{?_smp_mflags} -C %{_target_platform} + + +%install +make install/fast DESTDIR=%{buildroot} -C %{_target_platform} + + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%doc AUTHORS README +%license COPYING +%{_kf5_libdir}/libKF5KExiv2.so.* + +%files devel +%{_kf5_libdir}/libKF5KExiv2.so +%{_kf5_includedir}/libkexiv2_version.h +%{_kf5_includedir}/KExiv2/ +%{_kf5_libdir}/cmake/KF5KExiv2/ + + +%changelog +* Tue Feb 02 2016 Rex Dieter 15.12.1-1 +- 15.12.1, first try + diff --git a/sources b/sources index e69de29..3b960d9 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +7d5c1be7fd587a62a023bd0475796294 libkexiv2-15.12.1.tar.xz