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