Name: fotoxx Version: 5.1 Release: 1%{?dist} Summary: Photo editor Group: Applications/Multimedia License: GPLv2 URL: http://kornelix.squarespace.com/%{name} Source0: http://kornelix.squarespace.com/storage/%{name}-%{version}.tar.gz Source1: %{name}.desktop BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gtk2-devel BuildRequires: desktop-file-utils Requires: exiv2 %description Fotoxx is a free open source Linux program for editing image files from a digital camera. The goal of fotoxx is to meet most image editing needs while remaining easy to use. %prep %setup -q -n %{name} # To use "fedora" CFLAGS (exported) sed -i -e "s/CFLAGS =/CFLAGS +=/" Makefile # I prefer %%{doc} usage than this line sed -i -e "/cp -R doc\/\* $(DESTDIR)$(DOCDIR)/d" Makefile %build CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; make %{?_smp_mflags} PREFIX=%{_prefix} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} install -Dm 644 -p data/icons/%{name}.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png desktop-file-install --vendor="" \ --mode 644 \ --dir $RPM_BUILD_ROOT%{_datadir}/applications/ \ %{SOURCE1} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc doc/* %dir %{_datadir}/%{name} %{_bindir}/%{name} %{_datadir}/%{name}/* %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %changelog * Sun Aug 24 2008 Nicoleau Fabien - 5.1-1 * Rebuild for 5.1 * Fri Aug 8 2008 Nicoleau Fabien - 5.0.1-1 - Rebuild for 5.0.1 * Sat Aug 2 2008 Nicoleau Fabien - 5.0-1 - Rebuild for 5.0 * Tue Jul 22 2008 Nicoleau Fabien - 4.9-1 - Initial build