%{!?_licensedir:%global license %%doc} %define enable_gtk1 1 %if 0%{?rhel} && 0%{?rhel} >= 8 %define enable_gtk1 0 %endif %define enable_elektra 1 %if 0%{?rhel} && 0%{?rhel} >= 8 %define enable_elektra 0 %endif %if 0%{?fedora} && 0%{?fedora} >= 25 %define enable_elektra 0 %endif %global icc_version 0.51 %global upstream_version 1.0-4 #1284189 - Cinepaint crashes instantly on startup %undefine _hardened_build Name: cinepaint Version: 1.4 Release: 16%{?dist} Summary: Painting and image retouching program Group: Applications/Multimedia License: GPLv2+ and LGPLv2+ and MIT URL: http://www.cinepaint.org/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{upstream_version}.tar.gz # http://www.behrmann.name/index.php?option=com_content&task=view&id=33&Itemid=69 #Source1: http://downloads.sourceforge.net/oyranos/icc_examin-%{icc_version}.tar.bz2 Source2: cinepaint.png Patch2: cinepaint-0.22-0-rm_rpath.patch Patch3: cinepaint-0.22-0-pc_req.patch Patch4: cinepaint-0.22-0-libdir.patch Patch15: cinepaint-0.22-ENOY.patch Patch16: cinepaint-0.25-oyranos_include.patch Patch17: cinepaint-0.25-oyranos_cms.patch Patch18: cinepaint-0.25-oyranos_header.patch Patch21: cinepaint-1.3-c++half.patch Patch22: cinepaint-1.3-fixlink.patch Patch23: cinepaint-1.3-fixlink2.patch #%Patch25: cinepaint-1.3-oy040.patch Patch30: icc_examin-0.51-x11.patch Patch31: cinepaint-1.4-png.patch Patch32: cinepaint-1.4-oy040.patch Patch33: cinepaint-1.4-no-oyranos.patch Patch34: cinepaint-1.4-format-security.patch Patch35: cinepaint-1.4-lib64.patch #ifnarch %%{ix86} ppc BuildRequires: autoconf libtool #endif BuildRequires: desktop-file-utils BuildRequires: docbook-utils BuildRequires: flex, flex-static BuildRequires: fltk-devel BuildRequires: ftgl-devel BuildRequires: gettext BuildRequires: gcc gcc-c++ #Needed by autogen.sh %if 0%{?enable_gtk1} BuildRequires: gtk+-devel %endif BuildRequires: gtk2-devel >= 2.10.8 BuildRequires: gutenprint-devel >= 5.0.0 BuildRequires: python2-devel BuildRequires: lcms-devel >= 1.16 BuildRequires: libjpeg-devel BuildRequires: libtiff-devel BuildRequires: libXcm-devel >= 0.5.0 BuildRequires: libXmu-devel BuildRequires: libXpm-devel BuildRequires: libXxf86vm-devel BuildRequires: OpenEXR-devel >= 1.6.0 BuildRequires: oyranos-devel %if 0%{?enable_elektra} BuildRequires: elektra-devel %endif BuildRequires: libxml2-devel BuildRequires: yajl-devel Requires: dejavu-sans-fonts Requires: oyranos Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description CinePaint is used for motion picture frame-by-frame retouching, dirt removal, wire rig removal, render repair, background plates, and 3d model textures. It's been used on many feature films, including The Last Samurai where it was used to add flying arrows. It's also being used by pro photographers who need greater color fidelity than is available in other tools. %package libs Summary: Libraries for %{name} Group: System Environment/Libraries %description libs CinePaint is used for motion picture frame-by-frame retouching, dirt removal, wire rig removal, render repair, background plates, and 3d model textures. It's been used on many feature films, including The Last Samurai where it was used to add flying arrows. It's also being used by pro photographers who need greater color fidelity than is available in other tools. %package devel Summary: Development package for %{name} Group: Development/Libraries Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: automake Requires: pkgconfig Requires: gtk2-devel %description devel This package contains development files for %{name}. %prep %setup -q -n cinepaint-%{upstream_version} #%%setup -q -D -T -a 1 -n cinepaint %patch2 -p1 -b .rm_rpath %patch3 -p1 -b .req %patch4 -p1 -b .libdir %patch15 -p1 -b .enoy %patch16 -p0 -b .inc %patch17 -p0 -b .cms %patch18 -p0 -b .headers %patch21 -p1 -b .c++half %patch22 -p1 -b .fixlink %patch23 -p1 -b .fixlink2 #%%patch25 -p1 -b .oy040 #%pushd icc_examin-%{icc_version} #%%patch30 -p1 -b .x11 #%popd %patch31 -p1 -b .png %patch32 -p1 -b .oy040 %patch33 -p1 -b .no_oy %patch34 -p1 -b .fmtsec %if "%{_lib}" == "lib64" %patch35 -p1 -b .lib64 %endif cp -af %{SOURCE2} . # fixing default ICC profile path (owned by icc-profiles-openicc) (FIXME: Bug 1069672) sed -i 's|/usr/share/color/icc/sRGB.icc|/usr/share/color/icc/OpenICC/sRGB.icc|' gimprc.in # Update bundled version of icc_examin #rm -rf plug-ins/icc_examin/icc_examin #cp -pR icc_examin-%{icc_version} plug-ins/icc_examin/icc_examin #sed -i -e 's|AC_PATH_PROGS(RPMBUILD, rpm, :)||' configure.in #sed -i -e 's|PNG_CONFIG libpng|PNG_CONFIG libpng10|' configure.in #Disable png until ported to libpng15 #sed -i -e '/png/d' plug-ins/Makefile.am #ifnarch %%{ix86} ppc #autoconf -f -i #find . -name Makefile.in -exec rm {} ';' #rm *.m4 #sh autogen.sh #endif for i in AUTHORS COPYING LICENSE README ;do install -p -m 0644 libhalf/$i $i.libhalf done sed -i 's|\r||' NEWS COPYING # prevent interp_md5 to be used #rm plug-ins/script-fu/interp_md5.{h,c} # fixing the python lib path, but is it still needed? # pygimp seems to be removed from the plugin directory %if "%{_lib}" == "lib64" sed -i 's|PYEPREFIX/lib|PYEPREFIX/lib64|g' configure %endif %build export LDFLAGS="-lstdc++ -lm -lX11 %{?__global_ldflags}" %configure \ --disable-static \ --enable-gtk2 \ --with-pixmap=%{_datadir}/pixmaps \ --with-python=%{_bindir}/python \ --enable-precision=float \ --enable-pygimp # remove rpath from libtool sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool # clean unused-direct-shlib-dependencies sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool # forcing empty OYRANOS variables to disable OYRANOS (it's crashing) make %{?_smp_mflags} OYRANOS_CFLAGS="" OYRANOS_LIBS="" %install make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -c -p" find $RPM_BUILD_ROOT -name '*.la' | xargs rm -f #chmod 755 $RPM_BUILD_ROOT%%{_libdir}/cinepaint/%%{cinever}/plug-ins/gtkcons.py desktop-file-install \ --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ --remove-category Application \ --mode 644 \ ${RPM_BUILD_ROOT}%{_datadir}/applications/cinepaint.desktop # fix multilib cinepaint-devel sed -i -e 's|plug_in_dir=%{_libdir}/cinepaint/%{cinever}|plug_in_dir="$(pkg-config --variable programplugindir cinepaint-gtk)"|' \ ${RPM_BUILD_ROOT}%{_bindir}/cinepainttool touch -r ChangeLog ${RPM_BUILD_ROOT}%{_bindir}/cinepainttool # remove bundled fonts rm -rf $RPM_BUILD_ROOT%{_datadir}/fonts # rename gimprc to cinepaintrc mv -f $RPM_BUILD_ROOT%{_datadir}/cinepaint/%{upstream_version}/gimprc \ $RPM_BUILD_ROOT%{_datadir}/cinepaint/%{upstream_version}/cinepaintrc %find_lang %{name} %find_lang cinepaint-script-fu %find_lang cinepaint-std-plugins cat cinepaint-script-fu.lang | grep lang >> %{name}.lang cat cinepaint-std-plugins.lang | grep lang >> %{name}.lang %post libs -p /sbin/ldconfig %post update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : %postun libs -p /sbin/ldconfig %postun update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : %files -f %{name}.lang %doc AUTHORS NEWS README %license COPYING %{_bindir}/cinepaint %{_bindir}/cinepaint-remote %{_mandir}/man1/* %{_datadir}/applications/*%{name}.desktop %{_datadir}/pixmaps/%{name}.png %{_datadir}/%{name}/ # removed from upstream sources ? #%{python_sitelib}/* #%if %{_lib} == "lib64" #%{python_sitearch}/* #%endif %files libs %doc *.libhalf %{_libdir}/%{name}/ %{_libdir}/*.so.* %files devel %{_bindir}/cinepainttool %{_libdir}/*.so %{_libdir}/pkgconfig/%{name}-gtk.pc %{_includedir}/%{name}/ %{_datadir}/aclocal/%{name}.m4 %changelog * Sat Oct 26 2019 Tomasz Tomasik - 1.4-16 - Rebuilt against new oyranos * Sat May 19 2018 Tomasz Tomasik - 1.4-15 - SPEC file cleanups - Rebuilt against new oyranos * Wed Feb 03 2016 Fedora Release Engineering - 1.4-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Jan 18 2016 Jaromir Capik - 1.4-13 - Disabling hardened build to avoid crashes (#1284189) * Thu Aug 20 2015 Jon Ciesla - 1.4-12 - Rebuild for new LibRaw. * Wed Jun 17 2015 Fedora Release Engineering - 1.4-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed May 06 2015 Rex Dieter 1.4-10 - include %%{?__global_ldflags} in LDFLAGS modifications * Thu Feb 19 2015 Rex Dieter 1.4-9 - rebuild (fltk) * Thu Dec 04 2014 Rex Dieter - 1.4-8 - rebuild (openexr) - drop extraneous scriptlet deps - tighten subpkg deps via %%?_isa * Sat Aug 16 2014 Fedora Release Engineering - 1.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Feb 24 2014 Jaromir Capik - 1.4-5 - Replacing the png patch with the upstream one (thx to Nick Black) - Fixing the cinepaintrc filename -> plug-ins are reachable without intervention - Fixing the default ICC profile path - Fixing the hardcoded library path in the blur plug-in check * Mon Feb 17 2014 Jaromir Capik - 1.4-4 - Fixing format-security flaws (#1037014) * Mon Feb 17 2014 Jaromir Capik - 1.4-3 - Using re-encoded icon due to inability of libpng to decode the original (#1066099) * Wed Nov 27 2013 Rex Dieter - 1.4-2 - rebuild (openexr) * Tue Oct 29 2013 Jaromir Capik - 1.4-1 - Trying to resurrect the project - Updating to 1.4 [ = 1.0-4 upstream ] - Patching the PNG plugin - Fixing the oy040 patch to apply cleanly - Removing python stuff from files due to build failures (removed upstream?) - Removing oyranos support - it's crashing :( - Fixing bogus dates in the changelog * Sat Sep 14 2013 Bruno Wolff III - 1.3-11 - Rebuild for ilmbase related soname bumps * Sat Aug 03 2013 Fedora Release Engineering - 1.3-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sun Mar 10 2013 Rex Dieter - 1.3-9 - rebuild (OpenEXR) * Thu Feb 14 2013 Rahul Sundaram - 1.3-8 - remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247 - clean up spec to follow current guidelines * Wed Feb 13 2013 Fedora Release Engineering - 1.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jan 18 2013 Adam Tkac - 1.3-6 - rebuild due to "jpeg8-ABI" feature drop * Fri Dec 21 2012 Adam Tkac - 1.3-5 - rebuild against new libjpeg * Wed Jul 18 2012 Fedora Release Engineering - 1.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jul 10 2012 Nicolas Chauvet - 1.3-3 - Back to previous gutenprint ABI * Wed Jun 13 2012 Nicolas Chauvet - 1.3-2 - Rebuilt for gutenprint ABI change * Mon Apr 09 2012 Nicolas Chauvet - 1.3-1 - Update to 1.3 * Tue Feb 28 2012 Fedora Release Engineering - 0.25.0-0.5 - Rebuilt for c++ ABI breakage * Thu Jan 12 2012 Fedora Release Engineering - 0.25.0-0.4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Dec 06 2011 Adam Jackson - 0.25.0-0.3 - Rebuild for new libpng * Fri May 27 2011 Nicolas Chauvet - 0.25.0-0.2 - Rebuild for new fltk * Mon Feb 21 2011 Nicolas Chauvet - 0.25.0-0.1 - Update to pre 0.25 * Fri Aug 27 2010 Nicolas Chauvet - 0.22.1-19 - Build for oyranos 0.1.10 * Sun Aug 22 2010 Nicolas Chauvet - 0.22.1-18 - rebuilt for oyranos * Wed Jul 21 2010 David Malcolm - 0.22.1-17 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Wed Jun 23 2010 Dan Horák - 0.22.1-16 - fix linking on i386 * Wed Jun 23 2010 Dan Horák - 0.22.1-15 - fix FTBFS #565039 - fix string overflow in icc_examin.cpp (#523700 ??) * Fri Jul 24 2009 Fedora Release Engineering - 0.22.1-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Fri May 22 2009 kwizart < kwizart at gmail.com > - 0.22.1-13 - Rebuild for ftgl (#501323) * Mon Mar 9 2009 kwizart < kwizart at gmail.com > - 0.22.1-12 - Fix for gcc44 - backport oyranos 0.1.9 support - Switch from freefont to dejavu-sans-fonts for icc_examin internal plug-in - Add BR libxml2-devel - Better multiarch conditional * Mon Feb 23 2009 Fedora Release Engineering - 0.22.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Dec 8 2008 kwizart < kwizart at gmail.com > - 0.22.1-10 - Fix underquoted cinepaint.m4 - #450325 - Fix automatic provides a specific architecture * Thu Oct 09 2008 Dennis Gilmore - 0.22.1-8 - add sparc64 to the list of 64 bit arches for python site arch * Fri Mar 7 2008 kwizart < kwizart at gmail.com > - 0.22.1-7 - Add BR Oyranos 0.1.7 * Fri Feb 15 2008 kwizart < kwizart at gmail.com > - 0.22.1-6 - Update icc_examin to 0.44 - Fix cinepaint and icc_examin for gcc43 * Mon Oct 15 2007 kwizart < kwizart at gmail.com > - 0.22.1-5 - Rebuild to new OpenEXR * Tue Oct 2 2007 kwizart < kwizart at gmail.com > - 0.22.1-4 - Patch plug-ins/script-fu/interp_md5.* (remove RSA) - Add Requires pygtk2 * Sat Aug 18 2007 kwizart < kwizart at gmail.com > - 0.22.1-3 - Fix unused-direct-shlib-dependencies - Multilibs compliant - Update License field * Mon Jul 16 2007 kwizart < kwizart at gmail.com > - 0.22.1-2 - Add BR ftgl-devel * Tue Jun 19 2007 kwizart < kwizart at gmail.com > - 0.22.1-1 - Update to 0.22-1 - Moved cinepainttool in -devel * Mon Jun 18 2007 kwizart < kwizart at gmail.com > - 0.22.0-6 - Add patch to remove rpath - Uses autoconf on everything exept i386 ppc (libdir) * Sun Jun 10 2007 kwizart < kwizart at gmail.com > - 0.22.0-5 - Removed remaining rpaths with chrpath (this will allow icc_examin to build) * Mon May 14 2007 kwizart < kwizart at gmail.com > - 0.22.0-4 - Add post & postun for update-desktop-database - Add patch to prevent ld skipping incompatible on lib64 - Rebuild with new fltk prevent some rpath problems - Pre test oyranos-devel ftgl-devel * Sat May 12 2007 kwizart < kwizart at gmail.com > - 0.22.0-3.1 - Add python_sitearch (needed on x86_64) - Add Requires freefont (FreeSans.ttf needed for icc_examin) - Remove rpath (libtool method) - Add BR oyranos-devel * Fri May 11 2007 Mamoru Tasaka - 0.22.0-3 - Don't use rpath - Don't call autoconf - Add missing / Remove unnecessary BuildRequires/Requires - Fix file entry (especially for directory ownership issue) - Fix desktop file - Resolve undefined non-weak symbol * Thu May 10 2007 kwizart < kwizart at gmail.com > - 0.22.0-2 - Add autoconf - Add libXpm-devel - Add ftgl-devel (optional - wip) - Add xorg-x11-proto-devel (icc_examin) * Wed Apr 11 2007 kwizart < kwizart at gmail.com > - 0.22.0-1 - Update to 0.22-0 - Add --enable-gtk2 - Enable python * Mon Jan 29 2007 kwizart < kwizart at gmail.com > - 0.21.2-1 - Initial release for Fedora Extras * Mon May 29 2006 Kai-Uwe Behrmann - move desktop entries to normal installation * Sun Mar 26 2006 Kai-Uwe Behrmann - add locale info * Fri Apr 11 2003 Robin Rowe - filmgimp to cinepaint rename - rename gimp files * Tue Dec 03 2002 Sam Richards - Changed include directory path. * Wed Nov 06 2002 Rene Rask - release 0.6-2 - Rpms can now be built from source by running "make rpm" - Updated splash and logo images. * Mon Nov 04 2002 Rene Rask - release 0.6. * Wed Oct 30 2002 Rene Rask - Initial RPM release.