You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
2.3 KiB
101 lines
2.3 KiB
|
|
%global framework libkipi
|
|
|
|
Name: kf5-libkipi
|
|
Summary: Common plugin infrastructure for KDE image applications
|
|
Version: 15.12.0
|
|
Release: 2%{?dist}
|
|
|
|
License: GPLv2+
|
|
URL: https://projects.kde.org/libkipi
|
|
%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: cmake
|
|
BuildRequires: extra-cmake-modules
|
|
BuildRequires: gettext
|
|
BuildRequires: kf5-kconfig-devel
|
|
BuildRequires: kf5-ki18n-devel
|
|
BuildRequires: kf5-kxmlgui-devel
|
|
BuildRequires: kf5-kservice-devel
|
|
BuildRequires: kf5-rpm-macros
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
BuildRequires: python
|
|
|
|
Requires: kf5-filesystem
|
|
|
|
%description
|
|
Kipi (KDE Image Plugin Interface) is an effort to develop a common plugin
|
|
structure (for Digikam, Gwenview, etc.). Its aim is to share
|
|
image plugins among graphic applications.
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
Requires: kf5-kconfig-devel
|
|
Requires: kf5-ki18n-devel
|
|
Requires: kf5-kxmlgui-devel
|
|
Requires: kf5-kservice-devel
|
|
%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
|
|
/sbin/ldconfig
|
|
touch --no-create %{_kf5_datadir}/icons/hicolor &> /dev/null || :
|
|
|
|
%posttrans
|
|
gtk-update-icon-cache %{_kf5_datadir}/icons/hicolor &> /dev/null || :
|
|
|
|
%postun
|
|
/sbin/ldconfig
|
|
if [ $1 -eq 0 ] ; then
|
|
touch --no-create %{_kf5_datadir}/icons/hicolor &> /dev/null || :
|
|
gtk-update-icon-cache %{_kf5_datadir}/icons/hicolor &> /dev/null || :
|
|
fi
|
|
|
|
%files
|
|
%doc AUTHORS README
|
|
%license COPYING
|
|
%{_kf5_libdir}/libKF5Kipi.so.*
|
|
%{_kf5_datadir}/kf5/kipi/
|
|
%{_kf5_datadir}/icons/hicolor/*/*/*
|
|
%{_kf5_datadir}/kservicetypes5/kipiplugin.desktop
|
|
|
|
%files devel
|
|
%{_kf5_libdir}/libKF5Kipi.so
|
|
%{_kf5_includedir}/libkipi_version.h
|
|
%{_kf5_includedir}/KIPI/
|
|
%{_kf5_libdir}/cmake/KF5Kipi/
|
|
|
|
|
|
%changelog
|
|
* Fri Jan 01 2016 Rex Dieter <rdieter@fedoraproject.org> 15.12.0-2
|
|
- rebuild
|
|
|
|
* Wed Dec 30 2015 Rex Dieter <rdieter@fedoraproject.org> 15.12.0-1
|
|
- 15.12.0, first try
|
|
|