]>
Commit | Line | Data |
---|---|---|
1920bfc1 | 1 | Summary: A client-side decorations library for Wayland client |
e0fd771d | 2 | Summary(pl.UTF-8): Biblioteka dekoracji po stronie klienta dla klientów Wayland |
1920bfc1 JP |
3 | Name: libdecor |
4 | Version: 0.1.1 | |
5 | Release: 1 | |
6 | License: MIT | |
7 | Group: Libraries | |
e0fd771d | 8 | #Source0Download: https://gitlab.freedesktop.org/libdecor/libdecor/-/releases |
1920bfc1 JP |
9 | Source0: https://gitlab.freedesktop.org/libdecor/libdecor/uploads/ee5ef0f2c3a4743e8501a855d61cb397/%{name}-%{version}.tar.xz |
10 | # Source0-md5: 7201e594958075d125e6f372d1cf56d7 | |
11 | URL: https://gitlab.freedesktop.org/libdecor/libdecor | |
12 | BuildRequires: cairo-devel | |
13 | BuildRequires: dbus-devel >= 1.0 | |
14 | BuildRequires: meson >= 0.47.0 | |
15 | BuildRequires: ninja | |
16 | BuildRequires: pango-devel | |
17 | BuildRequires: pkgconfig | |
18 | BuildRequires: rpmbuild(macros) >= 1.736 | |
19 | BuildRequires: tar >= 1:1.22 | |
20 | BuildRequires: wayland-devel >= 1.18 | |
21 | BuildRequires: wayland-protocols >= 1.15 | |
22 | BuildRequires: xz | |
23 | Requires: wayland >= 1.18 | |
24 | Suggests: %{name}-plugin-cairo = %{version}-%{release} | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | libdecor is a library that can help Wayland clients draw window | |
29 | decorations for them. It aims to provide multiple backends that | |
30 | implements the decoration drawing. | |
31 | ||
e0fd771d JB |
32 | %description -l pl.UTF-8 |
33 | libdecor to biblioteka pomagająca klientom Wayland rysować dekoracje | |
34 | okien. Celem jest dostarczenie wielu backendów implementujących | |
35 | rysowanie dekoracji. | |
36 | ||
1920bfc1 JP |
37 | %package devel |
38 | Summary: Development files for libdecor | |
e0fd771d | 39 | Summary(pl.UTF-8): Pliki programistyczne libdecor |
1920bfc1 JP |
40 | Group: Development/Libraries |
41 | Requires: %{name} = %{version}-%{release} | |
42 | ||
43 | %description devel | |
44 | This package contains the header files for developing applications | |
45 | that use libdecor. | |
46 | ||
e0fd771d JB |
47 | %description devel -l pl.UTF-8 |
48 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji | |
49 | wykorzystujących libdecor. | |
50 | ||
1920bfc1 JP |
51 | %package plugin-cairo |
52 | Summary: Cairo plugin for libdecor | |
e0fd771d | 53 | Summary(pl.UTF-8): Wtyczka Cairo do libdecor |
1920bfc1 JP |
54 | Requires: %{name} = %{version}-%{release} |
55 | ||
56 | %description plugin-cairo | |
57 | Cairo plugin for libdecor. | |
58 | ||
e0fd771d JB |
59 | %description plugin-cairo -l pl.UTF-8 |
60 | Wtyczka Cairo do libdecor. | |
61 | ||
1920bfc1 JP |
62 | %prep |
63 | %setup -q | |
64 | ||
65 | %build | |
66 | %meson build \ | |
67 | -Ddemo=false | |
68 | ||
69 | %ninja_build -C build | |
70 | ||
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %ninja_install -C build | |
75 | ||
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %post -p /sbin/ldconfig | |
80 | %postun -p /sbin/ldconfig | |
81 | ||
82 | %files | |
83 | %defattr(644,root,root,755) | |
84 | %doc LICENSE README.md | |
85 | %attr(755,root,root) %{_libdir}/libdecor-0.so.*.*.* | |
86 | %attr(755,root,root) %ghost %{_libdir}/libdecor-0.so.0 | |
87 | %dir %{_libdir}/libdecor | |
88 | %dir %{_libdir}/libdecor/plugins-1 | |
89 | ||
90 | %files devel | |
91 | %defattr(644,root,root,755) | |
92 | %attr(755,root,root) %{_libdir}/libdecor-0.so | |
93 | %dir %{_includedir}/libdecor-0 | |
94 | %{_includedir}/libdecor-0/libdecor.h | |
95 | %{_pkgconfigdir}/libdecor-0.pc | |
96 | ||
97 | %files plugin-cairo | |
98 | %defattr(644,root,root,755) | |
99 | %attr(755,root,root) %{_libdir}/libdecor/plugins-1/libdecor-cairo.so |