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