3 %bcond_without apidocs # do not build and package API docs
4 %bcond_without static_libs # don't build static libraries
6 Summary: User interface builder for GTK+ and GNOME
7 Summary(pl.UTF-8): Budowniczy interfejsów użytkownika dla GTK+ i GNOME
11 License: GPL v2 and LGPL v2
12 Group: X11/Applications
13 Source0: http://ftp.gnome.org/pub/GNOME/sources/glade/3.14/%{name}-%{version}.tar.xz
14 # Source0-md5: cd73934b7cd0dcb1c99a6d0589c73d48
15 URL: http://glade.gnome.org/
16 BuildRequires: autoconf >= 2.52
17 BuildRequires: automake >= 1:1.11
18 BuildRequires: gettext-devel
19 BuildRequires: gnome-common
20 BuildRequires: gnome-doc-utils >= 0.18.0
21 BuildRequires: gobject-introspection-devel >= 0.10.1
22 BuildRequires: gtk+3-devel >= 3.5.17
23 BuildRequires: intltool >= 0.41.0
24 BuildRequires: libtool >= 2:2.2.6
25 BuildRequires: libxml2-devel >= 1:2.4.0
26 BuildRequires: pkgconfig
27 BuildRequires: python-pygobject3-devel >= 3.0.0
28 BuildRequires: rpmbuild(find_lang) >= 1.23
29 BuildRequires: rpmbuild(macros) >= 1.311
30 BuildRequires: tar >= 1:1.22
31 BuildRequires: yelp-tools
33 Requires(post,postun): gtk-update-icon-cache
34 Requires(post,postun): desktop-file-utils
35 Requires: %{name}-libs = %{version}-%{release}
36 Requires: hicolor-icon-theme
37 Conflicts: glade3 < 3.8.2
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 Glade is a RAD tool to enable quick & easy development of user
42 interfaces for the GTK+ toolkit and the GNOME desktop environment.
44 The user interfaces designed in Glade are saved as XML, and by using
45 the GtkBuilder GTK+ object these can be loaded by applications
46 dynamically as needed.
48 By using GtkBuilder, Glade XML files can be used in numerous
49 programming languages including C, C++, C#, Vala, Java, Perl, Python
52 %description -l pl.UTF-8
53 Glade jest narzędziem typu RAD (Rapid Application Development) do
54 szybkiego i wygodnego tworzenia interfejsów użytkownika opartych o
55 bibliotekę GTK+ i środowisko GNOME.
57 Interfejsy użytkownika zaprojektowane w Glade są zapisywane w formacie
58 XML i poprzez użycie obiektu GtkBuilder, z biblioteki GTK+, mogą być
59 dynamicznie ładowane przez aplikacje.
61 Poprzez użycie GtkBuilder, pliki XML Glade mogą być używane w licznych
62 językach programowania, włączając C, C++, C#, Vala, Java, Perl, Python
66 Summary: Glade library
67 Summary(pl.UTF-8): Biblioteka Glade
69 Requires: gtk+3 >= 3.4.0
74 %description libs -l pl.UTF-8
78 Summary: Header files for Glade library
79 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Glade
80 Group: X11/Development/Libraries
81 Requires: %{name}-libs = %{version}-%{release}
82 Requires: gtk+3-devel >= 3.4.0
83 Requires: libxml2-devel >= 1:2.4.0
86 Header files for Glade library.
88 %description devel -l pl.UTF-8
89 Pliki nagłówkowe biblioteki Glade.
92 Summary: Static Glade library
93 Summary(pl.UTF-8): Statyczna biblioteka Glade
94 Group: X11/Development/Libraries
95 Requires: %{name}-devel = %{version}-%{release}
100 %description static -l pl.UTF-8
101 Statyczna biblioteka Glade.
104 Summary: Glade API documentation
105 Summary(pl.UTF-8): Dokumentacja API biblioteki Glade
107 Requires: gtk-doc-common
110 Glade API documentation.
112 %description apidocs -l pl.UTF-8
113 Dokumentacja API biblioteki Glade.
126 --disable-silent-rules \
127 %{__enable_disable apidocs gtk-doc} \
128 %{__enable_disable static_libs static} \
129 --with-html-dir=%{_gtkdocdir}
133 rm -rf $RPM_BUILD_ROOT
136 DESTDIR=$RPM_BUILD_ROOT
138 rm $RPM_BUILD_ROOT%{_libdir}/glade/modules/*.{a,la}
140 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
142 %find_lang %{name} --with-gnome --with-omf
145 rm -rf $RPM_BUILD_ROOT
148 %update_icon_cache hicolor
149 %update_desktop_database_post
152 %update_icon_cache hicolor
153 %update_desktop_database_postun
155 %post libs -p /sbin/ldconfig
156 %postun libs -p /sbin/ldconfig
158 %files -f %{name}.lang
159 %defattr(644,root,root,755)
160 %doc AUTHORS ChangeLog NEWS README TODO
161 %attr(755,root,root) %{_bindir}/glade
162 %attr(755,root,root) %{_bindir}/glade-previewer
163 %dir %{_libdir}/glade
164 %dir %{_libdir}/glade/modules
165 %attr(755,root,root) %{_libdir}/glade/modules/libgladegtk.so
166 %attr(755,root,root) %{_libdir}/glade/modules/libgladepython.so
168 %{_desktopdir}/glade.desktop
169 %{_iconsdir}/hicolor/*/*/*.png
172 %defattr(644,root,root,755)
173 %attr(755,root,root) %{_libdir}/libgladeui-2.so.*.*.*
174 %attr(755,root,root) %ghost %{_libdir}/libgladeui-2.so.4
175 %{_libdir}/girepository-1.0/Gladeui-2.0.typelib
178 %defattr(644,root,root,755)
179 %attr(755,root,root) %{_libdir}/libgladeui-2.so
180 %{_datadir}/gir-1.0/Gladeui-2.0.gir
181 %{_includedir}/libgladeui-2.0
182 %{_pkgconfigdir}/gladeui-2.0.pc
184 %if %{with static_libs}
186 %defattr(644,root,root,755)
187 %{_libdir}/libgladeui-2.a
192 %defattr(644,root,root,755)
193 %{_gtkdocdir}/gladeui-2