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