]> git.pld-linux.org Git - packages/OpenColorIO.git/blobdiff - OpenColorIO.spec
- release 2 (by relup.sh)
[packages/OpenColorIO.git] / OpenColorIO.spec
index 6d0b2d940c5ceeaa5e7c39f64ba78320ddc3b1c5..76eed9524e3b01dae291e6559cbab7a2ccba3ac5 100644 (file)
 Summary:       Complete color management solution
 Summary(pl.UTF-8):     Kompletny pakiet do zarządzania kolorami
 Name:          OpenColorIO
-Version:       1.0.8
-Release:       1
+Version:       1.1.1
+Release:       2
 License:       BSD
 Group:         Libraries
-Source0:       https://github.com/imageworks/OpenColorIO/tarball/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 9838f5f1cf624a3d1253241f22e2179a
+#Source0Download: https://github.com/imageworks/OpenColorIO/releases
+Source0:       https://github.com/imageworks/OpenColorIO/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 23d8b9ac81599305539a5a8674b94a3d
 Patch0:                %{name}-system-libs.patch
 Patch1:                %{name}-java.patch
 Patch2:                %{name}-libsuffix.patch
-# for yaml-cpp 0.5.0 (unfinished)
-Patch3:                %{name}-yaml-cpp.patch
+Patch3:                %{name}-missing.patch
+Patch4:                %{name}-yaml-cpp.patch
+Patch5:                %{name}-no-Werror.patch
+Patch6:                %{name}-oiio.patch
+Patch7:                %{name}-cmake-dir.patch
+Patch8:                %{name}-disable-latex.patch
 URL:           http://opencolorio.org/
-# g++ with tr1 support or...
-#BuildRequires:        boost-devel >= 1.34
 BuildRequires: cmake >= 2.8
 %{?with_java:BuildRequires:    jdk}
-BuildRequires: libstdc++-devel
+BuildRequires: libstdc++-devel >= 6:4.7
 BuildRequires: pkgconfig
 BuildRequires: python-devel
-%{?with_docs:BuildRequires:    sphinx-pdg >= 1.1}
+%if %{with docs}
+BuildRequires: sphinx-pdg >= 1.1
+%endif
 BuildRequires: tinyxml-devel >= 2.6.1
-BuildRequires: yaml-cpp-devel >= 0.2.6
-BuildRequires: yaml-cpp-devel < 0.4.0
+BuildRequires: yaml-cpp-devel >= 0.3.0
 %if %{with opengl}
 BuildRequires: OpenGL-devel
 BuildRequires: OpenGL-glut-devel
@@ -48,7 +52,7 @@ BuildRequires:        OpenImageIO-devel
 BuildRequires: lcms2-devel >= 2.1
 %endif
 Requires:      tinyxml >= 2.6.1
-Requires:      yaml-cpp >= 0.2.6
+Requires:      yaml-cpp >= 0.3.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -76,6 +80,7 @@ Summary:      OpenColorIO convert tool
 Summary(pl.UTF-8):     Narzędzie OpenColorIO do konwersji
 Group:         Applications/Graphics
 Requires:      %{name} = %{version}-%{release}
+Requires:      lcms2 >= 2.1
 
 %description convert
 OpenColorIO convert tool.
@@ -158,10 +163,16 @@ Header file for PyOpenColorIO API.
 Plik nagłówkowy API PyOpenColorIO.
 
 %prep
-%setup -q -n imageworks-OpenColorIO-8883824
+%setup -q
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
 
 %build
 # required for cmake to find JNI headers/libs when lib64 is in use
@@ -169,13 +180,17 @@ Plik nagłówkowy API PyOpenColorIO.
 
 install -d build
 cd build
+# yaml-cpp 0.6.x requires C++11
+CXXFLAGS="%{rpmcxxflags} -std=c++11"
 %cmake .. \
+       %{!?with_oiio:-DDISABLE_OIIO=ON} \
        -DOCIO_BUILD_DOCS=ON \
 %if %{with java}
        -DOCIO_BUILD_JNIGLUE=ON \
        -DOCIO_STATIC_JNIGLUE=OFF \
 %endif
        %{!?with_sse2:-DOCIO_USE_SSE=OFF} \
+       -DUSE_EXTERNAL_LCMS=ON \
        -DUSE_EXTERNAL_TINYXML=ON \
        -DUSE_EXTERNAL_YAML=ON
 
@@ -206,7 +221,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog LICENSE README
+%doc ChangeLog LICENSE README.md
 %attr(755,root,root) %{_bindir}/ociobakelut
 %attr(755,root,root) %{_bindir}/ociocheck
 %attr(755,root,root) %{_libdir}/libOpenColorIO.so.*.*.*
@@ -216,6 +231,7 @@ rm -rf $RPM_BUILD_ROOT
 %files convert
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/ocioconvert
+%attr(755,root,root) %{_bindir}/ociolutimage
 %endif
 
 %if %{with oiio} && %{with opengl}
@@ -230,6 +246,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/libOpenColorIO.so
 %{_includedir}/OpenColorIO
 %{_pkgconfigdir}/OpenColorIO.pc
+%{_libdir}/cmake/OpenColorIO
 
 %files static
 %defattr(644,root,root,755)
This page took 0.0453 seconds and 4 git commands to generate.