]>
Commit | Line | Data |
---|---|---|
496f341b JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # API documentation | |
4 | # | |
5 | Summary: IDE paneling library for GTK | |
6 | Summary(pl.UTF-8): Biblioteka do paneli IDE dla GTK | |
7 | Name: libpanel | |
8 | Version: 1.0.2 | |
9 | Release: 1 | |
10 | License: LGPL v3+ | |
11 | Group: Libraries | |
12 | Source0: https://download.gnome.org/sources/libpanel/1.0/%{name}-%{version}.tar.xz | |
13 | # Source0-md5: 6e50b6fb007671ebc68da8b9b81e0054 | |
14 | URL: https://gitlab.gnome.org/GNOME/libpanel | |
15 | %{?with_apidocs:BuildRequires: gi-docgen >= 2021.1} | |
16 | BuildRequires: glib2-devel >= 1:2.72 | |
17 | BuildRequires: gobject-introspection-devel | |
18 | BuildRequires: gtk4-devel >= 4.6 | |
19 | BuildRequires: libadwaita-devel >= 1.0 | |
20 | BuildRequires: meson >= 0.60 | |
21 | BuildRequires: ninja >= 1.5 | |
22 | BuildRequires: rpm-build >= 4.6 | |
23 | BuildRequires: rpmbuild(macros) >= 1.736 | |
24 | BuildRequires: tar >= 1:1.22 | |
25 | BuildRequires: vala >= 2:0.44 | |
26 | BuildRequires: xz | |
27 | Requires: glib2 >= 1:2.72 | |
28 | Requires: gtk4 >= 4.6 | |
29 | Requires: libadwaita >= 1.0 | |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
33 | Libpanel helps you create IDE-like applications using GTK 4 and | |
34 | libadwaita. | |
35 | ||
36 | It has widgets for panels, docks, columns and grids of pages. | |
37 | Primarily, it's design and implementation focus around GNOME Builder | |
38 | and Drafting projects. | |
39 | ||
40 | %description -l pl.UTF-8 | |
41 | Libpanel pomaga tworzyć aplikacje typu IDE przy użyciu bibliotek GTK 4 | |
42 | oraz libadwaita. | |
43 | ||
44 | Zawiera widżety do paneli, doków, kolumn i siatek stron. Projekt i | |
45 | implementacja skupia się wokół projektów GNOME Builder i Drafting. | |
46 | ||
47 | %package devel | |
48 | Summary: Header files for libpanel library | |
49 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libpanel | |
50 | Group: Development/Libraries | |
51 | Requires: %{name} = %{version}-%{release} | |
52 | Requires: glib2-devel >= 1:2.72 | |
53 | Requires: gtk4-devel >= 4.6 | |
54 | ||
55 | %description devel | |
56 | Header files for libpanel library. | |
57 | ||
58 | %description devel -l pl.UTF-8 | |
59 | Pliki nagłówkowe biblioteki libpanel. | |
60 | ||
61 | %package -n vala-libpanel | |
62 | Summary: Vala API for libpanel library | |
63 | Summary(pl.UTF-): API języka Vala do biblioteki libpanel | |
64 | Group: Development/Libraries | |
65 | Requires: %{name}-devel = %{version}-%{release} | |
66 | Requires: vala >= 2:0.44 | |
67 | Requires: vala-libadwaita >= 1.0 | |
68 | BuildArch: noarch | |
69 | ||
70 | %description -n vala-libpanel | |
71 | Vala API for libpanel library. | |
72 | ||
73 | %description -n vala-libpanel -l pl.UTF-8 | |
74 | API języka Vala do biblioteki libpanel. | |
75 | ||
76 | %package apidocs | |
77 | Summary: API documentation for libpanel library | |
78 | Summary(pl.UTF-8): Dokumentacja API biblioteki libpanel | |
79 | Group: Documentation | |
80 | BuildArch: noarch | |
81 | ||
82 | %description apidocs | |
83 | API documentation for libpanel library. | |
84 | ||
85 | %description apidocs -l pl.UTF-8 | |
86 | Dokumentacja API biblioteki libpanel. | |
87 | ||
88 | %prep | |
89 | %setup -q | |
90 | ||
91 | %build | |
92 | %meson build \ | |
93 | %{!?with_apidocs:-Ddocs=false} | |
94 | ||
95 | %ninja_build -C build | |
96 | ||
97 | %install | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %ninja_install -C build | |
101 | ||
102 | %if %{with apidocs} | |
103 | # FIXME: where to package gi-docgen generated docs? | |
104 | install -d $RPM_BUILD_ROOT%{_gtkdocdir} | |
105 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/panel-1.0 $RPM_BUILD_ROOT%{_gtkdocdir} | |
106 | %endif | |
107 | ||
108 | %find_lang %{name} | |
109 | ||
110 | %clean | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %post -p /sbin/ldconfig | |
114 | %postun -p /sbin/ldconfig | |
115 | ||
116 | %files -f %{name}.lang | |
117 | %defattr(644,root,root,755) | |
118 | %doc AUTHORS NEWS README.md TODO.md | |
119 | %attr(755,root,root) %{_libdir}/libpanel-1.so.*.*.* | |
120 | %attr(755,root,root) %ghost %{_libdir}/libpanel-1.so.1 | |
121 | %{_libdir}/girepository-1.0/Panel-1.typelib | |
122 | %{_iconsdir}/hicolor/scalable/actions/panel-*-symbolic.svg | |
123 | ||
124 | %files devel | |
125 | %defattr(644,root,root,755) | |
126 | %attr(755,root,root) %{_libdir}/libpanel-1.so | |
127 | %{_includedir}/libpanel-1 | |
128 | %{_datadir}/gir-1.0/Panel-1.gir | |
129 | %{_pkgconfigdir}/libpanel-1.pc | |
130 | ||
131 | %files -n vala-libpanel | |
132 | %defattr(644,root,root,755) | |
133 | %{_datadir}/vala/vapi/libpanel-1.deps | |
134 | %{_datadir}/vala/vapi/libpanel-1.vapi | |
135 | ||
136 | %if %{with apidocs} | |
137 | %files apidocs | |
138 | %defattr(644,root,root,755) | |
139 | %{_gtkdocdir}/panel-1.0 | |
140 | %endif |