]>
Commit | Line | Data |
---|---|---|
e07192a4 WF |
1 | Summary: High dynamic-range (HDR) image file format support libraries |
2 | Summary(pl.UTF-8): Biblioteki obsługujące format plików obrazu o wysokiej dynamice (HDR) | |
3 | Name: Imath | |
7d78741b | 4 | Version: 3.1.7 |
6d262572 | 5 | Release: 1 |
e07192a4 WF |
6 | License: BSD |
7 | Group: Libraries | |
7d78741b | 8 | #Source0Download: https://github.com/AcademySoftwareFoundation/imath/releases |
e07192a4 | 9 | Source0: https://github.com/AcademySoftwareFoundation/imath/archive/v%{version}/imath-%{version}.tar.gz |
7d78741b JB |
10 | # Source0-md5: 5cedab446ab296c080957c3037c6d097 |
11 | URL: https://openexr.com/ | |
12 | BuildRequires: cmake >= 3.12 | |
e07192a4 WF |
13 | BuildRequires: libstdc++-devel |
14 | BuildRequires: ninja | |
15 | BuildRequires: pkgconfig | |
e07192a4 WF |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
19 | Imath is a basic, light-weight, and efficient C++ representation of 2D | |
20 | and 3D vectors and matrices and other simple but useful mathematical | |
21 | objects, functions, and data types common in computer graphics | |
7d78741b | 22 | applications, including the "half" 16-bit floating-point type. |
e07192a4 WF |
23 | |
24 | %description -l pl.UTF-8 | |
25 | Imath to prosta, lekka i wydajna reprezentacja C++ dwu- i | |
26 | trójwymiarowych wektorów i macierzy i inne proste, ale użyteczne | |
27 | matematyczne obiekty, funkcje i typy danych zwykle występujące w | |
7d78741b | 28 | programach graficznych, w tym "połówkowy" 16 bitowy typ |
e07192a4 WF |
29 | zmiennoprzecinkowy. |
30 | ||
31 | %package devel | |
32 | Summary: Header files for Imath libraries | |
33 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Imath | |
34 | Group: Development/Libraries | |
35 | Requires: %{name} = %{version}-%{release} | |
e07192a4 | 36 | Requires: libstdc++-devel |
e07192a4 WF |
37 | |
38 | %description devel | |
39 | Header files for Imath libraries. | |
40 | ||
41 | %description devel -l pl.UTF-8 | |
42 | Pliki nagłówkowe bibliotek Imath. | |
43 | ||
44 | %prep | |
45 | %setup -q | |
46 | ||
47 | %build | |
48 | install -d build | |
49 | cd build | |
50 | %cmake -G Ninja \ | |
51 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ | |
52 | .. | |
7d78741b | 53 | |
e07192a4 WF |
54 | %ninja_build |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
7d78741b JB |
58 | |
59 | %ninja_install -C build | |
e07192a4 WF |
60 | |
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %post -p /sbin/ldconfig | |
65 | %postun -p /sbin/ldconfig | |
66 | ||
67 | %files | |
68 | %defattr(644,root,root,755) | |
7d78741b JB |
69 | %doc CHANGES.md CONTRIBUTORS.md GOVERNANCE.md LICENSE.md README.md SECURITY.md |
70 | %attr(755,root,root) %{_libdir}/libImath-3_1.so.30.*.* | |
71 | %ghost %{_libdir}/libImath-3_1.so.30 | |
e07192a4 WF |
72 | |
73 | %files devel | |
74 | %defattr(644,root,root,755) | |
6d262572 | 75 | %{_libdir}/libImath-3_1.so |
e07192a4 | 76 | %{_libdir}/libImath.so |
7d78741b JB |
77 | %{_includedir}/Imath |
78 | %{_libdir}/cmake/Imath | |
e07192a4 | 79 | %{_pkgconfigdir}/Imath.pc |