]>
Commit | Line | Data |
---|---|---|
3a0f6976 JB |
1 | # |
2 | # Conditional build: | |
0631615d | 3 | %bcond_without libdovi # libdovi support |
3a0f6976 JB |
4 | %bcond_without static_libs # static library |
5 | # | |
6 | Summary: Reusable library for GPU-accelerated video/image rendering | |
7 | Summary(pl.UTF-8): Biblioteka do renderowania filmów/obrazu ze wsparciem GPU | |
8 | Name: libplacebo | |
512a6344 | 9 | Version: 6.338.2 |
c103405b | 10 | Release: 1 |
3a0f6976 JB |
11 | License: LGPL v2.1+ |
12 | Group: Libraries | |
13 | #Source0Download: https://code.videolan.org/videolan/libplacebo/tags | |
14 | Source0: https://code.videolan.org/videolan/libplacebo/-/archive/v%{version}/%{name}-v%{version}.tar.bz2 | |
512a6344 | 15 | # Source0-md5: d0582d4db1ecd19449613c81e08e2b00 |
3a0f6976 | 16 | URL: https://code.videolan.org/videolan/libplacebo |
63283e00 | 17 | BuildRequires: Vulkan-Loader-devel >= 1.3.0 |
512a6344 | 18 | BuildRequires: fast_float-devel |
3a0f6976 | 19 | BuildRequires: gcc >= 5:3.2 |
0631615d JB |
20 | BuildRequires: lcms2-devel >= 2.9 |
21 | %if %{with libdovi} | |
22 | BuildRequires: libdovi-devel >= 1.6.7 | |
23 | %endif | |
63283e00 | 24 | BuildRequires: libstdc++-devel >= 6:8 |
0631615d | 25 | BuildRequires: meson >= 0.63 |
55be4edf | 26 | BuildRequires: ninja >= 1.5 |
9661328b | 27 | BuildRequires: pkgconfig |
0631615d | 28 | BuildRequires: python3-glad2 >= 2.0.0 |
3a0f6976 | 29 | BuildRequires: rpmbuild(macros) >= 1.736 |
07babed9 | 30 | BuildRequires: shaderc-devel >= 2021.0-2 |
63283e00 | 31 | BuildRequires: xxHash-devel |
0631615d JB |
32 | Requires: lcms2 >= 2.9 |
33 | %if %{with libdovi} | |
34 | Requires: libdovi >= 1.6.7 | |
35 | %endif | |
3a0f6976 JB |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
39 | Reusable library for GPU-accelerated video/image rendering. | |
40 | ||
41 | %description -l pl.UTF-8 | |
42 | Biblioteka do renderowania filmów/obrazu ze wsparciem GPU. | |
43 | ||
44 | %package devel | |
45 | Summary: Header files for libplacebo library | |
46 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libplacebo | |
47 | Group: Development/Libraries | |
48 | Requires: %{name} = %{version}-%{release} | |
63283e00 | 49 | Requires: Vulkan-Loader-devel |
0631615d | 50 | Requires: lcms2-devel >= 2.9 |
3a0f6976 | 51 | Requires: shaderc-devel |
3a0f6976 JB |
52 | |
53 | %description devel | |
54 | Header files for libplacebo library. | |
55 | ||
56 | %description devel -l pl.UTF-8 | |
57 | Pliki nagłówkowe biblioteki libplacebo. | |
58 | ||
59 | %package static | |
60 | Summary: Static libplacebo library | |
61 | Summary(pl.UTF-8): Statyczna biblioteka libplacebo | |
62 | Group: Development/Libraries | |
63 | Requires: %{name}-devel = %{version}-%{release} | |
64 | ||
65 | %description static | |
66 | Static libplacebo library. | |
67 | ||
68 | %description static -l pl.UTF-8 | |
69 | Statyczna biblioteka libplacebo. | |
70 | ||
71 | %prep | |
72 | %setup -q -n %{name}-v%{version} | |
3a0f6976 JB |
73 | |
74 | %{__sed} -ne '1,/^-----/ p' LICENSE > COPYING | |
75 | ||
76 | %build | |
77 | %meson build \ | |
23c632e9 | 78 | %{!?with_static_libs:--default-library=shared} \ |
0631615d JB |
79 | -Ddemos=false \ |
80 | %{!?with_libdovi:-Dlibdovi=disabled} | |
3a0f6976 JB |
81 | |
82 | %ninja_build -C build | |
83 | ||
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %ninja_install -C build | |
88 | ||
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %post -p /sbin/ldconfig | |
93 | %postun -p /sbin/ldconfig | |
94 | ||
95 | %files | |
96 | %defattr(644,root,root,755) | |
97 | %doc COPYING README.md | |
63283e00 | 98 | %attr(755,root,root) %{_libdir}/libplacebo.so.338 |
3a0f6976 JB |
99 | |
100 | %files devel | |
101 | %defattr(644,root,root,755) | |
102 | %attr(755,root,root) %{_libdir}/libplacebo.so | |
103 | %{_includedir}/libplacebo | |
104 | %{_pkgconfigdir}/libplacebo.pc | |
105 | ||
106 | %if %{with static_libs} | |
107 | %files static | |
108 | %defattr(644,root,root,755) | |
109 | %{_libdir}/libplacebo.a | |
110 | %endif |