File fotoxx.spec of Package fotoxx
Name: fotoxx
Version: 15.06
Release: 0
Summary: Program for improving image files made with a digital camera
Source: http://www.kornelix.com/uploads/1/3/0/3/13035936/fotoxx-%{version}.tar.gz
# Workaround to save TIFF-files. Need for DigiKam
Patch1: fotoxx-tiffsave1.patch
URL: http://www.kornelix.com/fotoxx.html
Group: Productivity/Graphics/Other
License: GPL-3.0
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: libtiff-devel >= 4.0.3
BuildRequires: libjpeg-devel
BuildRequires: fdupes
BuildRequires: exiftool >= 9.46
BuildRequires: perl-Image-ExifTool >= 9.46
BuildRequires: ufraw
BuildRequires: xdg-utils
BuildRequires: pkgconfig gtk3-devel >= 3.2 gcc-c++ libstdc++-devel libpng-devel liblcms2-devel
BuildRequires: update-desktop-files
BuildRequires: perl(Image::ExifTool) >= 9.46
#Requires: perl(Image::ExifTool) >= 9.46
#Requires: perl-Image-ExifTool >= 9.46
#Requires: libtiff5 >= 4.0.3
Requires: dcraw
#Requires: ufraw
Requires: /usr/bin/exiv2
#Requires: /usr/bin/exiftool
Requires: /usr/bin/ufraw
#Requires: /usr/bin/xdg-open
Requires: /usr/bin/xgamma
#Requires: printoxx
#Obsoletes: fotoxx < %{version}
%description
Edit photos and manage a large collection.
Includes thumbnail browser/navigator, RAW file import,
a comprehensive set of edit functions working in deep color,
rapid visual feedback, edit/copy/paste selected image areas,
file versioning, batch operations, named collections (views),
HDR, stack and panorama composites, metadata edit and report,
search and display using metadata and directory/file names.
%package doc
Summary: Program for improving image files made with a digital camera
Group: Productivity/Graphics/Other
%description doc
This package contains the user guide (PDF) for %{name}:
%{_docdir}/%{name}/userguide.pdf
%prep
%setup -q -n "fotoxx-%{version}"
%patch1
%__rm -rf ./doc/images/.thumbnails
%build
%__make %{?_smp_mflags} \
PREFIX="%{_prefix}" \
MANDIR="%{_mandir}/man1" \
DOCDIR="%{_docdir}/%{name}" \
OPTFLAGS="%{optflags}" \
DESKTOP="%{_datadir}/applications/*%{name}.desktop"
%install
%makeinstall \
PREFIX="%{_prefix}" \
MANDIR="%{_mandir}/man1" \
DOCDIR="%{_docdir}/%{name}" \
DESKTOP="%{_datadir}/applications/*%{name}.desktop"
%suse_update_desktop_file -r "*%{name}" Graphics Photography
%fdupes -s "%{buildroot}%{_datadir}/fotoxx"
LANGFILES="$PWD/%{name}.lang"
echo -n > "$LANGFILES"
pushd "%{buildroot}%{_datadir}/fotoxx/locales"
/bin/ls -1 translate-*.po | while read f; do
[ -e "$f" ] || continue
lang="${f#translate-}"
echo "%lang($lang) %{_datadir}/fotoxx/locales/$f" >>"$LANGFILES"
done
popd
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%dir %{_datadir}/appdata
%{_datadir}/appdata/fotoxx.appdata.xml
%{_datadir}/applications/*%{name}.desktop
%{_mandir}/man1/%{name}.1%{ext_man}
%files doc
%defattr(-,root,root)
%doc %{_docdir}/%{name}
%changelog