Advertisement
cowbutt

photivo RPM spec file for Fedora 14

Jun 15th, 2011
3,055
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #
  2. # spec file for package Photivo
  3.  
  4. %define grmajversion 1.3.12
  5.  
  6. Name:          photivo
  7. Summary:       Photo processor
  8. Version: 20110517
  9. Release: 1.2.ajb3
  10. Group:         Productivity/Graphics/Other
  11. License:       GPL
  12. Url:           http://www.photivo.org/
  13.  
  14. Source0:       %{name}-%{version}.tar.bz2
  15. Patch:         %{name}-projects.patch
  16. Source1: http://downloads.sourceforge.net/sourceforge/graphicsmagick/GraphicsMagick-%{grmajversion}.tar.lzma
  17.  
  18. BuildRequires: ccache mercurial libtool
  19. BuildRequires: qt-devel exiv2-devel lensfun-devel fftw-devel gimp-devel lcms2-devel bzip2-devel liblqr-1-devel
  20. BuildRequires: libjpeg-devel libtiff-devel
  21. BuildRequires: libpng-devel
  22.  
  23.  
  24. %description
  25. 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.
  26.  
  27. Authors:
  28. --------
  29.     Michael Munzert <mail@mm-log.com>
  30.     Bernd Schoeler <brjohn@brother-john.net>
  31.  
  32.  
  33. %package -n photivo-gimp
  34. License:       GPL
  35. Summary:       Photo processor
  36. Group:         Productivity/Graphics/Other
  37. Requires:      %{name} = %{version}
  38. Requires:      tkinter
  39.  
  40. %description -n photivo-gimp
  41. 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.
  42.  
  43. Authors:
  44. --------
  45.     Michael Munzert <mail@mm-log.com>
  46.     Bernd Schoeler <brjohn@brother-john.net>
  47.  
  48.  
  49. %prep
  50. %setup -q -n %{name}-%{version}
  51. %patch -b .paths
  52. tar --lzma -xvf %{SOURCE1}
  53. ln -s GraphicsMagick-%{grmajversion} GraphicsMagick
  54. cd GraphicsMagick-%{grmajversion}
  55. iconv -f iso-8859-2 -t utf8 < ChangeLog > ChangeLog.utf8
  56. mv -f ChangeLog.utf8 ChangeLog
  57. # Avoid lib64 rpaths (FIXME: recheck this on newer releases)
  58. %if "%{_libdir}" != "/usr/lib"
  59. sed -i.rpath -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
  60. %endif
  61.  
  62.  
  63. %build
  64. cd GraphicsMagick-%{grmajversion}
  65. %configure --enable-static \
  66.            --with-quantum-depth=16 \
  67.            --with-lcms \
  68.            --with-magick_plus_plus \
  69.            --with-modules \
  70.            --with-threads \
  71.            --with-wmf \
  72.            --with-x \
  73.            --with-xml \
  74.            --without-dps \
  75.            --without-gslib \
  76.            --with-windows-font-dir=%{_datadir}/fonts/msttcorefonts \
  77.            --with-gs-font-dir=%{_datadir}/fonts/default/ghostscript
  78. #           --with-perl \
  79. #           --with-perl-options="INSTALLDIRS=vendor %{?perl_prefix}" \
  80.  
  81. make %{?_smp_mflags}
  82. mkdir install
  83. make DESTDIR=`pwd`/install install
  84. if [ -e install/usr/lib64 ]; then
  85.     mv install/usr/lib64 install/usr/lib
  86. fi
  87. #make %{?_smp_mflags} perl-build
  88. cd ..
  89.  
  90. qmake-qt4
  91. pwd && cd ptClearProject && qmake-qt4 -o Makefile ptClearProject.pro && cd ..
  92. pwd && cd ptCreateCurvesProject && qmake-qt4 -o Makefile ptCreateCurvesProject.pro && cd ..
  93. pwd && cd photivoProject && qmake-qt4 -o Makefile photivoProject.pro && cd ..
  94. pwd && cd ptGimpProject && qmake-qt4 -o Makefile ptGimpProject.pro && cd ..
  95. pwd && cd ptCreateAdobeProfilesProject && qmake-qt4 -o Makefile ptCreateAdobeProfilesProject.pro && cd ..
  96.  
  97. #use local copy of GraphicsMagick headers and libraries
  98. sed -i 's/-I\/usr\/include\/GraphicsMagick/-I..\/GraphicsMagick\/install\/usr\/include\/GraphicsMagick/g' */Makefile
  99. 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
  100. make %{?_smp_mflags}
  101.  
  102.  
  103. %install
  104. make install INSTALL_ROOT=%{buildroot}
  105. mkdir -p %{buildroot}/%{_bindir}
  106. install -m 755 -p photivo %{buildroot}/%{_bindir}/
  107. install -m 755 -p ptClear %{buildroot}/%{_bindir}/
  108. mkdir -p %{buildroot}/%{_libdir}/gimp/2.0/plug-ins
  109. install -m 755 -p ptGimp %{buildroot}/%{_libdir}/gimp/2.0/plug-ins/
  110. install -m 755 -p "mm extern photivo.py" %{buildroot}/%{_libdir}/gimp/2.0/plug-ins/
  111.  
  112. mv %{buildroot}/usr/lib64/qt4/bin/photivo %{buildroot}/%{_bindir}/
  113.  
  114. %clean
  115. rm -rf %{buildroot}
  116.  
  117.  
  118. %files
  119. %defattr(-,root,root)
  120. %{_bindir}/photivo
  121. %{_bindir}/ptClear
  122. %{_datadir}/photivo
  123. %{_datadir}/applications/photivo.desktop
  124. %{_datadir}/pixmaps/photivo.png
  125.  
  126. %files -n photivo-gimp
  127. %defattr(-,root,root)
  128. "%{_libdir}/gimp/2.0/plug-ins/mm extern photivo.py"
  129. %{_libdir}/gimp/2.0/plug-ins/ptGimp
  130. %dir %{_libdir}/gimp
  131. %dir %{_libdir}/gimp/2.0
  132. %dir %{_libdir}/gimp/2.0/plug-ins
  133.  
  134.  
  135. %changelog
  136. * Wed Jun 15 2011 cowbutt6@hotmail.com
  137. - Fedora 14 package linked against static GraphicsMagick libraries
  138. * Tue May 17 2011 salsergey@gmail.com
  139. - Photivo rev 37837e15c7fe
  140.   * New slider fixed
  141. * Sun May 15 2011 salsergey@gmail.com
  142. - Photivo rev 7f59d5d51538
  143.   * Russian translation
  144.   * Save PNG 16bit
  145.   * New German translation
  146.   * New slider
  147.   * Clean up DRC, perspective corrections
  148. * Thu Apr 28 2011 salsergey@gmail.com
  149. - Photivo rev c0a43757ce69
  150.   * Add some more help URLs
  151.   * Some fixes
  152. - Build with GraphicsMagick with 16 bit support
  153. * Wed Apr 13 2011 salsergey@gmail.com
  154. - Photivo rev a38a332fbf86
  155.   * Updated both neutral presets.
  156.   * Added "auto scale" checkbox for Lensfun and Defish.
  157.   * Buttons to center crop rectangle horizontally and vertically on the image.
  158. * Wed Apr  6 2011 salsergey@gmail.com
  159. - Photivo rev dca734b99d64
  160.   * Switch crop rectangle between portrait/landscape
  161.   * UI for liquid rescale
  162.   * Make UI language user selectable.
  163. * Sat Apr  2 2011 salsergey@gmail.com
  164. - Photivo rev 536ab38cefb0 (lqr)
  165.   * First steps for liblqr (seam carving)
  166.   * Denoise curve
  167.   * Defish tool
  168. * Mon Mar 28 2011 salsergey@gmail.com
  169. - Photivo rev af1122a33cb1
  170.   * Lensfun integration
  171.   * Interface to control the display setting (normal, favourite, hidden) of
  172.   all tools
  173.   * Start screen and drag'n drop now on mainwindow
  174.   * 1:1 Detail view
  175.   * Add Italian translation, provided by Bartokk <bartokk at gmail dot com>
  176. * Mon Mar 21 2011 salsergey@gmail.com
  177. - Photivo rev 3dab098aa7d1
  178.   * New icon, big thanks to Naveed Ahmed
  179.   * Show favourite tools and all visible tools
  180.   * Keys for searching
  181. * Sat Mar 12 2011 salsergey@gmail.com
  182. - Photivo rev 221d57150acb
  183. * Sun Mar  6 2011 salsergey@gmail.com
  184. - Photivo rev 581b9e9966d9
  185. * Sat Mar  5 2011 salsergey@gmail.com
  186. - Photivo rev 91c0f614e566
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement