%define _state stable %define orgname gwenview %define kactivities_ver 4.13.0 Summary: K Desktop Environment - Simple image viewer Summary(pl.UTF-8): K Desktop Environment - Prosta przeglądarka obrazków Name: kde4-gwenview Version: 4.14.3 Release: 13 License: GPL v2+ Group: X11/Applications/Graphics Source0: http://download.kde.org/%{_state}/%{version}/src/%{orgname}-%{version}.tar.xz # Source0-md5: a609256023f7b6e786fe7728ba299544 Patch0: %{orgname}-exiv2.patch URL: http://www.kde.org/ BuildRequires: exiv2-devel >= 0.19 BuildRequires: kde4-baloo-devel >= %{version} BuildRequires: kde4-kactivities-devel >= %{kactivities_ver} BuildRequires: kde4-kdebase-devel >= %{version} BuildRequires: kde4-kdelibs-devel >= %{version} BuildRequires: kde4-kfilemetadata-devel >= %{version} BuildRequires: kde4-libkdcraw-devel >= %{version} BuildRequires: kde4-libkipi-devel >= %{version} BuildRequires: lcms2-devel >= 2.0 BuildRequires: libjpeg-devel BuildRequires: libpng-devel Requires: exiv2 >= 0.19 Requires: kde4-kfilemetadata >= %{version} Requires: kde4-konqueror-libs >= %{version} Requires: kde4-libkdcraw >= %{version} Requires: kde4-libkipi >= %{version} Suggests: kde4-baloo >= %{version} Obsoletes: gwenview <= 4.8.0 Obsoletes: kde4-kdegraphics-gwenview < 4.6.100-1 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Gwenview is an image viewer for KDE. It features a folder tree window and a file list window to provide easy navigation in your file hierarchy. Image loading is done by the Qt library, so it supports all image formats your Qt installation supports. %description -l pl.UTF-8 Gwenview to przeglądarka obrazków dla KDE. Ma okno z drzewem katalogów oraz okno z listą plików w celu zapewnienia łatwej nawigacji w hierarchii plików. Wczytywanie obrazków jest wykonywane przez bibliotekę Qt, więc przeglądarka obsługuje wszystkie formaty obsługiwane przez zainstalowaną wersję Qt. %prep %setup -q -n %{orgname}-%{version} %patch0 -p1 %build install -d build cd build export CXXFLAGS="%{rpmcxxflags} -fexceptions" %cmake \ .. %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} -C build install \ DESTDIR=$RPM_BUILD_ROOT \ kde_htmldir=%{_kdedocdir} %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/gwenview %attr(755,root,root) %{_bindir}/gwenview_importer %attr(755,root,root) %{_libdir}/libgwenviewlib.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libgwenviewlib.so.4 %attr(755,root,root) %{_libdir}/kde4/gvpart.so %{_datadir}/apps/gwenview %{_datadir}/apps/gvpart %{_datadir}/apps/solid/actions/gwenview_importer.desktop %{_datadir}/apps/solid/actions/gwenview_importer_camera.desktop %{_datadir}/kde4/services/gvpart.desktop %{_datadir}/kde4/services/ServiceMenus/slideshow.desktop %{_desktopdir}/kde4/gwenview.desktop %{_iconsdir}/hicolor/*x*/actions/document-share.png %{_iconsdir}/hicolor/*x*/apps/gwenview.png %{_iconsdir}/hicolor/scalable/actions/document-share.svgz %{_iconsdir}/hicolor/scalable/apps/gwenview.svgz %{_kdedocdir}/en/gwenview