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