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