]>
Commit | Line | Data |
---|---|---|
1 | Summary: MATE utility programs | |
2 | Summary(pl.UTF-8): Programy użytkowe dla środowiska MATE | |
3 | Name: mate-utils | |
4 | Version: 1.28.0 | |
5 | Release: 1 | |
6 | License: LGPL v2+ (libmatedict), GPL v2+ (programs), FDL (documentation) | |
7 | Group: X11/Applications/Multimedia | |
8 | Source0: https://pub.mate-desktop.org/releases/1.28/%{name}-%{version}.tar.xz | |
9 | # Source0-md5: b5820b69d1c292712a7a45a933d9c2da | |
10 | URL: https://github.com/mate-desktop/mate-utils | |
11 | BuildRequires: autoconf >= 2.53 | |
12 | BuildRequires: automake >= 1:1.11 | |
13 | BuildRequires: docbook-dtd45-xml | |
14 | BuildRequires: gettext-tools >= 0.19.8 | |
15 | BuildRequires: glib2-devel >= 1:2.50.0 | |
16 | BuildRequires: gtk+3-devel >= 3.22 | |
17 | BuildRequires: gtk-doc >= 1.10 | |
18 | # wayland not finished yet (there are configure checks, but used minimal versions are not defined) | |
19 | #BuildRequires: gtk-layer-shell-devel | |
20 | BuildRequires: inkscape | |
21 | BuildRequires: libcanberra-gtk3-devel >= 0.4 | |
22 | BuildRequires: libgtop-devel >= 1:2.12.0 | |
23 | # rsvg-convert | |
24 | BuildRequires: librsvg | |
25 | BuildRequires: libtool >= 1:1.4.3 | |
26 | BuildRequires: mate-common | |
27 | BuildRequires: mate-desktop-devel >= 1.27.1 | |
28 | BuildRequires: mate-panel-devel >= 1.17.0 | |
29 | BuildRequires: rpm-build >= 4.6 | |
30 | BuildRequires: rpmbuild(find_lang) >= 1.36 | |
31 | BuildRequires: rpmbuild(macros) >= 1.596 | |
32 | BuildRequires: tar >= 1:1.22 | |
33 | BuildRequires: udisks2-devel >= 1.90.0 | |
34 | # wayland-client | |
35 | #BuildRequires: wayland-devel | |
36 | BuildRequires: xorg-lib-libICE-devel >= 1.0.0 | |
37 | BuildRequires: xorg-lib-libSM-devel >= 1.0.0 | |
38 | BuildRequires: xorg-lib-libX11-devel | |
39 | BuildRequires: xorg-lib-libXext-devel | |
40 | BuildRequires: xz | |
41 | BuildRequires: yelp-tools | |
42 | BuildRequires: zlib-devel | |
43 | Requires(post,postun): desktop-file-utils | |
44 | Requires(post,postun): glib2 >= 1:2.50.0 | |
45 | Requires(post,postun): gtk-update-icon-cache | |
46 | Requires: glib2 >= 1:2.50.0 | |
47 | Requires: gtk+3 >= 3.22 | |
48 | Requires: hicolor-icon-theme | |
49 | Requires: libcanberra-gtk3 >= 0.4 | |
50 | Requires: libgtop >= 1:2.12.0 | |
51 | Requires: libmatedict = %{version}-%{release} | |
52 | Requires: mate-desktop >= 1.27.1 | |
53 | Requires: mate-panel >= 1.17.0 | |
54 | Requires: udisks2-libs >= 1.90.0 | |
55 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
56 | ||
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 | |
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 | |
72 | Requires: glib2 >= 1:2.50.0 | |
73 | Requires: gtk+3 >= 3.22 | |
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 | |
86 | Requires: glib2-devel >= 1:2.50.0 | |
87 | Requires: gtk+3 >= 3.22 | |
88 | Requires: libmatedict = %{version}-%{release} | |
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 | |
100 | BuildArch: noarch | |
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 | ||
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 | |
112 | Requires(post,postun): glib2 >= 1:2.50.0 | |
113 | Requires: glib2 >= 1:2.50.0 | |
114 | Conflicts: mate-utils < 1.8.0-2.1 | |
115 | ||
116 | %description -n mate-screenshot | |
117 | This utility allows to make a desktop screenshot. | |
118 | ||
119 | %description -n mate-screenshot -l pl.UTF-8 | |
120 | To narzędzie pozwala na zrobienie zrzutu ekranu biurka. | |
121 | ||
122 | %prep | |
123 | %setup -q | |
124 | ||
125 | %build | |
126 | %configure \ | |
127 | --libexecdir=%{matepanel_libexecdir} \ | |
128 | --enable-gtk-doc \ | |
129 | --disable-silent-rules \ | |
130 | --disable-static \ | |
131 | --with-html-dir=%{_gtkdocdir} | |
132 | ||
133 | %{__make} -j1 | |
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 | ||
142 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{es_ES,frp,ie,jv,ku_IQ,pms} | |
143 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/help/{es_ES,frp,ie,jv,ku_IQ,zh-Hans} | |
144 | ||
145 | # mate-utils gettext domain, mate-{dictionary,disk-usage,analyzer,search-tool,system-log} mate dirs | |
146 | %find_lang %{name} --with-mate --all-name | |
147 | ||
148 | %clean | |
149 | rm -rf $RPM_BUILD_ROOT | |
150 | ||
151 | %post | |
152 | %update_desktop_database | |
153 | %update_icon_cache hicolor | |
154 | %glib_compile_schemas | |
155 | ||
156 | %postun | |
157 | %update_desktop_database | |
158 | %update_icon_cache hicolor | |
159 | %glib_compile_schemas | |
160 | ||
161 | %post -n libmatedict -p /sbin/ldconfig | |
162 | %postun -n libmatedict -p /sbin/ldconfig | |
163 | ||
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 | ||
172 | %files -f %{name}.lang | |
173 | %defattr(644,root,root,755) | |
174 | %doc AUTHORS ChangeLog NEWS README.md | |
175 | %attr(755,root,root) %{_bindir}/mate-dictionary | |
176 | %attr(755,root,root) %{_bindir}/mate-disk-image-mounter | |
177 | %attr(755,root,root) %{_bindir}/mate-disk-usage-analyzer | |
178 | %attr(755,root,root) %{_bindir}/mate-search-tool | |
179 | %attr(755,root,root) %{_bindir}/mate-system-log | |
180 | %attr(755,root,root) %{matepanel_libexecdir}/mate-dictionary-applet | |
181 | %{_datadir}/metainfo/mate-dictionary.appdata.xml | |
182 | %{_datadir}/metainfo/mate-disk-usage-analyzer.appdata.xml | |
183 | %{_datadir}/metainfo/mate-search-tool.appdata.xml | |
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 | |
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 | |
191 | %{_datadir}/mate-panel/applets/org.mate.DictionaryApplet.mate-panel-applet | |
192 | %{_desktopdir}/mate-dictionary.desktop | |
193 | %{_desktopdir}/mate-disk-image-mounter.desktop | |
194 | %{_desktopdir}/mate-disk-usage-analyzer.desktop | |
195 | %{_desktopdir}/mate-search-tool.desktop | |
196 | %{_desktopdir}/mate-system-log.desktop | |
197 | %{_iconsdir}/hicolor/*/apps/mate-disk-usage-analyzer.* | |
198 | %{_iconsdir}/hicolor/*/apps/mate-system-log.png | |
199 | %{_iconsdir}/hicolor/scalable/apps/mate-system-log-symbolic.svg | |
200 | %{_pixmapsdir}/mate-search-tool | |
201 | %{_mandir}/man1/mate-dictionary.1* | |
202 | %{_mandir}/man1/mate-disk-usage-analyzer.1* | |
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 | |
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 | |
225 | %{_datadir}/metainfo/mate-screenshot.appdata.xml | |
226 | %{_datadir}/glib-2.0/schemas/org.mate.screenshot.gschema.xml | |
227 | %{_desktopdir}/mate-screenshot.desktop | |
228 | %{_mandir}/man1/mate-panel-screenshot.1* | |
229 | %{_mandir}/man1/mate-screenshot.1* |