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