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