Name: fotoxx Version: 5.4.1 Release: %mkrel 2 Summary: Editor of image files from digital cameras License: GPLv2 Group: Graphics Source: %name-%version.tar.gz URL: http://kornelix.squarespace.com/fotoxx/ BuildRoot: %_tmppath/%name-%version-%release-buildroot BuildRequires: libgtk+2.0-devel Requires(post): desktop-file-utils Requires(postun): desktop-file-utils Requires: exiv2 %description Edit image files from a digital camera. Includes color and contrast enhancement, red-eye removal, sharpen, crop, rotate, noise removal, HDR (high dynamic range) and panorama image compositing, thumbnail image browser, tag editing and search. %prep %setup -q -n %name %build %make PREFIX=%{_prefix} %install rm -rf %buildroot %__make PREFIX=%{buildroot}%{_prefix} install # menu icon mkdir -p %buildroot%_datadir/icons/hicolor/48x48/apps cp %buildroot%_datadir/%name/icons/%name.png %buildroot%_datadir/icons/hicolor/48x48/apps/%name.png # menu entry mkdir -p %buildroot%_datadir/applications cat << EOF > %buildroot%_datadir/applications/%name.desktop [Desktop Entry] Name=%name GenericName=Image Editor Comment=Edit image files from a digital camera Exec=%_bindir/%name Icon=%name Terminal=false Type=Application StartupNotify=true Categories=Graphics;X-MandrivaLinux-CrossDesktop; EOF %clean rm -rf %buildroot %if %mdkversion < 200900 %post %update_desktop_database %update_icon_cache hicolor %update_menus %endif %if %mdkversion < 200900 %postun %clean_desktop_database %clean_icon_cache hicolor %clean_menus %endif %files %defattr(-,root,root,-) %_docdir/%name %_bindir/%name %_datadir/%name %_datadir/applications/%name.desktop %_datadir/icons/hicolor/48x48/apps/%name.png %changelog * Thu Oct 23 2008 Nicolas Vigier <nvigier@mandriva.com> 5.4.1-2mdv2009.0 + Revision: 296712 - add requires on exiv2 (#45195) - fix doc path (#45195) * Tue Oct 21 2008 Nicolas Vigier <nvigier@mandriva.com> 5.4.1-1mdv2009.1 + Revision: 296224 - fix summary, reindent description, remove buildroot before install - import fotoxx * Sat Oct 11 2008 incubusss <jejebr@orange.fr> 5.4-1mdv2009.0 - initial package