2008-05-10 07:41:32 +00:00
|
|
|
# nVidia Cg toolkit is not free
|
|
|
|
%define with_Cg 0
|
|
|
|
%if %with_Cg
|
|
|
|
%define real_name OpenEXR_Viewers-nonfree
|
|
|
|
%define V_suffix -nonfree
|
|
|
|
%define priority 10
|
|
|
|
%else
|
|
|
|
%define real_name OpenEXR_Viewers
|
|
|
|
%define V_suffix -fedora
|
|
|
|
%define priority 5
|
|
|
|
%endif
|
|
|
|
|
2013-10-10 16:23:46 +00:00
|
|
|
%if 0%{?fedora} < 21
|
|
|
|
# https://bugzilla.redhat.com/1017873
|
|
|
|
%define openexr_ctl 1
|
|
|
|
%endif
|
|
|
|
|
2008-05-10 07:41:32 +00:00
|
|
|
Name: %{real_name}
|
2014-11-25 18:34:23 +00:00
|
|
|
Version: 2.2.0
|
2018-02-07 00:52:29 +00:00
|
|
|
Release: 9%{?dist}
|
2008-05-10 07:41:32 +00:00
|
|
|
Summary: Viewers programs for OpenEXR
|
|
|
|
|
|
|
|
Group: Applications/Multimedia
|
|
|
|
License: AMPAS BSD
|
|
|
|
URL: http://www.openexr.com
|
|
|
|
Source0: http://download.savannah.nongnu.org/releases/openexr/openexr_viewers-%{version}.tar.gz
|
2014-01-31 16:25:13 +00:00
|
|
|
# missing header from ^^, should be fixed/included in subsequent releases
|
2014-11-26 12:43:34 +00:00
|
|
|
#Source1: namespaceAlias.h
|
2008-05-10 07:41:32 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2013-10-11 19:22:51 +00:00
|
|
|
Patch1: openexr_viewers-2.0.1-dso.patch
|
2014-01-31 16:12:55 +00:00
|
|
|
# fix ftbfs due to missing header
|
|
|
|
Patch2: openexr_viewers-2.1.0-headers.patch
|
2013-10-11 19:22:51 +00:00
|
|
|
|
2010-09-05 21:28:35 +00:00
|
|
|
BuildRequires: libtool
|
|
|
|
|
2011-05-27 19:41:33 +00:00
|
|
|
BuildRequires: fltk-devel >= 1.1
|
2013-11-27 16:32:01 +00:00
|
|
|
BuildRequires: pkgconfig(OpenEXR) >= 2.1
|
2008-05-10 07:41:32 +00:00
|
|
|
%if %with_Cg
|
|
|
|
BuildRequires: Cg
|
|
|
|
BuildRequires: freeglut-devel
|
|
|
|
Provides: OpenEXR_Viewers = %{version}
|
|
|
|
%else
|
|
|
|
BuildConflicts: Cg
|
|
|
|
%endif
|
|
|
|
|
2013-10-10 16:23:46 +00:00
|
|
|
%if 0%{?openexr_ctl}
|
|
|
|
BuildRequires: OpenEXR_CTL-devel
|
|
|
|
BuildRequires: OpenEXR_CTL
|
2008-05-10 07:41:32 +00:00
|
|
|
Requires: OpenEXR_CTL
|
2013-10-10 16:23:46 +00:00
|
|
|
%endif
|
2008-05-10 07:41:32 +00:00
|
|
|
Requires(post): /usr/sbin/alternatives
|
|
|
|
Requires(preun): /usr/sbin/alternatives
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
exrdisplay is a simple still image viewer that optionally applies color
|
|
|
|
transforms to OpenEXR images, using ctl as explained in this document:
|
|
|
|
doc/OpenEXRViewers.pdf
|
|
|
|
|
|
|
|
%if %with_Cg
|
|
|
|
playexr is a program that plays back OpenEXR image sequences, optionally
|
|
|
|
with CTL support, applying rendering and display transforms in line with
|
|
|
|
the current discussions at the AMPAS Image Interchange Framework committee
|
|
|
|
(September 2006).
|
|
|
|
|
|
|
|
This is the nonfree version compiled with nVidia Cg support
|
|
|
|
See: http://developer.nvidia.com/object/cg_toolkit.html
|
|
|
|
%else
|
|
|
|
|
|
|
|
%package docs
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation
|
|
|
|
|
|
|
|
%description docs
|
|
|
|
This package contains documentation files for %{name}.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n openexr_viewers-%{version}
|
2010-09-05 21:28:35 +00:00
|
|
|
|
2013-10-11 19:22:51 +00:00
|
|
|
%patch1 -p1 -b .dso
|
2014-11-25 18:34:23 +00:00
|
|
|
#cp -n %{SOURCE1} exrdisplay/namespaceAlias.h
|
|
|
|
#patch2 -p1 -b .header
|
2013-10-11 19:22:51 +00:00
|
|
|
|
2010-09-05 21:28:35 +00:00
|
|
|
%if %{_lib} == lib64
|
|
|
|
sed -i -e 's|ACTUAL_PREFIX/lib/CTL|ACTUAL_PREFIX/lib64/CTL|' configure.ac
|
|
|
|
%endif
|
2013-10-11 19:22:51 +00:00
|
|
|
#Needed for patch1 and to update CTL compiler test
|
|
|
|
#autoconf
|
|
|
|
./bootstrap
|
2011-05-27 19:41:33 +00:00
|
|
|
sed -i -e 's|#include <vector>\n using namespace Ctl|#include <vector>\n #include <cstdlib>\nusing namespace Ctl|' configure
|
2008-05-10 07:41:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
export CXXFLAGS="$RPM_OPT_FLAGS -L%{_libdir}"
|
|
|
|
%configure --disable-static \
|
2013-10-05 16:57:07 +00:00
|
|
|
--disable-openexrtest \
|
2011-05-27 19:52:35 +00:00
|
|
|
--disable-openexrctltest \
|
2008-05-10 07:41:32 +00:00
|
|
|
%if %with_Cg
|
|
|
|
--with-cg-prefix=%{_prefix}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# Missing libs for playexr
|
|
|
|
sed -i -e 's|LIBS =|LIBS = -lglut|' playexr/Makefile
|
|
|
|
|
2011-06-24 17:53:31 +00:00
|
|
|
make %{?_smp_mflags}
|
2008-05-10 07:41:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
# Remove the config.h - uneeded afaik
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_includedir}
|
|
|
|
|
|
|
|
# move the binary
|
|
|
|
mv $RPM_BUILD_ROOT%{_bindir}/exrdisplay $RPM_BUILD_ROOT%{_bindir}/exrdisplay%{V_suffix}
|
|
|
|
|
|
|
|
# Removing installed docs
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc
|
|
|
|
|
|
|
|
# Owernship of the alternative provides
|
|
|
|
touch $RPM_BUILD_ROOT%{_bindir}/exrdisplay
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post
|
|
|
|
alternatives --install %{_bindir}/exrdisplay exrdisplay %{_bindir}/exrdisplay%{V_suffix} %{priority} ||:
|
|
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
alternatives --remove exrdisplay %{_bindir}/exrdisplay%{V_suffix} || :
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc AUTHORS ChangeLog COPYING NEWS README
|
|
|
|
%ghost %{_bindir}/exrdisplay
|
|
|
|
%{_bindir}/exrdisplay%{V_suffix}
|
|
|
|
%if %with_Cg
|
|
|
|
%{_bindir}/playexr
|
|
|
|
%else
|
|
|
|
|
|
|
|
%files docs
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc doc/OpenEXRViewers.odt doc/OpenEXRViewers.pdf
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|
2018-02-07 00:52:29 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-08-02 17:03:40 +00:00
|
|
|
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 01:58:49 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-10 05:16:19 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-02-03 15:33:39 +00:00
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-06-16 23:01:17 +00:00
|
|
|
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-05-02 14:27:09 +00:00
|
|
|
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 2.2.0-3
|
|
|
|
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
|
|
2015-02-19 14:00:35 +00:00
|
|
|
* Thu Feb 19 2015 Rex Dieter <rdieter@fedoraproject.org> 2.2.0-2
|
|
|
|
- rebuild (fltk)
|
|
|
|
|
2014-11-25 18:34:23 +00:00
|
|
|
* Tue Nov 25 2014 Rex Dieter <rdieter@fedoraproject.org> 2.2.0-1
|
|
|
|
- 2.2.0
|
|
|
|
|
2014-08-15 18:56:58 +00:00
|
|
|
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-06 22:58:01 +00:00
|
|
|
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-11-27 16:32:01 +00:00
|
|
|
* Wed Nov 27 2013 Rex Dieter <rdieter@fedoraproject.org> 2.1.0-1
|
|
|
|
- 2.1.0
|
|
|
|
|
2013-10-11 19:22:51 +00:00
|
|
|
* Fri Oct 11 2013 Rex Dieter <rdieter@fedoraproject.org> 2.0.1-3
|
|
|
|
- OpenEXR_Viewers FTBFS: ImplicitDSO Linking issues (#1017880)
|
|
|
|
|
2013-10-10 16:23:46 +00:00
|
|
|
* Thu Oct 10 2013 Rex Dieter <rdieter@fedoraproject.org> 2.0.1-2
|
|
|
|
- make OpenEXR_CTL support optional (since it doesn't support openexr-2.x yet)
|
|
|
|
|
2013-10-05 16:57:07 +00:00
|
|
|
* Sat Oct 05 2013 Nicolas Chauvet <kwizart@gmail.com> - 2.0.1-1
|
|
|
|
- Update to 2.0.1
|
|
|
|
|
2013-09-14 13:29:03 +00:00
|
|
|
* Sat Sep 14 2013 Bruno Wolff III <bruno@wolff.to> - 1.0.2-13
|
|
|
|
- Rebuild for ilmbase related soname bumps
|
|
|
|
|
2013-08-02 23:03:39 +00:00
|
|
|
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-03-11 14:43:25 +00:00
|
|
|
* Mon Mar 11 2013 Rex Dieter <rdieter@fedoraproject.org> - 1.0.2-11
|
|
|
|
- rebuild (OpenEXR)
|
|
|
|
|
2013-02-13 15:28:55 +00:00
|
|
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-18 13:51:16 +00:00
|
|
|
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-02-28 17:34:04 +00:00
|
|
|
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-8
|
|
|
|
- Rebuilt for c++ ABI breakage
|
|
|
|
|
2012-01-12 20:27:58 +00:00
|
|
|
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-06-24 17:53:31 +00:00
|
|
|
* Fri Jun 24 2011 Rex Dieter <rdieter@fedoraproject.org> 1.0.2-6
|
|
|
|
- FTBFS OpenEXR_Viewers-1.0.2-3.fc15: ImplicitDSOLinking (#716011)
|
|
|
|
|
2011-05-27 19:41:33 +00:00
|
|
|
* Fri May 27 2011 Nicolas Chauvet <kwizart@gmail.com> - 1.0.2-5
|
|
|
|
- Update gcc44 patch
|
2011-05-27 12:49:57 +00:00
|
|
|
- Rebuild for new fltk
|
2011-05-27 19:41:33 +00:00
|
|
|
- Drop old Obsoletes OpenEXR-utils < 1.6.0
|
2011-05-27 12:49:57 +00:00
|
|
|
|
2011-02-08 00:05:44 +00:00
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-09-05 21:28:35 +00:00
|
|
|
* Sun Sep 05 2010 Nicolas Chauvet <kwizart@gmail.com> - 1.0.2-2
|
|
|
|
- Fix CTL Module search path on lib64
|
|
|
|
- Fix OpenEXR_CTL detection at build time.
|
|
|
|
|
2010-08-23 09:39:57 +00:00
|
|
|
* Mon Aug 23 2010 Nicolas Chauvet <kwizart@gmail.com> - 1.0.2-1
|
|
|
|
- Update to 1.0.2
|
|
|
|
|
2009-10-20 19:13:32 +00:00
|
|
|
* Tue Oct 20 2009 kwizart < kwizart at gmail.com > - 1.0.1-7
|
|
|
|
- Rebuild for F-12
|
|
|
|
|
2009-07-24 15:43:06 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-23 22:15:51 +00:00
|
|
|
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-02-12 22:43:31 +00:00
|
|
|
* Thu Feb 12 2009 kwizart < kwizart at gmail.com > - 1.0.1-4
|
|
|
|
- Rebuild for gcc44
|
|
|
|
|
2008-10-17 08:26:05 +00:00
|
|
|
* Fri Oct 17 2008 kwizart < kwizart at gmail.com > - 1.0.1-3
|
|
|
|
- Rebuild for F-10
|
|
|
|
|
2008-05-10 07:41:32 +00:00
|
|
|
* Sat May 10 2008 kwizart < kwizart at gmail.com > - 1.0.1-2
|
|
|
|
- Ghost the alternative provides
|
|
|
|
- Obsoletes OpenEXR-utils
|
|
|
|
|
|
|
|
* Wed Jan 9 2008 kwizart < kwizart at gmail.com > - 1.0.1-1
|
|
|
|
- Initial package for Fedora
|
|
|
|
|