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