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