Accepting request 509954 from graphics

1

OBS-URL: https://build.opensuse.org/request/show/509954
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openexr?expand=0&rev=26
This commit is contained in:
Dominique Leuenberger 2017-07-17 07:02:16 +00:00 committed by Git OBS Bridge
commit 7917ef50be
2 changed files with 26 additions and 33 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jul 12 09:22:22 UTC 2017 - tchvatal@suse.com
- Cleanup a bit with spec-cleaner
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jan 29 09:50:21 UTC 2015 - mlin@suse.com Thu Jan 29 09:50:21 UTC 2015 - mlin@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package openexr # spec file for package openexr
# #
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,11 +17,9 @@
%global so_suffix -2_2-22 %global so_suffix -2_2-22
# tests should run at least during local build # tests should run at least during local build
# but do expect a HUGE number of memory, so beware # but do expect a HUGE number of memory, so beware
%bcond_with tests %bcond_with tests
Name: openexr Name: openexr
Version: 2.2.0 Version: 2.2.0
Release: 0 Release: 0
@ -29,20 +27,19 @@ Summary: Utilities for work with HDR images in OpenEXR format
License: BSD-3-Clause License: BSD-3-Clause
Group: Productivity/Graphics/Other Group: Productivity/Graphics/Other
Url: http://www.openexr.com/ Url: http://www.openexr.com/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: automake
BuildRequires: fltk-devel
BuildRequires: freeglut-devel
BuildRequires: gcc-c++
BuildRequires: pkg-config
BuildRequires: pkgconfig(IlmBase) = %{version}
BuildRequires: pkgconfig(zlib)
Obsoletes: OpenEXR <= 1.6.1
Provides: OpenEXR = %{version}
Source0: http://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.gz Source0: http://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.gz
Source1: http://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.gz.sig Source1: http://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.gz.sig
Source2: baselibs.conf Source2: baselibs.conf
Source3: openexr.keyring Source3: openexr.keyring
BuildRequires: automake
BuildRequires: fltk-devel
BuildRequires: freeglut-devel
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(IlmBase) = %{version}
BuildRequires: pkgconfig(zlib)
Obsoletes: OpenEXR <= 1.6.1
Provides: OpenEXR = %{version}
%description %description
OpenEXR is a high dynamic-range (HDR) image file format developed by OpenEXR is a high dynamic-range (HDR) image file format developed by
@ -68,11 +65,9 @@ Industrial Light & Magic for use in computer imaging applications.
This package contains shared library libIlmImf This package contains shared library libIlmImf
%post -n libIlmImf%{so_suffix} -p /sbin/ldconfig %post -n libIlmImf%{so_suffix} -p /sbin/ldconfig
%postun -n libIlmImf%{so_suffix} -p /sbin/ldconfig %postun -n libIlmImf%{so_suffix} -p /sbin/ldconfig
%files -n libIlmImf%{so_suffix} %files -n libIlmImf%{so_suffix}
%defattr(-,root,root)
%doc COPYING %doc COPYING
%{_libdir}/libIlmImf-*.so.* %{_libdir}/libIlmImf-*.so.*
@ -87,26 +82,24 @@ Industrial Light & Magic for use in computer imaging applications.
This package contains shared library libIlmImfUtil This package contains shared library libIlmImfUtil
%post -n libIlmImfUtil%{so_suffix} -p /sbin/ldconfig %post -n libIlmImfUtil%{so_suffix} -p /sbin/ldconfig
%postun -n libIlmImfUtil%{so_suffix} -p /sbin/ldconfig %postun -n libIlmImfUtil%{so_suffix} -p /sbin/ldconfig
%files -n libIlmImfUtil%{so_suffix} %files -n libIlmImfUtil%{so_suffix}
%defattr(-,root,root)
%doc COPYING %doc COPYING
%{_libdir}/libIlmImfUtil-*.so.* %{_libdir}/libIlmImfUtil-*.so.*
%package devel %package devel
Summary: Library to Handle EXR Pictures (16-bit floating-point format) Summary: Library to Handle EXR Pictures (16-bit floating-point format)
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libIlmImf%{so_suffix} = %{version}
Requires: libIlmImfUtil%{so_suffix} = %{version}
Requires: libilmbase-devel
Requires: pkgconfig
Requires: pkgconfig(zlib)
Obsoletes: OpenEXR-devel <= 1.6.1 Obsoletes: OpenEXR-devel <= 1.6.1
Provides: OpenEXR-devel = %{version} Provides: OpenEXR-devel = %{version}
Obsoletes: libopenexr-devel <= 1.7.0 Obsoletes: libopenexr-devel <= 1.7.0
Provides: libopenexr-devel = %{version} Provides: libopenexr-devel = %{version}
Requires: libIlmImf%{so_suffix} = %{version}
Requires: libIlmImfUtil%{so_suffix} = %{version}
Requires: libilmbase-devel
Requires: pkg-config
Requires: zlib-devel
%description devel %description devel
OpenEXR is a high dynamic-range (HDR) image file format developed by OpenEXR is a high dynamic-range (HDR) image file format developed by
@ -136,35 +129,32 @@ if cmp COPYING LICENSE; then
fi fi
# remove a non-linux file # remove a non-linux file
%{__rm} README.win32 README.OSX rm README.win32 README.OSX
%build %build
#autoreconf --force --install --include=config
#
export PTHREAD_LIBS="-lpthread" export PTHREAD_LIBS="-lpthread"
%{configure} \ %configure \
--disable-static \ --disable-static \
--with-pic \ --with-pic \
--enable-large-stack \ --enable-large-stack \
--enable-imfexamples \ --enable-imfexamples \
--enable-imffuzztest \ --enable-imffuzztest \
--enable-imfhugetest --enable-imfhugetest
%{__make} %{?_smp_mflags} make %{?_smp_mflags}
%install %install
%{makeinstall} %make_install
%{__rm} -f %{buildroot}%{_libdir}/*.la find %{buildroot} -type f -name "*.la" -delete -print
install -d -m 0755 %{buildroot}%{_defaultdocdir}/ install -d -m 0755 %{buildroot}%{_defaultdocdir}/
mv %{buildroot}%{_datadir}/doc/OpenEXR-2* %{buildroot}%{_defaultdocdir}/%{name}-%{version} mv %{buildroot}%{_datadir}/doc/OpenEXR-2* %{buildroot}%{_defaultdocdir}/%{name}-%{version}
%check %check
%if %{with tests} %if %{with tests}
%{__make} check make %{?_smp_mflags} check
%endif %endif
%files %files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING LICENSE NEWS README* %doc AUTHORS ChangeLog COPYING LICENSE NEWS README*
%{_bindir}/exrenvmap %{_bindir}/exrenvmap
%{_bindir}/exrheader %{_bindir}/exrheader
@ -175,7 +165,6 @@ mv %{buildroot}%{_datadir}/doc/OpenEXR-2* %{buildroot}%{_defaultdocdir}/%{name}-
%{_bindir}/exrmultipart %{_bindir}/exrmultipart
%files devel %files devel
%defattr(-,root,root)
%{_includedir}/OpenEXR %{_includedir}/OpenEXR
%{_libdir}/libIlmImf.so %{_libdir}/libIlmImf.so
%{_libdir}/libIlmImfUtil.so %{_libdir}/libIlmImfUtil.so
@ -183,7 +172,6 @@ mv %{buildroot}%{_datadir}/doc/OpenEXR-2* %{buildroot}%{_defaultdocdir}/%{name}-
%{_datadir}/aclocal/openexr.m4 %{_datadir}/aclocal/openexr.m4
%files doc %files doc
%defattr(-,root,root)
%{_docdir}/%{name}-%{version} %{_docdir}/%{name}-%{version}
%changelog %changelog