From 1b6145f28a8460816f613dd9be72757f02329d84 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Aug 27 2012 19:20:45 +0000 Subject: Revert "Update to 1.7.1" This reverts commit 24b8d295dabfd75d592a0f9159927ff8d783e335. Go back to safer known-quantiy 1.7.0 release, until the mess with the new release and ilmbase-1.0.3 is sorted out upstream --- diff --git a/.gitignore b/.gitignore index 3c872ab..6e23733 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ openexr-1.7.0.tar.gz openexr-1.7.0.tar.gz.sig -/openexr-1.7.1.tar.gz diff --git a/OpenEXR-1.6.1-pkgconfig.patch b/OpenEXR-1.6.1-pkgconfig.patch new file mode 100644 index 0000000..4fc93e0 --- /dev/null +++ b/OpenEXR-1.6.1-pkgconfig.patch @@ -0,0 +1,13 @@ +diff -up openexr-1.6.1/OpenEXR.pc.in.pkgconfig openexr-1.6.1/OpenEXR.pc.in +--- openexr-1.6.1/OpenEXR.pc.in.pkgconfig 2007-03-30 12:14:05.000000000 -0500 ++++ openexr-1.6.1/OpenEXR.pc.in 2008-01-09 10:08:53.000000000 -0600 +@@ -7,5 +7,7 @@ OpenEXR_includedir=@includedir@/OpenEXR + Name: OpenEXR + Description: OpenEXR image library + Version: @OPENEXR_VERSION@ +-Libs: -L${libdir} @ILMBASE_LDFLAGS@ -lIlmImf -lz @ILMBASE_LIBS@ +-Cflags: @ILMBASE_CXXFLAGS@ -I${OpenEXR_includedir} ++Requires: IlmBase ++Libs: -L${libdir} -lIlmImf ++Libs.private: -lz ++Cflags: -I${OpenEXR_includedir} diff --git a/OpenEXR.spec b/OpenEXR.spec index bea2022..98baa64 100644 --- a/OpenEXR.spec +++ b/OpenEXR.spec @@ -1,20 +1,27 @@ Name: OpenEXR -Version: 1.7.1 -Release: 1%{?dist} +Version: 1.7.0 +Release: 5%{?dist} Summary: A high dynamic-range (HDR) image file format Group: System Environment/Libraries License: BSD URL: http://www.openexr.com/ -Source0: https://github.com/downloads/openexr/openexr/openexr-%{version}.tar.gz -Patch0: openexr-1.7.1-so6.patch +Source0: http://download.savannah.nongnu.org/releases/openexr/openexr-%{version}.tar.gz +Source1: http://download.savannah.nongnu.org/releases/openexr/openexr-%{version}.tar.gz.sig BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Obsoletes: openexr < %{version}-%{release} Provides: openexr = %{version}-%{release} +## upstreamable patches +Patch50: OpenEXR-1.6.1-pkgconfig.patch +# missing #include +Patch51: openexr-1.7.0-cstring.patch + +## upstream patches + BuildRequires: automake libtool BuildRequires: ilmbase-devel BuildRequires: zlib-devel @@ -47,9 +54,11 @@ Group: System Environment/Libraries %prep %setup -q -n openexr-%{version} -%patch0 -p1 -b .so6 -%if 1 +%patch50 -p1 -b .pkgconfig +%patch51 -p1 -b .cstring + +%if 0 # work to remove rpaths, recheck on new releases aclocal -Im4 libtoolize --force @@ -70,16 +79,22 @@ make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT -make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" -find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' +make install DESTDIR=$RPM_BUILD_ROOT -#unpackaged files +# unpackaged files rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} +rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la + +# prepare docs +mkdir -p rpmdocs +cp -a IlmImfExamples rpmdocs/examples +rm -rf rpmdocs/examples/.deps + %check export PKG_CONFIG_PATH=%{buildroot}%{_datadir}/pkgconfig:%{buildroot}%{_libdir}/pkgconfig test "$(pkg-config --modversion OpenEXR)" = "%{version}" -#make check +#make check %clean @@ -111,11 +126,8 @@ rm -rf $RPM_BUILD_ROOT %changelog -* Thu Aug 02 2012 Nicolas Chauvet - 1.7.1-1 -- Update to 1.7.1 - --* Wed Jul 18 2012 Fedora Release Engineering - 1.7.0-5 --- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild +* Wed Jul 18 2012 Fedora Release Engineering - 1.7.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Feb 28 2012 Fedora Release Engineering - 1.7.0-4 - Rebuilt for c++ ABI breakage diff --git a/openexr-1.7.0-cstring.patch b/openexr-1.7.0-cstring.patch new file mode 100644 index 0000000..f861321 --- /dev/null +++ b/openexr-1.7.0-cstring.patch @@ -0,0 +1,11 @@ +diff -up openexr-1.7.0/exrenvmap/blurImage.cpp.cstring openexr-1.7.0/exrenvmap/blurImage.cpp +--- openexr-1.7.0/exrenvmap/blurImage.cpp.cstring 2009-02-25 17:39:27.000000000 -0600 ++++ openexr-1.7.0/exrenvmap/blurImage.cpp 2010-07-28 10:22:38.972704975 -0500 +@@ -43,6 +43,7 @@ + + #include + #include "Iex.h" ++#include + #include + #include + diff --git a/openexr-1.7.1-so6.patch b/openexr-1.7.1-so6.patch deleted file mode 100644 index ccc2def..0000000 --- a/openexr-1.7.1-so6.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up openexr-1.7.1/configure.ac.so6 openexr-1.7.1/configure.ac ---- openexr-1.7.1/configure.ac.so6 2012-07-18 01:27:28.000000000 +0200 -+++ openexr-1.7.1/configure.ac 2012-08-03 00:01:49.547438790 +0200 -@@ -8,7 +8,7 @@ AM_INIT_AUTOMAKE(1.6.3) dnl Require aut - AM_MAINTAINER_MODE - - --LIBTOOL_CURRENT=7 -+LIBTOOL_CURRENT=6 - LIBTOOL_REVISION=0 - LIBTOOL_AGE=0 - LIBTOOL_VERSION=$LIBTOOL_CURRENT:$LIBTOOL_REVISION:$LIBTOOL_AGE diff --git a/sources b/sources index e36254b..4c8b019 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ -a9e0369dfd68941c50cdaa93e9d7a8d1 openexr-1.7.1.tar.gz +27113284f7d26a58f853c346e0851d7a openexr-1.7.0.tar.gz +1ffd9feb14c373ebae68228b0495ada0 openexr-1.7.0.tar.gz.sig