]> git.pld-linux.org Git - packages/gtk-layer-shell.git/blame - gtk-layer-shell.spec
up to 0.8.0
[packages/gtk-layer-shell.git] / gtk-layer-shell.spec
CommitLineData
2784e555
JB
1#
2# Conditional build:
3%bcond_without apidocs # API documentation
68fe56cf 4%bcond_without vala # Vala API
2784e555 5
c1686d68 6Summary: Library to create components for Wayland using the Layer Shell
32bfde16 7Summary(pl.UTF-8): Biblioteka do tworzenia komponentów Waylanda przy użyciu protokołu Layer Shell
c1686d68 8Name: gtk-layer-shell
68fe56cf 9Version: 0.8.0
3a730e25 10Release: 1
c1686d68 11License: LGPL v3+, MIT
704d6cb3
JB
12Group: Libraries
13#Source0Download: https://github.com/wmww/gtk-layer-shell/releases
c1686d68 14Source0: https://github.com/wmww/gtk-layer-shell/archive/v%{version}/%{name}-%{version}.tar.gz
68fe56cf 15# Source0-md5: 64a5a6a0128ec20d441c01be1d112687
c1686d68 16URL: https://github.com/wmww/gtk-layer-shell
32bfde16 17BuildRequires: gcc >= 6:4.7
c1686d68 18BuildRequires: gtk+3-devel >= 3.22.0
2784e555 19%{?with_apidocs:BuildRequires: gtk-doc}
c1686d68 20BuildRequires: meson >= 0.45.1
32bfde16 21BuildRequires: ninja >= 1.5
c1686d68 22BuildRequires: pkgconfig
32bfde16 23BuildRequires: python3 >= 1:3
2784e555 24BuildRequires: rpm-build >= 4.6
c1686d68
JP
25BuildRequires: rpmbuild(macros) >= 1.736
26BuildRequires: wayland-devel >= 1.10.0
27BuildRequires: wayland-protocols >= 1.16
68fe56cf 28%{?with_vala:BuildRequires: vala}
c1686d68
JP
29Requires: gtk+3 >= 3.22.0
30Requires: wayland >= 1.10.0
31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33%description
34A library to write GTK applications that use Layer Shell. Layer Shell
35is a Wayland protocol for desktop shell components, such as panels,
36notifications and wallpapers. You can use it to anchor your windows to
37a corner or edge of the output, or stretch them across the entire
38output. This library only makes sense on Wayland compositors that
39support Layer Shell, and will not work on X11. It supports all Layer
32bfde16
JB
40Shell features including popups and popovers (GTK popups Just Work
41(TM)).
c1686d68 42
32bfde16
JB
43%description -l pl.UTF-8
44Biblioteka do tworzenia aplikacji GTK, wykorzystujących protokół Layer
45Shell. Jest to protokół Wayland dla komponentów powłok graficznych,
46takich jak panele, powiadomienia i tapety. Można go używać do
47zakotwiczania okien w roku lub przy brzegu wyjścia, albo rozciągania
48ich na całe wyjście. Biblioteka ma sens tylko dla zarządców składania
49Wayland obsługujących protokół Layer Shell, nie będzie działać na X11.
50Obsługuje wszystkie możliwości protokołu Layer Shell, w tym
51wyskakujące okna.
c1686d68
JP
52
53%package devel
54Summary: Header files for gtk-layer-shell library
32bfde16 55Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gtk-layer-shell
c1686d68
JP
56Group: Development/Libraries
57Requires: %{name} = %{version}-%{release}
32bfde16
JB
58Requires: gtk+3-devel >= 3.22.0
59Requires: wayland-devel >= 1.10.0
c1686d68
JP
60
61%description devel
62Header files for gtk-layer-shell library.
63
32bfde16
JB
64%description devel -l pl.UTF-8
65Pliki nagłówkowe biblioteki gtk-layer-shell.
66
c1686d68
JP
67%package static
68Summary: Static gtk-layer-shell library
32bfde16 69Summary(pl.UTF-8): Biblioteka statyczna gtk-layer-shell
c1686d68
JP
70Group: Development/Libraries
71Requires: %{name}-devel = %{version}-%{release}
72
73%description static
74Static gtk-layer-shell library.
75
32bfde16
JB
76%description static -l pl.UTF-8
77Biblioteka statyczna gtk-layer-shell.
78
2784e555
JB
79%package apidocs
80Summary: API documentation for gtk-layer-shell library
81Summary(pl.UTF-8): Dokumentacja API biblioteki gtk-layer-shell
82Group: Documentation
83BuildArch: noarch
84
85%description apidocs
86API documentation for gtk-layer-shell library.
87
88%description apidocs -l pl.UTF-8
89Dokumentacja API biblioteki gtk-layer-shell.
90
68fe56cf
JP
91%package -n vala-gtk-layer-shell
92Summary: gtk-layer-shell API for Vala language
93Summary(pl.UTF-8): API gtk-layer-shell dla języka Vala
94Group: Development/Libraries
95Requires: %{name}-devel = %{version}-%{release}
96Requires: vala
97BuildArch: noarch
98
99%description -n vala-gtk-layer-shell
100gtk-layer-shell API for Vala language.
101
102%description -n vala-gtk-layer-shell -l pl.UTF-8
103API gtk-layer-shell dla języka Vala.
104
c1686d68
JP
105%prep
106%setup -q
107
108%build
2784e555 109%meson build \
68fe56cf
JP
110 %{?with_apidocs:-Ddocs=true} \
111 -Dvapi=%{__true_false vala}
32bfde16 112
c1686d68
JP
113%ninja_build -C build
114
115%install
116rm -rf $RPM_BUILD_ROOT
117
118%ninja_install -C build
119
120%clean
121rm -rf $RPM_BUILD_ROOT
122
123%post -p /sbin/ldconfig
124%postun -p /sbin/ldconfig
125
126%files
127%defattr(644,root,root,755)
32bfde16 128%doc CHANGELOG.md LICENSE_MIT.txt README.md compatibility.md
c1686d68
JP
129%attr(755,root,root) %{_libdir}/libgtk-layer-shell.so.*.*.*
130%ghost %{_libdir}/libgtk-layer-shell.so.0
131%{_libdir}/girepository-1.0/GtkLayerShell-0.1.typelib
132
133%files devel
134%defattr(644,root,root,755)
135%{_libdir}/libgtk-layer-shell.so
136%dir %{_includedir}/gtk-layer-shell
137%{_includedir}/gtk-layer-shell/gtk-layer-shell.h
138%{_pkgconfigdir}/gtk-layer-shell-0.pc
139%{_datadir}/gir-1.0/GtkLayerShell-0.1.gir
140
141%files static
142%defattr(644,root,root,755)
143%{_libdir}/libgtk-layer-shell.a
2784e555
JB
144
145%if %{with apidocs}
146%files apidocs
147%defattr(644,root,root,755)
148%{_gtkdocdir}/gtk-layer-shell
149%endif
68fe56cf
JP
150
151%if %{with vala}
152%files -n vala-gtk-layer-shell
153%defattr(644,root,root,755)
154%{_datadir}/vala/vapi/gtk-layer-shell-0.deps
155%{_datadir}/vala/vapi/gtk-layer-shell-0.vapi
156%endif
This page took 0.143051 seconds and 4 git commands to generate.