]>
Commit | Line | Data |
---|---|---|
2e2307db JB |
1 | Summary: Color Transform Language libraries |
2 | Summary(pl.UTF-8): Biblioteki CTL (języka przekształceń kolorów) | |
3 | Name: ctl | |
a547a50f JB |
4 | Version: 1.5 |
5 | Release: 1 | |
2e2307db JB |
6 | License: BSD + IP clause |
7 | Group: Libraries | |
a547a50f JB |
8 | Source0: https://github.com/ampas/CTL/archive/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 020aa09422c13b2f62c1c40f18d9d093 | |
10 | Patch0: %{name}-libdir.patch | |
11 | Patch1: %{name}-ctlrender.patch | |
b49ac05c | 12 | Patch2: %{name}-pc.patch |
42dd3467 | 13 | URL: http://www.oscars.org/science-technology/council/projects/ctl.html |
a547a50f JB |
14 | BuildRequires: OpenEXR-devel |
15 | BuildRequires: aces_container-devel | |
16 | BuildRequires: cmake >= 2.8 | |
17 | BuildRequires: ilmbase-devel >= 2.0.0 | |
2e2307db | 18 | BuildRequires: libstdc++-devel |
a547a50f | 19 | BuildRequires: libtiff-devel |
2e2307db | 20 | BuildRequires: pkgconfig |
a547a50f | 21 | Requires: ilmbase >= 2.0.0 |
2e2307db JB |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | CTL (Color Transform Language) interpreter contains the following C++ | |
26 | libraries: | |
27 | ||
28 | IlmCtl - CTL interpreter frontend and the interpreter's public | |
29 | programming interface. | |
30 | ||
31 | IlmCtlSimd - interpreter's SIMD backend. | |
32 | ||
33 | IlmCtlMath - math routines used by IlmCtlSimd: conversions between | |
34 | standard color spaces, 1D and 3D lookup tables, 3D scattered data | |
35 | interpolation. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | Interpreter CTL (Color Transform Language - języka przekształceń | |
39 | kolorów) składa się z następujących bibliotek C++: | |
40 | ||
41 | IlmCtl - frontend interpretera CTL i jego publiczny interfejs | |
42 | programistyczny. | |
43 | ||
44 | IlmCtlSimd - backend SIMD interpretera. | |
45 | ||
46 | IlmCtlMath - funkcje matematyczne wykorzystywane przez IlmCtlSimd: | |
47 | przekształcenia między standardowymi przestrzeniami kolorów, tablice | |
48 | wyszukiwań 1D i 3D, interpolacja zgromadzonych danych 3D. | |
49 | ||
50 | %package devel | |
51 | Summary: Header files for CTL library | |
52 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CTL | |
53 | Group: Development/Libraries | |
54 | Requires: %{name} = %{version}-%{release} | |
a547a50f | 55 | Requires: ilmbase-devel >= 2.0.0 |
2e2307db | 56 | Requires: libstdc++-devel |
a547a50f | 57 | Obsoletes: ctl-static |
2e2307db JB |
58 | |
59 | %description devel | |
60 | Header files for CTL library. | |
61 | ||
62 | %description devel -l pl.UTF-8 | |
63 | Pliki nagłówkowe biblioteki CTL. | |
64 | ||
a547a50f JB |
65 | %package -n openexr_ctl |
66 | Summary: OpenEXR interface to CTL (Color Transform Language) | |
67 | Summary(pl.UTF-8): Interfejs OpenEXR do CTL (języka przekształceń kolorów) | |
68 | Group: Libraries | |
69 | Requires: ctl = %{version}-%{release} | |
70 | ||
71 | %description -n openexr_ctl | |
72 | IlmImfCtl provides a simplified OpenEXR interface to CTL (Color | |
73 | Transform Language). | |
74 | ||
75 | %description -n openexr_ctl -l pl.UTF-8 | |
76 | IlmImfCtl udostępnia uproszczony interfejs OpenEXR do CTL (języka | |
77 | przekształceń kolorów). | |
78 | ||
79 | %package -n openexr_ctl-devel | |
80 | Summary: Header files for IlmInfCtl library | |
81 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki IlmInfCtl | |
2e2307db | 82 | Group: Development/Libraries |
a547a50f JB |
83 | Requires: OpenEXR-devel |
84 | Requires: ctl-devel = %{version}-%{release} | |
85 | Requires: openexr_ctl = %{version}-%{release} | |
86 | Obsoletes: openexr_ctl-static | |
87 | ||
88 | %description -n openexr_ctl-devel | |
89 | Header files for IlmInfCtl library. | |
90 | ||
91 | %description -n openexr_ctl-devel -l pl.UTF-8 | |
92 | Pliki nagłówkowe biblioteki IlmInfCtl. | |
93 | ||
94 | %package -n openexr_ctl-progs | |
95 | Summary: Programs utilizing OpenEXR/CTL interface | |
96 | Summary(pl.UTF-8): Programy wykorzystujące interfejs OpenEXR/CTL | |
97 | Group: Applications/Graphics | |
98 | Requires: openexr_ctl = %{version}-%{release} | |
99 | ||
100 | %description -n openexr_ctl-progs | |
101 | Programs utilizing OpenEXR/CTL interface: | |
102 | ||
103 | exrdpx is an initial version of a CTL-driven file converter that | |
104 | translates DPX files into OpenEXR files and vice versa. The conversion | |
105 | between the DPX and OpenEXR color spaces is handled by CTL transforms. | |
106 | ||
107 | exr_ctl_exr is an initial version of a program that can bake the | |
108 | effect of a series of CTL transforms into the pixels of an OpenEXR | |
109 | file. | |
110 | ||
111 | %description -n openexr_ctl-progs -l pl.UTF-8 | |
112 | Programy wykorzystujące interfejs OpenEXR/CTL: | |
113 | ||
114 | exrdpx to wstępna wersja konwertera plików sterowanego CTL-em, | |
115 | tłumaczącego pliki DPX na OpenEXR i na odwrót. Przekształcenia między | |
116 | przestrzeniami kolorów DPX i OpenEXR są obsługiwane przez | |
117 | przekształcenia CTL. | |
2e2307db | 118 | |
a547a50f JB |
119 | exr_ctl_exr to wstępna wersja programu potrafiącego zamienić efekt |
120 | serii przekształceń CTL na piksele w pliku OpenEXR. | |
2e2307db | 121 | |
a547a50f JB |
122 | %package -n ctlrender |
123 | Summary: CLI application to apply CTL transforms to an image | |
124 | Summary(pl.UTF-8): Uruchamiany z linii poleceń program do nakładania przekształceń CTL na obraz | |
125 | Group: Applications/Graphics | |
126 | Requires: ctl = %{version}-%{release} | |
127 | ||
128 | %description -n ctlrender | |
129 | ctlrender is a command line application for applying CTL transforms to | |
130 | an image using one or more CTL scripts, potentially converting the | |
131 | file format in the process. | |
132 | ||
133 | ctlrender supports OpenEXR, TIFF, DPX, and ACES container file | |
134 | formats. | |
135 | ||
136 | %description -n ctlrender | |
137 | ctlrender to uruchamiany z linii poleceń program do nakładania | |
138 | przekształceń CTL na obraz przy użyciu jednego lub więcej skryptów | |
139 | CTL, potencjalnie także zmieniając w trakcie format pliku. | |
140 | ||
141 | ctlrender obsługuje formaty plików OpenEXR, TIFF, DPX oraz ACES. | |
2e2307db JB |
142 | |
143 | %prep | |
a547a50f | 144 | %setup -q -n CTL-%{name}-%{version} |
42dd3467 | 145 | %patch0 -p1 |
a547a50f | 146 | %patch1 -p1 |
b49ac05c | 147 | %patch2 -p1 |
2e2307db JB |
148 | |
149 | %build | |
a547a50f JB |
150 | %cmake . \ |
151 | -DINSTALL_CMAKE_DIR=%{_libdir}/cmake/CTL \ | |
152 | -DINSTALL_LIB_DIR=%{_libdir} | |
2e2307db JB |
153 | %{__make} |
154 | ||
155 | %install | |
156 | rm -rf $RPM_BUILD_ROOT | |
157 | ||
158 | %{__make} install \ | |
159 | DESTDIR=$RPM_BUILD_ROOT | |
160 | ||
a547a50f JB |
161 | # packaged as %doc |
162 | %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc/CTL | |
163 | ||
2e2307db JB |
164 | %clean |
165 | rm -rf $RPM_BUILD_ROOT | |
166 | ||
167 | %post -p /sbin/ldconfig | |
168 | %postun -p /sbin/ldconfig | |
169 | ||
170 | %files | |
171 | %defattr(644,root,root,755) | |
a547a50f | 172 | %doc AUTHORS CHANGELOG LICENSE README.md |
2e2307db | 173 | %attr(755,root,root) %{_libdir}/libIlmCtl.so.*.*.* |
2e2307db | 174 | %attr(755,root,root) %{_libdir}/libIlmCtlMath.so.*.*.* |
2e2307db | 175 | %attr(755,root,root) %{_libdir}/libIlmCtlSimd.so.*.*.* |
2e2307db JB |
176 | |
177 | %files devel | |
178 | %defattr(644,root,root,755) | |
179 | %doc doc/CtlManual.pdf | |
180 | %attr(755,root,root) %{_libdir}/libIlmCtl.so | |
181 | %attr(755,root,root) %{_libdir}/libIlmCtlMath.so | |
182 | %attr(755,root,root) %{_libdir}/libIlmCtlSimd.so | |
2e2307db JB |
183 | %{_includedir}/CTL |
184 | %{_pkgconfigdir}/CTL.pc | |
a547a50f JB |
185 | %{_libdir}/cmake/CTL |
186 | ||
187 | %files -n openexr_ctl | |
188 | %defattr(644,root,root,755) | |
189 | %doc OpenEXR_CTL/README | |
190 | %attr(755,root,root) %{_libdir}/libIlmImfCtl.so | |
191 | ||
192 | %files -n openexr_ctl-devel | |
193 | %defattr(644,root,root,755) | |
194 | #%attr(755,root,root) %{_libdir}/libIlmImfCtl.so | |
195 | %{_includedir}/OpenEXR/ImfCtlApplyTransforms.h | |
196 | %{_pkgconfigdir}/OpenEXR_CTL.pc | |
197 | ||
198 | %files -n openexr_ctl-progs | |
199 | %defattr(644,root,root,755) | |
200 | %attr(755,root,root) %{_bindir}/exr_ctl_exr | |
201 | %attr(755,root,root) %{_bindir}/exrdpx | |
202 | %{_prefix}/lib/CTL | |
2e2307db | 203 | |
a547a50f | 204 | %files -n ctlrender |
2e2307db | 205 | %defattr(644,root,root,755) |
a547a50f | 206 | %attr(755,root,root) %{_bindir}/ctlrender |