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