[9261] | 1 | # Filter provides from Python libraries |
---|
| 2 | %{?filter_setup: |
---|
| 3 | %filter_provides_in %{python_sitearch}.*\.so$ |
---|
| 4 | %filter_setup |
---|
| 5 | } |
---|
| 6 | |
---|
| 7 | Name: OpenColorIO |
---|
| 8 | Version: 1.0.8 |
---|
| 9 | Release: 7%{?_dist_release} |
---|
| 10 | Summary: Enables color transforms and image display across graphics apps |
---|
| 11 | Summary(ja): アプリケーション間での色変換と画像表示を行うためのライブラリ |
---|
| 12 | |
---|
| 13 | License: BSD |
---|
| 14 | Group: System Environment/Libraries |
---|
| 15 | URL: http://opencolorio.org/ |
---|
| 16 | # Github archive was generated on the fly using the following URL: |
---|
| 17 | # https://github.com/imageworks/OpenColorIO/tarball/v1.0.8 |
---|
| 18 | |
---|
| 19 | Source0: %{name}-%{version}.tar.gz |
---|
| 20 | Patch0: OpenColorIO-pull_300.patch |
---|
| 21 | Patch1: OpenColorIO-yaml_cpp3.patch |
---|
| 22 | |
---|
| 23 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 24 | BuildRequires: cmake |
---|
| 25 | BuildRequires: help2man |
---|
| 26 | BuildRequires: texlive-collection-fontsrecommended |
---|
| 27 | BuildRequires: texlive-collection-latexextra |
---|
| 28 | BuildRequires: texlive-collection-latexrecommended |
---|
| 29 | |
---|
| 30 | # Libraries |
---|
| 31 | BuildRequires: python-devel |
---|
| 32 | BuildRequires: mesa-libGL-devel mesa-libGLU-devel |
---|
| 33 | BuildRequires: libX11-devel libXmu-devel libXi-devel |
---|
| 34 | BuildRequires: freeglut-devel |
---|
| 35 | BuildRequires: glew-devel |
---|
| 36 | BuildRequires: zlib-devel |
---|
| 37 | |
---|
| 38 | ####################### |
---|
| 39 | # Unbundled libraries # |
---|
| 40 | ####################### |
---|
| 41 | BuildRequires: tinyxml-devel |
---|
| 42 | BuildRequires: lcms2-devel |
---|
| 43 | #BuildRequires: yaml-cpp-devel |
---|
| 44 | |
---|
| 45 | # The following bundled projects are only used for document generation. |
---|
| 46 | #BuildRequires: python-docutils |
---|
| 47 | #BuildRequires: python-jinja2 |
---|
| 48 | #BuildRequires: python-pygments |
---|
| 49 | #BuildRequires: python-setuptools |
---|
| 50 | #BuildRequires: python-sphinx |
---|
| 51 | |
---|
| 52 | %description |
---|
| 53 | OCIO enables color transforms and image display to be handled in a consistent |
---|
| 54 | manner across multiple graphics applications. Unlike other color management |
---|
| 55 | solutions, OCIO is geared towards motion-picture post production, with an |
---|
| 56 | emphasis on visual effects and animation color pipelines. |
---|
| 57 | |
---|
| 58 | |
---|
| 59 | %package devel |
---|
| 60 | Summary: Development libraries and headers for %{name} |
---|
| 61 | Summary(ja): %{name} の開発用ライブラリおよびヘッダファイル |
---|
| 62 | Group: Development/Libraries |
---|
| 63 | Requires: %{name} = %{version}-%{release} |
---|
| 64 | |
---|
| 65 | %description devel |
---|
| 66 | Development libraries and headers for %{name}. |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | %package doc |
---|
| 70 | Summary: API Documentation for %{name} |
---|
| 71 | Summary(ja): %{name} API のドキュメント |
---|
| 72 | Group: Documentation |
---|
| 73 | BuildArch: noarch |
---|
| 74 | Requires: %{name} = %{version}-%{release} |
---|
| 75 | |
---|
| 76 | %description doc |
---|
| 77 | API documentation for %{name}. |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | %prep |
---|
| 81 | %setup -q |
---|
| 82 | %patch0 -p1 -b .pull300 |
---|
| 83 | #patch1 -p1 -b .yaml3 |
---|
| 84 | |
---|
| 85 | # Remove what bundled libraries |
---|
| 86 | rm -f ext/lcms* |
---|
| 87 | rm -f ext/tinyxml* |
---|
| 88 | #rm -f ext/yaml* |
---|
| 89 | |
---|
| 90 | |
---|
| 91 | %build |
---|
| 92 | rm -rf build && mkdir build && pushd build |
---|
| 93 | %cmake -DOCIO_BUILD_STATIC=OFF \ |
---|
| 94 | -DOCIO_BUILD_DOCS=ON \ |
---|
| 95 | -DOCIO_BUILD_TESTS=ON \ |
---|
| 96 | -DOCIO_PYGLUE_SONAME=OFF \ |
---|
| 97 | -DUSE_EXTERNAL_YAML=FALSE \ |
---|
| 98 | -DUSE_EXTERNAL_TINYXML=TRUE \ |
---|
| 99 | -DUSE_EXTERNAL_LCMS=TRUE \ |
---|
| 100 | %ifnarch x86_64 |
---|
| 101 | -DOCIO_USE_SSE=OFF \ |
---|
| 102 | %endif |
---|
| 103 | -DCMAKE_SKIP_RPATH=OFF \ |
---|
| 104 | ../ |
---|
| 105 | |
---|
| 106 | # -DUSE_EXTERNAL_YAML=FALSE \ |
---|
| 107 | make %{?_smp_mflags} |
---|
| 108 | |
---|
| 109 | |
---|
| 110 | %install |
---|
| 111 | rm -rf %{buildroot} |
---|
| 112 | pushd build |
---|
| 113 | make install DESTDIR=%{buildroot} |
---|
| 114 | |
---|
| 115 | # Generate man pages |
---|
| 116 | mkdir -p %{buildroot}%{_mandir}/man1 |
---|
| 117 | help2man -N -s 1 --version-string=%{version} \ |
---|
| 118 | -o %{buildroot}%{_mandir}/man1/ociocheck.1 \ |
---|
| 119 | src/apps/ociocheck/ociocheck |
---|
| 120 | help2man -N -s 1 --version-string=%{version} \ |
---|
| 121 | -o %{buildroot}%{_mandir}/man1/ociobakelut.1 \ |
---|
| 122 | src/apps/ociobakelut/ociobakelut |
---|
| 123 | |
---|
| 124 | # Move installed documentation back so it doesn't conflict with the main package |
---|
| 125 | popd |
---|
| 126 | |
---|
| 127 | rm -rf _tmpdoc |
---|
| 128 | mkdir -p _tmpdoc |
---|
| 129 | mv %{buildroot}%{_docdir}/%{name}/* _tmpdoc/ |
---|
| 130 | |
---|
| 131 | |
---|
| 132 | %check |
---|
| 133 | # Testing passes locally in mock but fails on the fedora build servers. |
---|
| 134 | #pushd build && make test |
---|
| 135 | |
---|
| 136 | |
---|
| 137 | %post -p /sbin/ldconfig |
---|
| 138 | %postun -p /sbin/ldconfig |
---|
| 139 | |
---|
| 140 | %clean |
---|
| 141 | rm -rf %{buildroot} |
---|
| 142 | |
---|
| 143 | |
---|
| 144 | %files |
---|
| 145 | %doc ChangeLog LICENSE README |
---|
| 146 | %{_bindir}/* |
---|
| 147 | %{_libdir}/*.so.* |
---|
| 148 | %dir %{_datadir}/ocio |
---|
| 149 | %{_datadir}/ocio/setup_ocio.sh |
---|
| 150 | %{_mandir}/man1/* |
---|
| 151 | %{python_sitearch}/*.so |
---|
| 152 | |
---|
| 153 | %files devel |
---|
| 154 | %{_includedir}/OpenColorIO/ |
---|
| 155 | %{_includedir}/PyOpenColorIO/ |
---|
| 156 | %{_libdir}/*.so |
---|
| 157 | %{_libdir}/pkgconfig/%{name}.pc |
---|
| 158 | |
---|
| 159 | %files doc |
---|
| 160 | %doc _tmpdoc/* |
---|
| 161 | |
---|
| 162 | |
---|
| 163 | %changelog |
---|
| 164 | * Tue Jan 13 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.0.8-7 |
---|
| 165 | - Initial build for Vine Linux |
---|
| 166 | - used bundled yaml-cpp |
---|
| 167 | |
---|
| 168 | * Mon Sep 23 2013 Richard Shaw <hobbes1069@gmail.com> - 1.0.8-6 |
---|
| 169 | - Rebuild against yaml-cpp03 compatibility package. |
---|
| 170 | |
---|
| 171 | * Mon Aug 26 2013 Richard Shaw <hobbes1069@gmail.com> - 1.0.8-5 |
---|
| 172 | - Fix for new F20 feature, unversion doc dir. Fixes BZ#1001264 |
---|
| 173 | |
---|
| 174 | * Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8-3 |
---|
| 175 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild |
---|
| 176 | |
---|
| 177 | * Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8-2 |
---|
| 178 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild |
---|
| 179 | |
---|
| 180 | * Tue Dec 11 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.8-1 |
---|
| 181 | - Update to latest upstream release. |
---|
| 182 | |
---|
| 183 | * Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.7-5 |
---|
| 184 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild |
---|
| 185 | |
---|
| 186 | * Thu Apr 26 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.7-4 |
---|
| 187 | - Only use SSE instructions on x86_64. |
---|
| 188 | |
---|
| 189 | * Wed Apr 25 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.7-3 |
---|
| 190 | - Misc spec cleanup for packaging guidelines. |
---|
| 191 | - Disable testing for now since it fails on the build servers. |
---|
| 192 | |
---|
| 193 | * Wed Apr 18 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.7-1 |
---|
| 194 | - Latest upstream release. |
---|
| 195 | |
---|
| 196 | * Thu Apr 05 2012 Richard Shaw <hobbes1069@gmail.com> - 1.0.6-1 |
---|
| 197 | - Latest upstream release. |
---|
| 198 | |
---|
| 199 | * Wed Nov 16 2011 Richard Shaw <hobbes1069@gmail.com> - 1.0.2-1 |
---|
| 200 | - Initial release. |
---|