Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # spec file for package Photivo
- %define grmajversion 1.3.12
- Name: photivo
- Summary: Photo processor
- Version: 20110517
- Release: 1.2.ajb3
- Group: Productivity/Graphics/Other
- License: GPL
- Url: http://www.photivo.org/
- Source0: %{name}-%{version}.tar.bz2
- Patch: %{name}-projects.patch
- Source1: http://downloads.sourceforge.net/sourceforge/graphicsmagick/GraphicsMagick-%{grmajversion}.tar.lzma
- BuildRequires: ccache mercurial libtool
- BuildRequires: qt-devel exiv2-devel lensfun-devel fftw-devel gimp-devel lcms2-devel bzip2-devel liblqr-1-devel
- BuildRequires: libjpeg-devel libtiff-devel
- BuildRequires: libpng-devel
- %description
- Photivo is a free and open source photo processor. It handles your RAW files as well as your bitmap files in a non-destructive 16 bit processing pipe with integrated gimp export and batch mode.
- Authors:
- --------
- Michael Munzert <mail@mm-log.com>
- Bernd Schoeler <brjohn@brother-john.net>
- %package -n photivo-gimp
- License: GPL
- Summary: Photo processor
- Group: Productivity/Graphics/Other
- Requires: %{name} = %{version}
- Requires: tkinter
- %description -n photivo-gimp
- GIMP integration for Photivo. Photivo is a free and open source photo processor. It handles your RAW files as well as your bitmap files in a non-destructive 16 bit processing pipe with integrated gimp export and batch mode.
- Authors:
- --------
- Michael Munzert <mail@mm-log.com>
- Bernd Schoeler <brjohn@brother-john.net>
- %prep
- %setup -q -n %{name}-%{version}
- %patch -b .paths
- tar --lzma -xvf %{SOURCE1}
- ln -s GraphicsMagick-%{grmajversion} GraphicsMagick
- cd GraphicsMagick-%{grmajversion}
- iconv -f iso-8859-2 -t utf8 < ChangeLog > ChangeLog.utf8
- mv -f ChangeLog.utf8 ChangeLog
- # Avoid lib64 rpaths (FIXME: recheck this on newer releases)
- %if "%{_libdir}" != "/usr/lib"
- sed -i.rpath -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
- %endif
- %build
- cd GraphicsMagick-%{grmajversion}
- %configure --enable-static \
- --with-quantum-depth=16 \
- --with-lcms \
- --with-magick_plus_plus \
- --with-modules \
- --with-threads \
- --with-wmf \
- --with-x \
- --with-xml \
- --without-dps \
- --without-gslib \
- --with-windows-font-dir=%{_datadir}/fonts/msttcorefonts \
- --with-gs-font-dir=%{_datadir}/fonts/default/ghostscript
- # --with-perl \
- # --with-perl-options="INSTALLDIRS=vendor %{?perl_prefix}" \
- make %{?_smp_mflags}
- mkdir install
- make DESTDIR=`pwd`/install install
- if [ -e install/usr/lib64 ]; then
- mv install/usr/lib64 install/usr/lib
- fi
- #make %{?_smp_mflags} perl-build
- cd ..
- qmake-qt4
- pwd && cd ptClearProject && qmake-qt4 -o Makefile ptClearProject.pro && cd ..
- pwd && cd ptCreateCurvesProject && qmake-qt4 -o Makefile ptCreateCurvesProject.pro && cd ..
- pwd && cd photivoProject && qmake-qt4 -o Makefile photivoProject.pro && cd ..
- pwd && cd ptGimpProject && qmake-qt4 -o Makefile ptGimpProject.pro && cd ..
- pwd && cd ptCreateAdobeProfilesProject && qmake-qt4 -o Makefile ptCreateAdobeProfilesProject.pro && cd ..
- #use local copy of GraphicsMagick headers and libraries
- sed -i 's/-I\/usr\/include\/GraphicsMagick/-I..\/GraphicsMagick\/install\/usr\/include\/GraphicsMagick/g' */Makefile
- sed -i 's/-lGraphicsMagick++ -lGraphicsMagickWand -lGraphicsMagick/..\/GraphicsMagick\/install\/usr\/lib\/libGraphicsMagick++.a ..\/GraphicsMagick\/install\/usr\/lib\/libGraphicsMagickWand.a ..\/GraphicsMagick\/install\/usr\/lib\/libGraphicsMagick.a -lpng12 -lxml2 -ltiff -lwmf -lwmflite -ljasper/g' */Makefile
- make %{?_smp_mflags}
- %install
- make install INSTALL_ROOT=%{buildroot}
- mkdir -p %{buildroot}/%{_bindir}
- install -m 755 -p photivo %{buildroot}/%{_bindir}/
- install -m 755 -p ptClear %{buildroot}/%{_bindir}/
- mkdir -p %{buildroot}/%{_libdir}/gimp/2.0/plug-ins
- install -m 755 -p ptGimp %{buildroot}/%{_libdir}/gimp/2.0/plug-ins/
- install -m 755 -p "mm extern photivo.py" %{buildroot}/%{_libdir}/gimp/2.0/plug-ins/
- mv %{buildroot}/usr/lib64/qt4/bin/photivo %{buildroot}/%{_bindir}/
- %clean
- rm -rf %{buildroot}
- %files
- %defattr(-,root,root)
- %{_bindir}/photivo
- %{_bindir}/ptClear
- %{_datadir}/photivo
- %{_datadir}/applications/photivo.desktop
- %{_datadir}/pixmaps/photivo.png
- %files -n photivo-gimp
- %defattr(-,root,root)
- "%{_libdir}/gimp/2.0/plug-ins/mm extern photivo.py"
- %{_libdir}/gimp/2.0/plug-ins/ptGimp
- %dir %{_libdir}/gimp
- %dir %{_libdir}/gimp/2.0
- %dir %{_libdir}/gimp/2.0/plug-ins
- %changelog
- * Wed Jun 15 2011 cowbutt6@hotmail.com
- - Fedora 14 package linked against static GraphicsMagick libraries
- * Tue May 17 2011 salsergey@gmail.com
- - Photivo rev 37837e15c7fe
- * New slider fixed
- * Sun May 15 2011 salsergey@gmail.com
- - Photivo rev 7f59d5d51538
- * Russian translation
- * Save PNG 16bit
- * New German translation
- * New slider
- * Clean up DRC, perspective corrections
- * Thu Apr 28 2011 salsergey@gmail.com
- - Photivo rev c0a43757ce69
- * Add some more help URLs
- * Some fixes
- - Build with GraphicsMagick with 16 bit support
- * Wed Apr 13 2011 salsergey@gmail.com
- - Photivo rev a38a332fbf86
- * Updated both neutral presets.
- * Added "auto scale" checkbox for Lensfun and Defish.
- * Buttons to center crop rectangle horizontally and vertically on the image.
- * Wed Apr 6 2011 salsergey@gmail.com
- - Photivo rev dca734b99d64
- * Switch crop rectangle between portrait/landscape
- * UI for liquid rescale
- * Make UI language user selectable.
- * Sat Apr 2 2011 salsergey@gmail.com
- - Photivo rev 536ab38cefb0 (lqr)
- * First steps for liblqr (seam carving)
- * Denoise curve
- * Defish tool
- * Mon Mar 28 2011 salsergey@gmail.com
- - Photivo rev af1122a33cb1
- * Lensfun integration
- * Interface to control the display setting (normal, favourite, hidden) of
- all tools
- * Start screen and drag'n drop now on mainwindow
- * 1:1 Detail view
- * Add Italian translation, provided by Bartokk <bartokk at gmail dot com>
- * Mon Mar 21 2011 salsergey@gmail.com
- - Photivo rev 3dab098aa7d1
- * New icon, big thanks to Naveed Ahmed
- * Show favourite tools and all visible tools
- * Keys for searching
- * Sat Mar 12 2011 salsergey@gmail.com
- - Photivo rev 221d57150acb
- * Sun Mar 6 2011 salsergey@gmail.com
- - Photivo rev 581b9e9966d9
- * Sat Mar 5 2011 salsergey@gmail.com
- - Photivo rev 91c0f614e566
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement