]>
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 | |
5 | # | |
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 | |
f028f8ed | 9 | Version: 3.12.0 |
4fc8d865 MB |
10 | Release: 1 |
11 | License: GPL v2 and LGPL v2 | |
12 | Group: X11/Applications | |
f028f8ed MB |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/glade/3.12/%{name}-%{version}.tar.xz |
14 | # Source0-md5: bc743c2b94b674770b67cbc0c90fb3eb | |
4fc8d865 MB |
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 | |
f028f8ed | 22 | BuildRequires: gtk+3-devel >= 3.4.0 |
4fc8d865 MB |
23 | BuildRequires: gtk-doc >= 1.13 |
24 | BuildRequires: intltool >= 0.41.0 | |
25 | BuildRequires: libtool >= 2:2.2.6 | |
26 | BuildRequires: libxml2-devel >= 1:2.4.0 | |
27 | BuildRequires: pkgconfig | |
f028f8ed | 28 | BuildRequires: python-pygobject3-devel >= 3.0.0 |
4fc8d865 MB |
29 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
30 | BuildRequires: rpmbuild(macros) >= 1.311 | |
53b4395c AF |
31 | BuildRequires: tar >= 1:1.22 |
32 | BuildRequires: xz | |
4fc8d865 | 33 | Requires(post,postun): gtk-update-icon-cache |
f028f8ed | 34 | Requires(post,postun): desktop-file-utils |
4fc8d865 MB |
35 | Requires: %{name}-libs = %{version}-%{release} |
36 | Requires: hicolor-icon-theme | |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %description | |
40 | Glade is a RAD tool to enable quick & easy development of user | |
41 | interfaces for the GTK+ toolkit and the GNOME desktop environment. | |
42 | ||
43 | The user interfaces designed in Glade are saved as XML, and by using | |
44 | the GtkBuilder GTK+ object these can be loaded by applications | |
45 | dynamically as needed. | |
46 | ||
47 | By using GtkBuilder, Glade XML files can be used in numerous | |
48 | programming languages including C, C++, C#, Vala, Java, Perl, Python | |
49 | and others. | |
50 | ||
51 | %description -l pl.UTF-8 | |
52 | Glade jest narzędziem typu RAD (Rapid Application Development) do | |
53 | szybkiego i wygodnego tworzenia interfejsów użytkownika opartych o | |
54 | bibliotekę GTK+ i środowisko GNOME. | |
55 | ||
56 | Interfejsy użytkownika zaprojektowane w Glade są zapisywane w formacie | |
57 | XML i poprzez użycie obiektu GtkBuilder, z biblioteki GTK+, mogą być | |
58 | dynamicznie ładowane przez aplikacje. | |
59 | ||
60 | Poprzez użycie GtkBuilder, pliki XML Glade mogą być używane w licznych | |
61 | językach programowania, włączając C, C++, C#, Vala, Java, Perl, Python | |
62 | i inne. | |
63 | ||
64 | %package libs | |
65 | Summary: Glade library | |
66 | Summary(pl.UTF-8): Biblioteka Glade | |
67 | Group: X11/Libraries | |
f028f8ed | 68 | Requires: gtk+3 >= 3.4.0 |
4fc8d865 MB |
69 | |
70 | %description libs | |
71 | Glade library. | |
72 | ||
73 | %description libs -l pl.UTF-8 | |
74 | Biblioteka Glade. | |
75 | ||
76 | %package devel | |
77 | Summary: Header files for Glade library | |
78 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Glade | |
79 | Group: X11/Development/Libraries | |
80 | Requires: %{name}-libs = %{version}-%{release} | |
f028f8ed | 81 | Requires: gtk+3-devel >= 3.4.0 |
4ef68433 | 82 | Requires: libxml2-devel >= 1:2.4.0 |
4fc8d865 MB |
83 | |
84 | %description devel | |
85 | Header files for Glade library. | |
86 | ||
87 | %description devel -l pl.UTF-8 | |
88 | Pliki nagłówkowe biblioteki Glade. | |
89 | ||
90 | %package static | |
91 | Summary: Static Glade library | |
92 | Summary(pl.UTF-8): Statyczna biblioteka Glade | |
93 | Group: X11/Development/Libraries | |
94 | Requires: %{name}-devel = %{version}-%{release} | |
95 | ||
96 | %description static | |
97 | Static Glade library. | |
98 | ||
99 | %description static -l pl.UTF-8 | |
100 | Statyczna biblioteka Glade. | |
101 | ||
102 | %package apidocs | |
103 | Summary: Glade API documentation | |
104 | Summary(pl.UTF-8): Dokumentacja API biblioteki Glade | |
105 | Group: Documentation | |
106 | Requires: gtk-doc-common | |
107 | ||
108 | %description apidocs | |
109 | Glade API documentation. | |
110 | ||
111 | %description apidocs -l pl.UTF-8 | |
112 | Dokumentacja API biblioteki Glade. | |
113 | ||
114 | %prep | |
115 | %setup -q | |
116 | ||
117 | %build | |
118 | %{__intltoolize} | |
119 | %{__libtoolize} | |
120 | %{__aclocal} -I m4 | |
121 | %{__autoconf} | |
122 | %{__autoheader} | |
123 | %{__automake} | |
124 | %configure \ | |
125 | --disable-silent-rules \ | |
126 | %{__enable_disable apidocs gtk-doc} \ | |
127 | %{__enable_disable static_libs static} \ | |
128 | --with-html-dir=%{_gtkdocdir} | |
129 | %{__make} | |
130 | ||
131 | %install | |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
134 | %{__make} install \ | |
135 | DESTDIR=$RPM_BUILD_ROOT | |
136 | ||
137 | rm $RPM_BUILD_ROOT%{_libdir}/glade/modules/*.{a,la} | |
138 | ||
139 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
140 | ||
141 | %find_lang %{name} --with-gnome --with-omf | |
142 | ||
143 | %clean | |
144 | rm -rf $RPM_BUILD_ROOT | |
145 | ||
146 | %post | |
147 | %update_icon_cache hicolor | |
f028f8ed | 148 | %update_desktop_database_post |
4fc8d865 MB |
149 | |
150 | %postun | |
151 | %update_icon_cache hicolor | |
f028f8ed | 152 | %update_desktop_database_postun |
4fc8d865 MB |
153 | |
154 | %post libs -p /sbin/ldconfig | |
155 | %postun libs -p /sbin/ldconfig | |
156 | ||
157 | %files -f %{name}.lang | |
158 | %defattr(644,root,root,755) | |
159 | %doc AUTHORS ChangeLog NEWS README TODO | |
160 | %attr(755,root,root) %{_bindir}/glade | |
161 | %attr(755,root,root) %{_bindir}/glade-previewer | |
162 | %dir %{_libdir}/glade | |
163 | %dir %{_libdir}/glade/modules | |
164 | %attr(755,root,root) %{_libdir}/glade/modules/libgladegtk.so | |
165 | %attr(755,root,root) %{_libdir}/glade/modules/libgladepython.so | |
166 | %{_datadir}/glade | |
167 | %{_desktopdir}/glade.desktop | |
168 | %{_iconsdir}/hicolor/*/*/*.png | |
169 | ||
170 | %files libs | |
171 | %defattr(644,root,root,755) | |
172 | %attr(755,root,root) %{_libdir}/libgladeui-2.so.*.*.* | |
173 | %attr(755,root,root) %ghost %{_libdir}/libgladeui-2.so.0 | |
174 | %{_libdir}/girepository-1.0/Gladeui-2.0.typelib | |
175 | ||
176 | %files devel | |
177 | %defattr(644,root,root,755) | |
178 | %attr(755,root,root) %{_libdir}/libgladeui-2.so | |
179 | %{_datadir}/gir-1.0/Gladeui-2.0.gir | |
180 | %{_includedir}/libgladeui-2.0 | |
181 | %{_pkgconfigdir}/gladeui-2.0.pc | |
182 | ||
183 | %if %{with static_libs} | |
184 | %files static | |
185 | %defattr(644,root,root,755) | |
186 | %{_libdir}/libgladeui-2.a | |
187 | %endif | |
188 | ||
189 | %if %{with apidocs} | |
190 | %files apidocs | |
191 | %defattr(644,root,root,755) | |
8e05174c | 192 | %{_gtkdocdir}/gladeui-2 |
4fc8d865 | 193 | %endif |