4e9aaaf
Name:		fotoxx
5f232f2
Version:		6.0
5f3e89e
Release:		4%{?dist}
4e9aaaf
Summary:		Photo editor
4e9aaaf
4e9aaaf
Group:		Applications/Multimedia
4e9aaaf
License:		GPLv2
4e9aaaf
URL:			http://kornelix.squarespace.com/%{name}
5f232f2
Source0:		http://kornelix.squarespace.com/storage/downloads/%{name}-%{version}.tar.gz
4e9aaaf
Source1:		%{name}.desktop
4e9aaaf
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
4e9aaaf
4e9aaaf
BuildRequires:	gtk2-devel
4e9aaaf
BuildRequires:	desktop-file-utils
0b6e97d
BuildRequires:  freeimage-devel
4e9aaaf
Requires:		exiv2
4e9aaaf
Requires:		printoxx
4e9aaaf
4e9aaaf
Patch0:		fotoxx-5.8.constchar.patch
0b6e97d
Patch1:         fotoxx-dynamically-link.patch
d3b6f2c
d3b6f2c
%description
d3b6f2c
Fotoxx is a free open source Linux program for editing image files
d3b6f2c
from a digital camera. The goal of fotoxx is to meet most image editing
d3b6f2c
needs while remaining easy to use.
d3b6f2c
d3b6f2c
%prep
d3b6f2c
%setup -q -n %{name}
0b6e97d
rm libfreeimage.a
4e9aaaf
%patch0 -p1 -b .constchar
0b6e97d
%patch1 -p1 -b .dynamic
4e9aaaf
d3b6f2c
# To use "fedora" CFLAGS (exported)
d3b6f2c
sed -i -e "s/CFLAGS =/CFLAGS +=/" Makefile
d3b6f2c
d3b6f2c
%build
d3b6f2c
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; 
8abadfc
make %{?_smp_mflags} PREFIX=%{_prefix} DOCDIR=%{_docdir}/%{name}-%{version}
d3b6f2c
d3b6f2c
d3b6f2c
%install
d3b6f2c
rm -rf $RPM_BUILD_ROOT
8abadfc
make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} DOCDIR=%{_docdir}/%{name}-%{version}
d3b6f2c
install -Dm 644 -p data/icons/%{name}.png  $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png
d3b6f2c
desktop-file-install --vendor="" \
d3b6f2c
  --mode 644 \
8abadfc
  --remove-category="Application" \
d3b6f2c
  --dir $RPM_BUILD_ROOT%{_datadir}/applications/ \
d3b6f2c
  %{SOURCE1}
d3b6f2c
d3b6f2c
d3b6f2c
%clean
d3b6f2c
rm -rf $RPM_BUILD_ROOT
d3b6f2c
d3b6f2c
d3b6f2c
%files
d3b6f2c
%defattr(-,root,root,-)
d3b6f2c
%doc doc/*
d3b6f2c
%dir %{_datadir}/%{name}
d3b6f2c
%{_bindir}/%{name}
d62a536
%{_datadir}/%{name}/icons/
d62a536
%{_datadir}/%{name}/locales/
d3b6f2c
%{_datadir}/applications/%{name}.desktop
d3b6f2c
%{_datadir}/pixmaps/%{name}.png
d3b6f2c
d3b6f2c
%changelog
5f3e89e
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0-4
5f3e89e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5f3e89e
0b6e97d
* Wed Feb 25 2009 Dennis Gilmore <dennis@ausil.us> - 6.0-3
0b6e97d
- add patch to dynamically link to libfreeimage
0b6e97d
593b0d9
* Wed Feb 25 2009 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] spb [ dOt.] su> - 6.0-2
593b0d9
- Forgot patch
593b0d9
5f232f2
* Wed Feb 25 2009 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] spb [ dOt.] su> - 6.0-1
5f232f2
- New version 6.0
5f232f2
- Adjust Source0 url (inspired by Kevin Fenzi in fedora-devel-list: https://www.redhat.com/archives/fedora-devel-list/2009-February/msg01622.html ).
5f232f2
5f232f2
* Wed Feb 25 2009 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] spb [ dOt.] su> - 5.8-2
4e9aaaf
- Add patch0 fotoxx-5.8.constchar.patch
4e9aaaf
- Reformat spec with tabs, remove trailing spaces.
4e9aaaf
d62a536
* Sun Jan  4 2009 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.8-1
d62a536
- Rebuild for 5.8
86bacab
* Mon Dec  1 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.7-1
86bacab
- Rebuild for 5.7
61484cc
* Sun Nov 16 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.6-1
61484cc
- Rebuild for 5.6
8abadfc
* Tue Nov  4 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.5-1
8abadfc
- Rebuild for 5.5
c16704a
* Thu Oct  9 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.4-1
c16704a
- Rebuild for 5.4
e696946
* Thu Sep 18 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.3-1
e696946
- Rebuild for 5.3
801013d
* Sun Aug 31 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.2-1
e696946
- Rebuild for 5.2
843ab70
* Sun Aug 24 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.1-1
e696946
- Rebuild for 5.1
abb9b0c
* Fri Aug  8 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.0.1-1
abb9b0c
- Rebuild for 5.0.1
f157a71
* Sat Aug  2 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 5.0-1
f157a71
- Rebuild for 5.0
d3b6f2c
* Tue Jul 22 2008 Nicoleau Fabien <nicoleau.fabien@gmail.com> - 4.9-1
d3b6f2c
- Initial build