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