]>
Commit | Line | Data |
---|---|---|
f2694f37 JB |
1 | Summary: MATE utility programs |
2 | Summary(pl.UTF-8): Programy użytkowe dla środowiska MATE | |
3 | Name: mate-utils | |
8aa16867 | 4 | Version: 1.26.1 |
2e394776 | 5 | Release: 2 |
f2694f37 JB |
6 | License: LGPL v2+ (libmatedict), GPL v2+ (programs), FDL (documentation) |
7 | Group: X11/Applications/Multimedia | |
bc1c518a | 8 | Source0: https://pub.mate-desktop.org/releases/1.26/%{name}-%{version}.tar.xz |
8aa16867 | 9 | # Source0-md5: 1ce3bb086f21a8beb5c1897bc4594bd7 |
f2694f37 JB |
10 | URL: https://github.com/mate-desktop/mate-utils |
11 | BuildRequires: autoconf >= 2.53 | |
04eb86c2 | 12 | BuildRequires: automake >= 1:1.11 |
153a19fc | 13 | BuildRequires: docbook-dtd45-xml |
6910639b | 14 | BuildRequires: gettext-tools >= 0.19.8 |
9a1aa1eb JP |
15 | BuildRequires: glib2-devel >= 1:2.50.0 |
16 | BuildRequires: gtk+3-devel >= 3.22 | |
f2694f37 | 17 | BuildRequires: gtk-doc >= 1.10 |
bb23b376 | 18 | BuildRequires: inkscape |
cfb3510e | 19 | BuildRequires: libcanberra-gtk3-devel >= 0.4 |
f2694f37 JB |
20 | BuildRequires: libgtop-devel >= 1:2.12.0 |
21 | BuildRequires: libtool >= 1:1.4.3 | |
22 | BuildRequires: mate-common | |
cfb3510e | 23 | BuildRequires: mate-panel-devel >= 1.17.0 |
c33f1545 | 24 | BuildRequires: rpm-build >= 4.6 |
f2694f37 | 25 | BuildRequires: rpmbuild(find_lang) >= 1.36 |
310097fe | 26 | BuildRequires: rpmbuild(macros) >= 1.596 |
f2694f37 | 27 | BuildRequires: tar >= 1:1.22 |
6910639b | 28 | BuildRequires: udisks2-devel >= 1.90.0 |
bc1c518a JP |
29 | BuildRequires: xorg-lib-libICE-devel >= 1.0.0 |
30 | BuildRequires: xorg-lib-libSM-devel >= 1.0.0 | |
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 | |
9a1aa1eb | 37 | Requires(post,postun): glib2 >= 1:2.50.0 |
f2694f37 | 38 | Requires(post,postun): gtk-update-icon-cache |
9a1aa1eb JP |
39 | Requires: glib2 >= 1:2.50.0 |
40 | Requires: gtk+3 >= 3.22 | |
35729751 | 41 | Requires: hicolor-icon-theme |
cfb3510e | 42 | Requires: libcanberra-gtk3 >= 0.4 |
62ec9867 | 43 | Requires: libgtop >= 1:2.12.0 |
855cd23f | 44 | Requires: libmatedict = %{version}-%{release} |
cfb3510e | 45 | Requires: mate-panel >= 1.17.0 |
6910639b | 46 | Requires: udisks2-libs >= 1.90.0 |
f2694f37 JB |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
48 | ||
96bb7cfe JB |
49 | # use the same libexecdir as mate-panel |
50 | # (better solution: store mate-panel libexecdir in libmatepanelapplet-*.pc and read it here) | |
51 | %define matepanel_libexecdir %{_libexecdir}/mate-panel | |
f2694f37 JB |
52 | |
53 | %description | |
54 | MATE utility programs. | |
55 | ||
56 | %description -l pl.UTF-8 | |
57 | Programy użytkowe dla środowiska MATE. | |
58 | ||
59 | %package -n libmatedict | |
60 | Summary: MATE Dictionary Protocol client library | |
61 | Summary(pl.UTF-8): Biblioteka kliencka protokołu słownika MATE | |
62 | License: LGPL v2+ | |
63 | Group: X11/Libraries | |
9a1aa1eb JP |
64 | Requires: glib2 >= 1:2.50.0 |
65 | Requires: gtk+3 >= 3.22 | |
f2694f37 JB |
66 | |
67 | %description -n libmatedict | |
68 | MATE Dictionary Protocol client library. | |
69 | ||
70 | %description -n libmatedict -l pl.UTF-8 | |
71 | Biblioteka kliencka protokołu słownika MATE. | |
72 | ||
73 | %package -n libmatedict-devel | |
74 | Summary: Header files for libmatedict library | |
75 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmatedict | |
76 | License: LGPL v2+ | |
77 | Group: X11/Development/Libraries | |
9a1aa1eb JP |
78 | Requires: glib2-devel >= 1:2.50.0 |
79 | Requires: gtk+3 >= 3.22 | |
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 | 92 | BuildArch: noarch |
f2694f37 JB |
93 | |
94 | %description -n libmatedict-apidocs | |
95 | API documentation for libmatedict library. | |
96 | ||
97 | %description -n libmatedict-apidocs -l pl.UTF-8 | |
98 | Dokumentacja API biblioteki libmatedict. | |
99 | ||
9ba7e926 ER |
100 | %package -n mate-screenshot |
101 | Summary: Screenshot utility | |
102 | Summary(pl.UTF-8): Narzędzie do robienia zrzutów ekranu | |
103 | Group: X11/Applications | |
9a1aa1eb JP |
104 | Requires(post,postun): glib2 >= 1:2.50.0 |
105 | Requires: glib2 >= 1:2.50.0 | |
9ba7e926 ER |
106 | Conflicts: mate-utils < 1.8.0-2.1 |
107 | ||
108 | %description -n mate-screenshot | |
2d1a155f | 109 | This utility allows to make a desktop screenshot. |
9ba7e926 ER |
110 | |
111 | %description -n mate-screenshot -l pl.UTF-8 | |
2d1a155f | 112 | To narzędzie pozwala na zrobienie zrzutu ekranu biurka. |
9ba7e926 | 113 | |
f2694f37 JB |
114 | %prep |
115 | %setup -q | |
116 | ||
117 | %build | |
f2694f37 | 118 | %configure \ |
96bb7cfe | 119 | --libexecdir=%{matepanel_libexecdir} \ |
f2694f37 | 120 | --enable-gtk-doc \ |
22efb5e7 | 121 | --disable-silent-rules \ |
f2694f37 JB |
122 | --disable-static \ |
123 | --with-html-dir=%{_gtkdocdir} | |
124 | ||
d63ee59b | 125 | %{__make} -j1 |
f2694f37 JB |
126 | |
127 | %install | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | %{__make} install \ | |
130 | DESTDIR=$RPM_BUILD_ROOT | |
131 | ||
132 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmatedict.la | |
133 | ||
a265b81b | 134 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{es_ES,frp,ie,jv,ku_IQ,pms} |
2e394776 | 135 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/help/{es_ES,frp,ie,jv,ku_IQ,zh-Hans} |
f2694f37 | 136 | |
e3c1736e JB |
137 | # mate-utils gettext domain, mate-{dictionary,disk-usage,analyzer,search-tool,system-log} mate dirs |
138 | %find_lang %{name} --with-mate --all-name | |
f2694f37 JB |
139 | |
140 | %clean | |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
143 | %post | |
144 | %update_desktop_database | |
35729751 | 145 | %update_icon_cache hicolor |
f2694f37 JB |
146 | %glib_compile_schemas |
147 | ||
148 | %postun | |
149 | %update_desktop_database | |
35729751 | 150 | %update_icon_cache hicolor |
f2694f37 JB |
151 | %glib_compile_schemas |
152 | ||
153 | %post -n libmatedict -p /sbin/ldconfig | |
154 | %postun -n libmatedict -p /sbin/ldconfig | |
155 | ||
9ba7e926 ER |
156 | %post -n mate-screenshot |
157 | %update_desktop_database | |
158 | %glib_compile_schemas | |
159 | ||
160 | %postun -n mate-screenshot | |
161 | %update_desktop_database | |
162 | %glib_compile_schemas | |
163 | ||
f2694f37 JB |
164 | %files -f %{name}.lang |
165 | %defattr(644,root,root,755) | |
bc1c518a | 166 | %doc AUTHORS ChangeLog NEWS README.md |
f2694f37 | 167 | %attr(755,root,root) %{_bindir}/mate-dictionary |
6910639b | 168 | %attr(755,root,root) %{_bindir}/mate-disk-image-mounter |
f2694f37 | 169 | %attr(755,root,root) %{_bindir}/mate-disk-usage-analyzer |
f2694f37 JB |
170 | %attr(755,root,root) %{_bindir}/mate-search-tool |
171 | %attr(755,root,root) %{_bindir}/mate-system-log | |
96bb7cfe | 172 | %attr(755,root,root) %{matepanel_libexecdir}/mate-dictionary-applet |
153a19fc JP |
173 | %{_datadir}/metainfo/mate-dictionary.appdata.xml |
174 | %{_datadir}/metainfo/mate-disk-usage-analyzer.appdata.xml | |
175 | %{_datadir}/metainfo/mate-search-tool.appdata.xml | |
f2694f37 JB |
176 | %{_datadir}/dbus-1/services/org.mate.panel.applet.DictionaryAppletFactory.service |
177 | %{_datadir}/glib-2.0/schemas/org.mate.dictionary.gschema.xml | |
178 | %{_datadir}/glib-2.0/schemas/org.mate.disk-usage-analyzer.gschema.xml | |
f2694f37 JB |
179 | %{_datadir}/glib-2.0/schemas/org.mate.search-tool.gschema.xml |
180 | %{_datadir}/glib-2.0/schemas/org.mate.system-log.gschema.xml | |
181 | %{_datadir}/mate-dict | |
182 | %{_datadir}/mate-dictionary | |
f2694f37 | 183 | %{_datadir}/mate-panel/applets/org.mate.DictionaryApplet.mate-panel-applet |
f2694f37 | 184 | %{_desktopdir}/mate-dictionary.desktop |
6910639b | 185 | %{_desktopdir}/mate-disk-image-mounter.desktop |
f2694f37 | 186 | %{_desktopdir}/mate-disk-usage-analyzer.desktop |
f2694f37 JB |
187 | %{_desktopdir}/mate-search-tool.desktop |
188 | %{_desktopdir}/mate-system-log.desktop | |
35729751 | 189 | %{_iconsdir}/hicolor/*/apps/mate-disk-usage-analyzer.* |
04eb86c2 JP |
190 | %{_iconsdir}/hicolor/*/apps/mate-system-log.png |
191 | %{_iconsdir}/hicolor/scalable/apps/mate-system-log-symbolic.svg | |
f2694f37 JB |
192 | %{_pixmapsdir}/mate-search-tool |
193 | %{_mandir}/man1/mate-dictionary.1* | |
194 | %{_mandir}/man1/mate-disk-usage-analyzer.1* | |
f2694f37 JB |
195 | %{_mandir}/man1/mate-search-tool.1* |
196 | %{_mandir}/man1/mate-system-log.1* | |
197 | ||
198 | %files -n libmatedict | |
199 | %defattr(644,root,root,755) | |
200 | %attr(755,root,root) %{_libdir}/libmatedict.so.*.*.* | |
201 | %attr(755,root,root) %ghost %{_libdir}/libmatedict.so.6 | |
202 | ||
203 | %files -n libmatedict-devel | |
204 | %defattr(644,root,root,755) | |
205 | %attr(755,root,root) %{_libdir}/libmatedict.so | |
206 | %{_includedir}/mate-dict | |
207 | %{_pkgconfigdir}/mate-dict.pc | |
208 | ||
209 | %files -n libmatedict-apidocs | |
210 | %defattr(644,root,root,755) | |
211 | %{_gtkdocdir}/mate-dict | |
9ba7e926 ER |
212 | |
213 | %files -n mate-screenshot | |
214 | %defattr(644,root,root,755) | |
215 | %attr(755,root,root) %{_bindir}/mate-panel-screenshot | |
216 | %attr(755,root,root) %{_bindir}/mate-screenshot | |
153a19fc | 217 | %{_datadir}/metainfo/mate-screenshot.appdata.xml |
9ba7e926 | 218 | %{_datadir}/glib-2.0/schemas/org.mate.screenshot.gschema.xml |
9ba7e926 | 219 | %{_desktopdir}/mate-screenshot.desktop |
31fb1fc2 | 220 | %{_mandir}/man1/mate-panel-screenshot.1* |
9ba7e926 | 221 | %{_mandir}/man1/mate-screenshot.1* |