]>
Commit | Line | Data |
---|---|---|
baa802e5 JB |
1 | # NOTE: this package is deprecated, meant for MATE <= 1.4 compatibility only |
2 | # | |
3 | # Conditional build: | |
4 | %bcond_with gtk3 # use GTK+ 3.x instead of 2.x | |
5 | %bcond_with static_libs # static library | |
6 | # | |
7 | Summary: MATE base GUI library | |
8 | Summary(pl.UTF-8): Podstawowa biblioteka GUI MATE | |
9 | Name: libmateui | |
10 | Version: 1.4.0 | |
11 | Release: 1 | |
12 | License: LGPL v2+ | |
13 | Group: X11/Libraries | |
14 | Source0: http://pub.mate-desktop.org/releases/1.4/%{name}-%{version}.tar.xz | |
15 | # Source0-md5: c48f2213a0511c60c8811af503c60337 | |
16 | URL: http://mate-desktop.org | |
17 | BuildRequires: autoconf >= 2.54 | |
18 | BuildRequires: automake >= 1:1.9 | |
19 | BuildRequires: docbook-dtd412-xml | |
20 | BuildRequires: gdk-pixbuf2-devel >= 2.12.0 | |
c7c5191b | 21 | BuildRequires: gettext-tools >= 0.10.40 |
baa802e5 JB |
22 | BuildRequires: glib2-devel >= 1:2.16.0 |
23 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.12.0} | |
24 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0} | |
25 | BuildRequires: gtk-doc >= 1.0 | |
26 | BuildRequires: intltool >= 0.40.0 | |
27 | BuildRequires: libglade2-devel >= 2.0.0 | |
28 | BuildRequires: libmate-devel >= 1.1.0 | |
29 | BuildRequires: libmatecanvas-devel >= 1.1.0 | |
30 | BuildRequires: libmatecomponentui-devel >= 1.1.0 | |
31 | BuildRequires: libmatekeyring-devel >= 1.1.0 | |
32 | BuildRequires: libtool >= 1:1.4.3 | |
33 | BuildRequires: libxml2-devel >= 1:2.4.20 | |
34 | BuildRequires: mate-common | |
35 | BuildRequires: mate-conf-devel >= 1.1.0 | |
36 | BuildRequires: mate-vfs-devel >= 1.1.0 | |
37 | BuildRequires: pango-devel >= 1:1.1.2 | |
38 | BuildRequires: perl-base | |
39 | BuildRequires: pkgconfig | |
40 | BuildRequires: popt-devel >= 1.5 | |
41 | BuildRequires: rpmbuild(macros) >= 1.197 | |
42 | BuildRequires: tar >= 1:1.22 | |
43 | BuildRequires: xorg-lib-libICE-devel | |
44 | BuildRequires: xorg-lib-libSM-devel | |
45 | BuildRequires: xorg-lib-libX11-devel | |
46 | BuildRequires: xz | |
47 | Requires: gdk-pixbuf2 >= 2.12.0 | |
48 | Requires: glib2 >= 1:2.16.0 | |
49 | %{!?with_gtk3:Requires: gtk+2 >= 2:2.12.0} | |
50 | %{?with_gtk3:Requires: gtk+3 >= 3.0.0} | |
51 | Requires: libmate-libs >= 1.1.0 | |
52 | Requires: libmatecomponentui >= 1.1.0 | |
53 | Requires: libmatekeyring >= 1.1.0 | |
54 | Requires: mate-conf-libs >= 1.1.0 | |
55 | Requires: mate-vfs-libs >= 1.1.0 | |
56 | Requires: popt >= 1.5 | |
57 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
58 | ||
59 | %description | |
60 | libmateui is the GUI part of base MATE libraries. It's a fork of | |
61 | libgnomeui. | |
62 | ||
63 | %description -l pl.UTF-8 | |
64 | libmateui to związana z graficznym interfejsem użytkownika (GUI) część | |
65 | podstawowych bibliotek MATE. Jest to odgałęzienie libgnomeui. | |
66 | ||
67 | %package devel | |
68 | Summary: Header files for libmateui | |
69 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmateui | |
70 | Group: X11/Development/Libraries | |
71 | Requires: %{name} = %{version}-%{release} | |
72 | Requires: gdk-pixbuf2-devel >= 2.12.0 | |
73 | Requires: glib2-devel >= 1:2.16.0 | |
74 | %{!?with_gtk3:Requires: gtk+2-devel >= 2:2.12.0} | |
75 | %{?with_gtk3:Requires: gtk+3-devel >= 3.0.0} | |
76 | Requires: libglade2-devel >= 2.0.0 | |
77 | Requires: libmate-devel >= 1.1.0 | |
78 | Requires: libmatecanvas-devel >= 1.1.0 | |
79 | Requires: libmatecomponentui-devel >= 1.1.0 | |
80 | Requires: libmatekeyring-devel >= 1.1.0 | |
81 | Requires: mate-conf-devel >= 1.1.0 | |
82 | Requires: mate-vfs-devel >= 1.1.0 | |
83 | Requires: popt-devel >= 1.5 | |
84 | Requires: xorg-lib-libICE-devel | |
85 | Requires: xorg-lib-libSM-devel | |
86 | ||
87 | %description devel | |
88 | This package includes the header files that you will need for | |
89 | libmateui applications development. | |
90 | ||
91 | %description devel -l pl.UTF-8 | |
92 | Ten pakiet zawiera pliki nagłówkowe potrzebne do kompilacji programów | |
93 | używających biblioteki libmateui. | |
94 | ||
95 | %package static | |
1e04b657 JB |
96 | Summary: Static libmateui library |
97 | Summary(pl.UTF-8): Statyczna biblioteka libmateui | |
baa802e5 JB |
98 | Group: X11/Development/Libraries |
99 | Requires: %{name}-devel = %{version}-%{release} | |
100 | ||
101 | %description static | |
1e04b657 | 102 | Static version of libmateui library. |
baa802e5 JB |
103 | |
104 | %description static -l pl.UTF-8 | |
1e04b657 | 105 | Statyczna wersja biblioteki libmateui. |
baa802e5 JB |
106 | |
107 | %package apidocs | |
108 | Summary: libmateui API documentation | |
109 | Summary(pl.UTF-8): Dokumentacja API libmateui | |
110 | Group: Documentation | |
111 | Requires: gtk-doc-common | |
112 | ||
113 | %description apidocs | |
114 | libmateui API documentation. | |
115 | ||
116 | %description apidocs -l pl.UTF-8 | |
117 | Dokumentacja API libmateui. | |
118 | ||
119 | %prep | |
120 | %setup -q | |
121 | ||
122 | %build | |
123 | %{__gtkdocize} | |
124 | %{__glib_gettextize} | |
125 | %{__intltoolize} | |
126 | %{__libtoolize} | |
127 | %{__aclocal} | |
128 | %{__autoconf} | |
129 | %{__autoheader} | |
130 | %{__automake} | |
131 | %configure \ | |
132 | MATECONFTOOL=/usr/bin/mateconftool-2 \ | |
133 | --enable-gtk-doc \ | |
134 | --disable-silent-rules \ | |
135 | %{!?with_static_libs:--disable-static} \ | |
136 | %{?with_gtk3:--with-gtk=3.0} \ | |
137 | --with-html-dir=%{_gtkdocdir} | |
138 | %{__make} | |
139 | ||
140 | %install | |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
143 | %{__make} install \ | |
144 | DESTDIR=$RPM_BUILD_ROOT | |
145 | ||
146 | # no static modules and *.la for libglade | |
147 | # libraries .la obsoleted by pkg-config | |
148 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la \ | |
149 | $RPM_BUILD_ROOT%{_libdir}/libglade/2.0/*.la | |
150 | %if %{with static_libs} | |
151 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libglade/2.0/*.a | |
152 | %endif | |
153 | ||
154 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{sr@ije,sr@ijekavian} | |
155 | ||
156 | %find_lang %{name} | |
157 | ||
158 | %clean | |
159 | rm -rf $RPM_BUILD_ROOT | |
160 | ||
161 | %post -p /sbin/ldconfig | |
162 | %postun -p /sbin/ldconfig | |
163 | ||
164 | %files -f %{name}.lang | |
165 | %defattr(644,root,root,755) | |
166 | %doc AUTHORS ChangeLog NEWS README | |
167 | %attr(755,root,root) %{_libdir}/libmateui-2.so.*.*.* | |
168 | %attr(755,root,root) %ghost %{_libdir}/libmateui-2.so.0 | |
169 | %attr(755,root,root) %{_libdir}/libglade/2.0/libmate.so | |
170 | %{_pixmapsdir}/mate-about-logo.png | |
171 | ||
172 | %files devel | |
173 | %defattr(644,root,root,755) | |
174 | %{_includedir}/libmateui-2.0 | |
175 | %attr(755,root,root) %{_libdir}/libmateui-2.so | |
176 | %{_pkgconfigdir}/libmateui-2.0.pc | |
177 | ||
178 | %if %{with static_libs} | |
179 | %files static | |
180 | %defattr(644,root,root,755) | |
181 | %{_libdir}/libmateui-2.a | |
182 | %endif | |
183 | ||
184 | %files apidocs | |
185 | %defattr(644,root,root,755) | |
186 | %{_gtkdocdir}/libmateui |