]>
Commit | Line | Data |
---|---|---|
e3c1736e JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with gtk3 # use GTK+ 3.x instead of 2.x | |
4 | ||
f2694f37 JB |
5 | Summary: MATE utility programs |
6 | Summary(pl.UTF-8): Programy użytkowe dla środowiska MATE | |
7 | Name: mate-utils | |
948e1c45 | 8 | Version: 1.10.2 |
5f322ea8 | 9 | Release: 1 |
f2694f37 JB |
10 | License: LGPL v2+ (libmatedict), GPL v2+ (programs), FDL (documentation) |
11 | Group: X11/Applications/Multimedia | |
22efb5e7 | 12 | Source0: http://pub.mate-desktop.org/releases/1.10/%{name}-%{version}.tar.xz |
948e1c45 | 13 | # Source0-md5: 5c888cd0c183229bc595e9683d91420c |
f2694f37 JB |
14 | URL: https://github.com/mate-desktop/mate-utils |
15 | BuildRequires: autoconf >= 2.53 | |
16 | BuildRequires: automake >= 1:1.9 | |
17 | BuildRequires: docbook-dtd412-xml | |
22efb5e7 | 18 | BuildRequires: glib2-devel >= 1:2.36.0 |
e3c1736e JB |
19 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.24.0} |
20 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0} | |
f2694f37 JB |
21 | BuildRequires: gtk-doc >= 1.10 |
22 | BuildRequires: intltool >= 0.40.0 | |
e3c1736e JB |
23 | %{!?with_gtk3:BuildRequires: libcanberra-gtk-devel >= 0.4} |
24 | %{?with_gtk3:BuildRequires: libcanberra-gtk3-devel >= 0.4} | |
f2694f37 JB |
25 | BuildRequires: libgtop-devel >= 1:2.12.0 |
26 | BuildRequires: libtool >= 1:1.4.3 | |
27 | BuildRequires: mate-common | |
e3c1736e | 28 | BuildRequires: mate-panel-devel >= 1.8.0 |
f2694f37 JB |
29 | BuildRequires: rpmbuild(find_lang) >= 1.36 |
30 | BuildRequires: tar >= 1:1.22 | |
22efb5e7 JB |
31 | BuildRequires: xorg-lib-libX11-devel |
32 | BuildRequires: xorg-lib-libXext-devel | |
f2694f37 | 33 | BuildRequires: xz |
66e8fcd2 | 34 | BuildRequires: yelp-tools |
f2694f37 JB |
35 | BuildRequires: zlib-devel |
36 | Requires(post,postun): desktop-file-utils | |
22efb5e7 | 37 | Requires(post,postun): glib2 >= 1:2.36.0 |
f2694f37 | 38 | Requires(post,postun): gtk-update-icon-cache |
22efb5e7 | 39 | Requires: glib2 >= 1:2.36.0 |
e3c1736e JB |
40 | %{!?with_gtk3:Requires: gtk+2 >= 2:2.24.0} |
41 | %{?with_gtk3:Requires: gtk+3 >= 3.0.0} | |
35729751 | 42 | Requires: hicolor-icon-theme |
e3c1736e JB |
43 | %{!?with_gtk3:Requires: libcanberra-gtk >= 0.4} |
44 | %{?with_gtk3:Requires: libcanberra-gtk3 >= 0.4} | |
855cd23f | 45 | Requires: libmatedict = %{version}-%{release} |
9ba7e926 | 46 | Requires: mate-panel >= 1.8.0 |
f2694f37 JB |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
48 | ||
49 | %define _libexecdir %{_libdir}/mate-panel | |
50 | ||
51 | %description | |
52 | MATE utility programs. | |
53 | ||
54 | %description -l pl.UTF-8 | |
55 | Programy użytkowe dla środowiska MATE. | |
56 | ||
57 | %package -n libmatedict | |
58 | Summary: MATE Dictionary Protocol client library | |
59 | Summary(pl.UTF-8): Biblioteka kliencka protokołu słownika MATE | |
60 | License: LGPL v2+ | |
61 | Group: X11/Libraries | |
22efb5e7 | 62 | Requires: glib2 >= 1:2.36.0 |
e3c1736e JB |
63 | %{!?with_gtk3:Requires: gtk+2 >= 2:2.24.0} |
64 | %{?with_gtk3:Requires: gtk+3 >= 3.0.0} | |
f2694f37 JB |
65 | |
66 | %description -n libmatedict | |
67 | MATE Dictionary Protocol client library. | |
68 | ||
69 | %description -n libmatedict -l pl.UTF-8 | |
70 | Biblioteka kliencka protokołu słownika MATE. | |
71 | ||
72 | %package -n libmatedict-devel | |
73 | Summary: Header files for libmatedict library | |
74 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmatedict | |
75 | License: LGPL v2+ | |
76 | Group: X11/Development/Libraries | |
22efb5e7 | 77 | Requires: glib2-devel >= 1:2.36.0 |
e3c1736e JB |
78 | %{!?with_gtk3:Requires: gtk+2 >= 2:2.24.0} |
79 | %{?with_gtk3:Requires: gtk+3 >= 3.0.0} | |
55bee479 | 80 | Requires: libmatedict = %{version}-%{release} |
f2694f37 JB |
81 | |
82 | %description -n libmatedict-devel | |
83 | Header files for libmatedict library. | |
84 | ||
85 | %description -n libmatedict-devel -l pl.UTF-8 | |
86 | Pliki nagłówkowe biblioteki libmatedict. | |
87 | ||
88 | %package -n libmatedict-apidocs | |
89 | Summary: API documentation for libmatedict library | |
90 | Summary(pl.UTF-8): Dokumentacja API biblioteki libmatedict | |
91 | Group: Documentation | |
55bee479 ER |
92 | %if "%{_rpmversion}" >= "5" |
93 | BuildArch: noarch | |
94 | %endif | |
f2694f37 JB |
95 | |
96 | %description -n libmatedict-apidocs | |
97 | API documentation for libmatedict library. | |
98 | ||
99 | %description -n libmatedict-apidocs -l pl.UTF-8 | |
100 | Dokumentacja API biblioteki libmatedict. | |
101 | ||
9ba7e926 ER |
102 | %package -n mate-screenshot |
103 | Summary: Screenshot utility | |
104 | Summary(pl.UTF-8): Narzędzie do robienia zrzutów ekranu | |
105 | Group: X11/Applications | |
22efb5e7 | 106 | Requires(post,postun): glib2 >= 1:2.36.0 |
9ba7e926 ER |
107 | Requires: glib2 >= 1:2.36.0 |
108 | Conflicts: mate-utils < 1.8.0-2.1 | |
109 | ||
110 | %description -n mate-screenshot | |
2d1a155f | 111 | This utility allows to make a desktop screenshot. |
9ba7e926 ER |
112 | |
113 | %description -n mate-screenshot -l pl.UTF-8 | |
2d1a155f | 114 | To narzędzie pozwala na zrobienie zrzutu ekranu biurka. |
9ba7e926 | 115 | |
f2694f37 JB |
116 | %prep |
117 | %setup -q | |
118 | ||
119 | %build | |
f2694f37 JB |
120 | %{__gtkdocize} |
121 | %{__intltoolize} | |
122 | %{__libtoolize} | |
123 | %{__aclocal} -I m4 | |
124 | %{__autoconf} | |
125 | %{__autoheader} | |
126 | %{__automake} | |
127 | %configure \ | |
128 | --enable-gtk-doc \ | |
22efb5e7 | 129 | --disable-silent-rules \ |
f2694f37 | 130 | --disable-static \ |
e3c1736e | 131 | %{?with_gtk3:--with-gtk=3.0} \ |
f2694f37 JB |
132 | --with-html-dir=%{_gtkdocdir} |
133 | ||
134 | # this package uses shave, not AM_SILENT_RULES, thus only V=1 works | |
b2dcd249 | 135 | %{__make} -j1 \ |
f2694f37 JB |
136 | V=1 |
137 | ||
138 | %install | |
139 | rm -rf $RPM_BUILD_ROOT | |
140 | %{__make} install \ | |
141 | DESTDIR=$RPM_BUILD_ROOT | |
142 | ||
143 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmatedict.la | |
144 | ||
145 | # mate < 1.5 did not exist in pld, avoid dependency on mate-conf | |
146 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-*.convert | |
147 | ||
e3c1736e JB |
148 | # mate-utils gettext domain, mate-{dictionary,disk-usage,analyzer,search-tool,system-log} mate dirs |
149 | %find_lang %{name} --with-mate --all-name | |
f2694f37 JB |
150 | |
151 | %clean | |
152 | rm -rf $RPM_BUILD_ROOT | |
153 | ||
154 | %post | |
155 | %update_desktop_database | |
35729751 | 156 | %update_icon_cache hicolor |
f2694f37 JB |
157 | %glib_compile_schemas |
158 | ||
159 | %postun | |
160 | %update_desktop_database | |
35729751 | 161 | %update_icon_cache hicolor |
f2694f37 JB |
162 | %glib_compile_schemas |
163 | ||
164 | %post -n libmatedict -p /sbin/ldconfig | |
165 | %postun -n libmatedict -p /sbin/ldconfig | |
166 | ||
9ba7e926 ER |
167 | %post -n mate-screenshot |
168 | %update_desktop_database | |
169 | %glib_compile_schemas | |
170 | ||
171 | %postun -n mate-screenshot | |
172 | %update_desktop_database | |
173 | %glib_compile_schemas | |
174 | ||
f2694f37 JB |
175 | %files -f %{name}.lang |
176 | %defattr(644,root,root,755) | |
177 | %doc AUTHORS ChangeLog NEWS README | |
178 | %attr(755,root,root) %{_bindir}/mate-dictionary | |
179 | %attr(755,root,root) %{_bindir}/mate-disk-usage-analyzer | |
f2694f37 JB |
180 | %attr(755,root,root) %{_bindir}/mate-search-tool |
181 | %attr(755,root,root) %{_bindir}/mate-system-log | |
f2694f37 | 182 | %attr(755,root,root) %{_libexecdir}/mate-dictionary-applet |
22efb5e7 JB |
183 | %{_datadir}/appdata/mate-dictionary.appdata.xml |
184 | %{_datadir}/appdata/mate-disk-usage-analyzer.appdata.xml | |
185 | %{_datadir}/appdata/mate-search-tool.appdata.xml | |
f2694f37 JB |
186 | %{_datadir}/dbus-1/services/org.mate.panel.applet.DictionaryAppletFactory.service |
187 | %{_datadir}/glib-2.0/schemas/org.mate.dictionary.gschema.xml | |
188 | %{_datadir}/glib-2.0/schemas/org.mate.disk-usage-analyzer.gschema.xml | |
f2694f37 JB |
189 | %{_datadir}/glib-2.0/schemas/org.mate.search-tool.gschema.xml |
190 | %{_datadir}/glib-2.0/schemas/org.mate.system-log.gschema.xml | |
191 | %{_datadir}/mate-dict | |
192 | %{_datadir}/mate-dictionary | |
193 | %{_datadir}/mate-disk-usage-analyzer | |
194 | %{_datadir}/mate-panel/applets/org.mate.DictionaryApplet.mate-panel-applet | |
f2694f37 JB |
195 | %{_datadir}/mate-utils |
196 | %{_desktopdir}/mate-dictionary.desktop | |
197 | %{_desktopdir}/mate-disk-usage-analyzer.desktop | |
f2694f37 JB |
198 | %{_desktopdir}/mate-search-tool.desktop |
199 | %{_desktopdir}/mate-system-log.desktop | |
35729751 | 200 | %{_iconsdir}/hicolor/*/apps/mate-disk-usage-analyzer.* |
f2694f37 JB |
201 | %{_pixmapsdir}/mate-search-tool |
202 | %{_mandir}/man1/mate-dictionary.1* | |
203 | %{_mandir}/man1/mate-disk-usage-analyzer.1* | |
f2694f37 JB |
204 | %{_mandir}/man1/mate-search-tool.1* |
205 | %{_mandir}/man1/mate-system-log.1* | |
206 | ||
207 | %files -n libmatedict | |
208 | %defattr(644,root,root,755) | |
209 | %attr(755,root,root) %{_libdir}/libmatedict.so.*.*.* | |
210 | %attr(755,root,root) %ghost %{_libdir}/libmatedict.so.6 | |
211 | ||
212 | %files -n libmatedict-devel | |
213 | %defattr(644,root,root,755) | |
214 | %attr(755,root,root) %{_libdir}/libmatedict.so | |
215 | %{_includedir}/mate-dict | |
216 | %{_pkgconfigdir}/mate-dict.pc | |
217 | ||
218 | %files -n libmatedict-apidocs | |
219 | %defattr(644,root,root,755) | |
220 | %{_gtkdocdir}/mate-dict | |
9ba7e926 ER |
221 | |
222 | %files -n mate-screenshot | |
223 | %defattr(644,root,root,755) | |
224 | %attr(755,root,root) %{_bindir}/mate-panel-screenshot | |
225 | %attr(755,root,root) %{_bindir}/mate-screenshot | |
22efb5e7 | 226 | %{_datadir}/appdata/mate-screenshot.appdata.xml |
9ba7e926 ER |
227 | %{_datadir}/glib-2.0/schemas/org.mate.screenshot.gschema.xml |
228 | %{_datadir}/mate-screenshot | |
229 | %{_desktopdir}/mate-screenshot.desktop | |
31fb1fc2 | 230 | %{_mandir}/man1/mate-panel-screenshot.1* |
9ba7e926 | 231 | %{_mandir}/man1/mate-screenshot.1* |