82 lines
2.8 KiB
RPMSpec
82 lines
2.8 KiB
RPMSpec
%define _version 1117rev5d7d1cc4ef4d
|
|
|
|
Name: photivo
|
|
Version: 20160528
|
|
Release: 3.2
|
|
Summary: Photo processor
|
|
Group: Graphics
|
|
License: GPLv3+
|
|
URL: http://photivo.org
|
|
Source: %{name}-%{_version}.tar.gz
|
|
BuildRequires: gcc-c++ libgomp qt4-devel libtool-ltdl-devel
|
|
BuildRequires: exiv2-devel lensfun-devel fftw3-devel liblqr-1-devel
|
|
BuildRequires: GraphicsMagick-c++-devel libjpeg-devel libtiff-devel libpng-devel bzip2-devel
|
|
BuildRequires: lcms-devel lcms2-devel lzma-devel
|
|
BuildRequires: gimp-devel
|
|
|
|
%description
|
|
Photivo is a free and open source photo processor. It handles RAW files
|
|
as well as bitmap files in a non-destructive 16 bit processing pipe with
|
|
gimp workflow integration and batch mode.
|
|
|
|
Photivo tries to provide the best algorithms available; even if this
|
|
implies some redundancy. So, to my knowledge, it offers the most
|
|
flexible and powerful denoise, sharpen and local contrast (fake HDR)
|
|
algorithms in the open source world. (If not, let's port them )
|
|
Although, to get the desired results, there may be a quite steep
|
|
learning curve.
|
|
|
|
Photivo is just a developer, no manager and no Gimp. It is intended to
|
|
be used in a workflow together with digiKam/F-Spot/Shotwell and Gimp. It
|
|
needs a quite strong computer and is not aimed at beginners.
|
|
|
|
%package gimp
|
|
Summary: Photivo plugin for Gimp
|
|
Group: Graphics
|
|
Requires: %name = %version-%release
|
|
|
|
%description gimp
|
|
Photivo is a free and open source photo processor. It handles RAW files
|
|
as well as bitmap files in a non-destructive 16 bit processing pipe with
|
|
gimp workflow integration and batch mode.
|
|
|
|
This package provides Photivo plugin for Gimp.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{_version}
|
|
sed -i 's|lensfun\.h|lensfun/lensfun.h|' Sources/ptConstants.h Sources/ptImage.h Sources/ptImage_Lensfun.cpp Sources/ptLensfun.h
|
|
|
|
%build
|
|
qmake-qt5 PREFIX=%_prefix CONFIG-=debug CONFIG+=WithGimp CONFIG+=WithAdobeProfiles
|
|
make
|
|
|
|
%install
|
|
make INSTALL_ROOT=%buildroot install
|
|
install -pD -m755 ptGimp %buildroot%_libdir/gimp/2.0/plug-ins/ptGimp
|
|
# install utilities
|
|
#install -pD -m755 ptClear %buildroot%_bindir/PtClear
|
|
#chmod 755 %buildroot%_bindir/ptClear
|
|
#ln -s ptClear %buildroot%_bindir/%name-clear
|
|
#install -pD -m755 ptCreateAdobeProfiles %buildroot%_bindir/ptCreateAdobeProfiles
|
|
#ln -s ptCreateAdobeProfiles %buildroot%_bindir/%name-CreateAdobeProfiles
|
|
#install -pD -m755 ptCreateCurves %buildroot%_bindir/ptCreateCurves
|
|
#ln -s ptCreateCurves %buildroot%_bindir/%name-CreateCurves
|
|
# fix permissions under %_datadir/%name
|
|
find %buildroot%_datadir/%name -type f -print0|xargs -r0 chmod 644 --
|
|
rm -rf %buildroot$HOME/.local
|
|
chmod +x %buildroot%_bindir/*
|
|
|
|
%files
|
|
%doc README
|
|
%_bindir/*
|
|
%_datadir/%name
|
|
%_datadir/applications/*
|
|
%_datadir/pixmaps/photivo-appicon.png
|
|
|
|
%files gimp
|
|
%_libdir/gimp/2.0/plug-ins/*
|
|
|
|
%changelog
|
|
* Sat Apr 29 2017 Daniel Steiner <daniel.steiner@greenmail.ch>
|
|
- First build for Fedora 25
|