Accepting request 129675 from devel:libraries:c_c++

- Update to 1.7.1 
  * Updated the .so verison to 7.
  * obsoletes openexr-includes.patch
- require new ilmbase-devel for build
- rename libopenexr-devel to openexr devel to be compatible
  with renamed ilmbase package

OBS-URL: https://build.opensuse.org/request/show/129675
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openexr?expand=0&rev=13
This commit is contained in:
Stephan Kulow
2012-08-08 08:56:55 +00:00
committed by Git OBS Bridge
parent db0dc41956
commit c6f7db67b5
5 changed files with 40 additions and 65 deletions

View File

@@ -17,17 +17,17 @@
Name: openexr
Version: 1.7.1
Release: 0
Summary: Utilities for work with HDR images in OpenEXR format
License: BSD-3-Clause ; GPL-2.0+
Group: Productivity/Graphics/Other
Version: 1.7.0
Release: 0
Url: http://www.openexr.com/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fltk-devel
BuildRequires: freeglut-devel
BuildRequires: gcc-c++
BuildRequires: libilmbase-devel
BuildRequires: ilmbase-devel
# bug437293
%ifarch ppc64
Obsoletes: OpenEXR-64bit
@@ -35,12 +35,11 @@ Obsoletes: OpenEXR-64bit
#
Obsoletes: OpenEXR <= 1.6.1
Provides: OpenEXR = %{version}
Source0: %{name}-%version.tar.bz2
Source0: %{name}-%version.tar.gz
Source1: baselibs.conf
Patch0: openexr-suse-docdir.patch
Patch1: openexr-includes.patch
# disable broken tests
Patch2: openexr-disable-tests.patch
Patch1: openexr-disable-tests.patch
%description
OpenEXR is a high dynamic-range (HDR) image file format developed by
@@ -55,29 +54,40 @@ contains a set of utilities to work with this format.
* exr2aces, converter to ACES format
* exrmultiview, combine two or more images into one multi-view
%package -n libIlmImf6
%package -n libIlmImf7
Summary: Library to Handle EXR Pictures in 16-Bit Floating-Point Format
Group: Development/Libraries/C and C++
# provide also the most expected symbol
Provides: libopenexr6 = %{version}
Provides: libopenexr7 = %{version}
%description -n libIlmImf6
%description -n libIlmImf7
OpenEXR is a high dynamic-range (HDR) image file format developed by
Industrial Light & Magic for use in computer imaging applications.
This package contains libIlmImf.so.6
%package -n libopenexr-devel
%post -n libIlmImf7 -p /sbin/ldconfig
%postun -n libIlmImf7 -p /sbin/ldconfig
%files -n libIlmImf7
%defattr(-,root,root)
%doc COPYING
%{_libdir}/libIlmImf.so.*
%package devel
Summary: Library to Handle EXR Pictures (16-bit floating-point format)
Group: Development/Libraries/C and C++
Obsoletes: OpenEXR-devel <= 1.6.1
Provides: OpenEXR-devel = %{version}
Obsoletes: libopenexr-devel <= 1.7.0
Provides: libopenexr-devel = %{version}
Requires: libilmbase-devel
Requires: libopenexr6 = %{version}
Requires: libopenexr7 = %{version}
Requires: pkg-config
Requires: zlib-devel
%description -n libopenexr-devel
%description devel
OpenEXR is a high dynamic-range (HDR) image file format developed by
Industrial Light & Magic for use in computer imaging applications.
@@ -97,10 +107,10 @@ This package contains a documentation
%prep
%setup -q
%patch0 -b .sav
%patch1 -b .sav
%patch2 -p1 -b .sav
# rename a non-linux file
%patch0 -p0
%patch1 -p1
# remove a non-linux file
%{__rm} README.win32 README.OSX
%build
@@ -124,10 +134,6 @@ export PTHREAD_LIBS="-lpthread"
# so let disable it
# % {__make} check
%post -n libIlmImf6 -p /sbin/ldconfig
%postun -n libIlmImf6 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING LICENSE NEWS README*
@@ -139,12 +145,7 @@ export PTHREAD_LIBS="-lpthread"
%{_bindir}/exr2aces
%{_bindir}/exrmultiview
%files -n libIlmImf6
%defattr(-,root,root)
%doc COPYING
%{_libdir}/libIlmImf.so.*
%files -n libopenexr-devel
%files devel
%defattr(-,root,root)
%{_includedir}/OpenEXR
%{_libdir}/libIlmImf.so