]>
Commit | Line | Data |
---|---|---|
4fc8d865 MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | %bcond_without static_libs # don't build static libraries | |
35c62761 | 5 | |
4fc8d865 MB |
6 | Summary: User interface builder for GTK+ and GNOME |
7 | Summary(pl.UTF-8): Budowniczy interfejsów użytkownika dla GTK+ i GNOME | |
8 | Name: glade | |
ac61c349 | 9 | Version: 3.40.0 |
332ed59d | 10 | Release: 2 |
dbfea978 | 11 | License: GPL v2+ and LGPL v2.1+ |
4fc8d865 | 12 | Group: X11/Applications |
ac61c349 JB |
13 | Source0: https://download.gnome.org/sources/glade/3.40/%{name}-%{version}.tar.xz |
14 | # Source0-md5: 39393a82949a945d09105d35421c29ce | |
446482e1 | 15 | URL: https://glade.gnome.org/ |
1dc56938 | 16 | BuildRequires: gettext-devel >= 0.19.8 |
593aae02 JB |
17 | BuildRequires: gjs-devel >= 1.64.0 |
18 | BuildRequires: glib2-devel >= 1:2.64.0 | |
3c11da34 | 19 | BuildRequires: gobject-introspection-devel >= 1.32.0 |
593aae02 | 20 | BuildRequires: gtk+3-devel >= 3.24.0 |
dbfea978 | 21 | BuildRequires: gtk-doc >= 1.13 |
593aae02 | 22 | BuildRequires: gtk-webkit4-devel >= 2.28 |
dbfea978 | 23 | BuildRequires: libxml2-devel >= 2.4.0 |
3c11da34 | 24 | BuildRequires: libxslt-progs |
593aae02 JB |
25 | BuildRequires: meson >= 0.49.0 |
26 | BuildRequires: ninja >= 1.5 | |
4fc8d865 | 27 | BuildRequires: pkgconfig |
7d172367 | 28 | BuildRequires: python-devel >= 2 |
3c11da34 | 29 | BuildRequires: python-pygobject3-devel >= 3.8.0 |
c4073422 | 30 | BuildRequires: rpm-build >= 4.6 |
4fc8d865 | 31 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
0ee68bde | 32 | BuildRequires: rpmbuild(macros) >= 1.752 |
593aae02 | 33 | BuildRequires: sed >= 4.0 |
53b4395c AF |
34 | BuildRequires: tar >= 1:1.22 |
35 | BuildRequires: xz | |
c071c69b | 36 | BuildRequires: yelp-tools |
4fc8d865 | 37 | Requires(post,postun): gtk-update-icon-cache |
f028f8ed | 38 | Requires(post,postun): desktop-file-utils |
4fc8d865 | 39 | Requires: %{name}-libs = %{version}-%{release} |
593aae02 JB |
40 | Requires: gjs >= 1.64.0 |
41 | Requires: gtk-webkit4 >= 2.28 | |
4fc8d865 | 42 | Requires: hicolor-icon-theme |
0f59bb0f | 43 | Conflicts: glade3 < 3.8.2 |
4fc8d865 MB |
44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
45 | ||
46 | %description | |
47 | Glade is a RAD tool to enable quick & easy development of user | |
48 | interfaces for the GTK+ toolkit and the GNOME desktop environment. | |
49 | ||
50 | The user interfaces designed in Glade are saved as XML, and by using | |
51 | the GtkBuilder GTK+ object these can be loaded by applications | |
52 | dynamically as needed. | |
53 | ||
54 | By using GtkBuilder, Glade XML files can be used in numerous | |
55 | programming languages including C, C++, C#, Vala, Java, Perl, Python | |
56 | and others. | |
57 | ||
58 | %description -l pl.UTF-8 | |
59 | Glade jest narzędziem typu RAD (Rapid Application Development) do | |
60 | szybkiego i wygodnego tworzenia interfejsów użytkownika opartych o | |
61 | bibliotekę GTK+ i środowisko GNOME. | |
62 | ||
63 | Interfejsy użytkownika zaprojektowane w Glade są zapisywane w formacie | |
64 | XML i poprzez użycie obiektu GtkBuilder, z biblioteki GTK+, mogą być | |
65 | dynamicznie ładowane przez aplikacje. | |
66 | ||
67 | Poprzez użycie GtkBuilder, pliki XML Glade mogą być używane w licznych | |
68 | językach programowania, włączając C, C++, C#, Vala, Java, Perl, Python | |
69 | i inne. | |
70 | ||
71 | %package libs | |
72 | Summary: Glade library | |
73 | Summary(pl.UTF-8): Biblioteka Glade | |
74 | Group: X11/Libraries | |
593aae02 JB |
75 | Requires: glib2 >= 1:2.64.0 |
76 | Requires: gtk+3 >= 3.24.0 | |
dbfea978 | 77 | Requires: libxml2 >= 2.4.0 |
4fc8d865 MB |
78 | |
79 | %description libs | |
80 | Glade library. | |
81 | ||
82 | %description libs -l pl.UTF-8 | |
83 | Biblioteka Glade. | |
84 | ||
85 | %package devel | |
86 | Summary: Header files for Glade library | |
87 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Glade | |
88 | Group: X11/Development/Libraries | |
89 | Requires: %{name}-libs = %{version}-%{release} | |
593aae02 JB |
90 | Requires: glib2-devel >= 1:2.64.0 |
91 | Requires: gtk+3-devel >= 3.24.0 | |
dbfea978 | 92 | Requires: libxml2-devel >= 2.4.0 |
4fc8d865 MB |
93 | |
94 | %description devel | |
95 | Header files for Glade library. | |
96 | ||
97 | %description devel -l pl.UTF-8 | |
98 | Pliki nagłówkowe biblioteki Glade. | |
99 | ||
100 | %package static | |
101 | Summary: Static Glade library | |
102 | Summary(pl.UTF-8): Statyczna biblioteka Glade | |
103 | Group: X11/Development/Libraries | |
104 | Requires: %{name}-devel = %{version}-%{release} | |
105 | ||
106 | %description static | |
107 | Static Glade library. | |
108 | ||
109 | %description static -l pl.UTF-8 | |
110 | Statyczna biblioteka Glade. | |
111 | ||
112 | %package apidocs | |
113 | Summary: Glade API documentation | |
114 | Summary(pl.UTF-8): Dokumentacja API biblioteki Glade | |
115 | Group: Documentation | |
116 | Requires: gtk-doc-common | |
f8ce5534 | 117 | BuildArch: noarch |
4fc8d865 MB |
118 | |
119 | %description apidocs | |
120 | Glade API documentation. | |
121 | ||
122 | %description apidocs -l pl.UTF-8 | |
123 | Dokumentacja API biblioteki Glade. | |
124 | ||
125 | %prep | |
126 | %setup -q | |
127 | ||
593aae02 JB |
128 | %if %{with static_libs} |
129 | %{__sed} -i -e '/^libgladeui = / s/shared_library/library/' gladeui/meson.build | |
130 | %endif | |
131 | ||
4fc8d865 | 132 | %build |
593aae02 JB |
133 | %meson build \ |
134 | -Dgladeui=true \ | |
135 | %{?with_apidocs:-Dgtk_doc=true} | |
136 | ||
137 | %ninja_build -C build | |
4fc8d865 MB |
138 | |
139 | %install | |
140 | rm -rf $RPM_BUILD_ROOT | |
141 | ||
593aae02 | 142 | %ninja_install -C build |
4fc8d865 | 143 | |
dbfea978 | 144 | %find_lang %{name} --with-gnome |
4fc8d865 MB |
145 | |
146 | %clean | |
147 | rm -rf $RPM_BUILD_ROOT | |
148 | ||
149 | %post | |
150 | %update_icon_cache hicolor | |
f028f8ed | 151 | %update_desktop_database_post |
4fc8d865 MB |
152 | |
153 | %postun | |
154 | %update_icon_cache hicolor | |
f028f8ed | 155 | %update_desktop_database_postun |
4fc8d865 | 156 | |
dbfea978 | 157 | %post libs -p /sbin/ldconfig |
4fc8d865 MB |
158 | %postun libs -p /sbin/ldconfig |
159 | ||
160 | %files -f %{name}.lang | |
161 | %defattr(644,root,root,755) | |
dbfea978 | 162 | # NOTE: COPYING contains general notes; full GPL and LGPL texts are in COPYING.{GPL,LGPL} |
593aae02 | 163 | %doc AUTHORS COPYING MAINTAINERS NEWS TODO |
4fc8d865 MB |
164 | %attr(755,root,root) %{_bindir}/glade |
165 | %attr(755,root,root) %{_bindir}/glade-previewer | |
166 | %dir %{_libdir}/glade | |
167 | %dir %{_libdir}/glade/modules | |
593aae02 JB |
168 | %attr(755,root,root) %{_libdir}/glade/modules/libgladegjs.so |
169 | %attr(755,root,root) %{_libdir}/glade/modules/libgladeglade.so | |
4fc8d865 MB |
170 | %attr(755,root,root) %{_libdir}/glade/modules/libgladegtk.so |
171 | %attr(755,root,root) %{_libdir}/glade/modules/libgladepython.so | |
e0235acc | 172 | %attr(755,root,root) %{_libdir}/glade/modules/libgladewebkit2gtk.so |
4fc8d865 | 173 | %{_datadir}/glade |
593aae02 JB |
174 | %{_datadir}/gettext/its/glade-catalog.its |
175 | %{_datadir}/gettext/its/glade-catalog.loc | |
1dc56938 JB |
176 | %{_desktopdir}/org.gnome.Glade.desktop |
177 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.Glade.svg | |
178 | %{_iconsdir}/hicolor/symbolic/apps/glade-brand-symbolic.svg | |
179 | %{_iconsdir}/hicolor/symbolic/apps/org.gnome.Glade-symbolic.svg | |
180 | %{_datadir}/metainfo/org.gnome.Glade.appdata.xml | |
3c11da34 AF |
181 | %{_mandir}/man1/glade-previewer.1* |
182 | %{_mandir}/man1/glade.1* | |
4fc8d865 MB |
183 | |
184 | %files libs | |
185 | %defattr(644,root,root,755) | |
186 | %attr(755,root,root) %{_libdir}/libgladeui-2.so.*.*.* | |
593aae02 | 187 | %attr(755,root,root) %ghost %{_libdir}/libgladeui-2.so.13 |
4fc8d865 MB |
188 | %{_libdir}/girepository-1.0/Gladeui-2.0.typelib |
189 | ||
190 | %files devel | |
191 | %defattr(644,root,root,755) | |
192 | %attr(755,root,root) %{_libdir}/libgladeui-2.so | |
193 | %{_datadir}/gir-1.0/Gladeui-2.0.gir | |
194 | %{_includedir}/libgladeui-2.0 | |
195 | %{_pkgconfigdir}/gladeui-2.0.pc | |
196 | ||
197 | %if %{with static_libs} | |
198 | %files static | |
199 | %defattr(644,root,root,755) | |
200 | %{_libdir}/libgladeui-2.a | |
201 | %endif | |
202 | ||
203 | %if %{with apidocs} | |
204 | %files apidocs | |
205 | %defattr(644,root,root,755) | |
8e05174c | 206 | %{_gtkdocdir}/gladeui-2 |
4fc8d865 | 207 | %endif |