]>
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 | |
66e8fcd2 | 4 | Version: 1.8.0 |
d9566408 | 5 | Release: 3 |
f2694f37 JB |
6 | License: LGPL v2+ (libmatedict), GPL v2+ (programs), FDL (documentation) |
7 | Group: X11/Applications/Multimedia | |
66e8fcd2 JP |
8 | Source0: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz |
9 | # Source0-md5: 7961435ec1b5210e886c5a223b67d02a | |
f2694f37 JB |
10 | URL: https://github.com/mate-desktop/mate-utils |
11 | BuildRequires: autoconf >= 2.53 | |
12 | BuildRequires: automake >= 1:1.9 | |
13 | BuildRequires: docbook-dtd412-xml | |
14 | BuildRequires: glib2-devel >= 1:2.26.0 | |
15 | BuildRequires: gtk+2-devel >= 2:2.20.0 | |
16 | BuildRequires: gtk-doc >= 1.10 | |
17 | BuildRequires: intltool >= 0.40.0 | |
18 | BuildRequires: libcanberra-gtk-devel >= 0.4 | |
19 | BuildRequires: libgtop-devel >= 1:2.12.0 | |
20 | BuildRequires: libtool >= 1:1.4.3 | |
21 | BuildRequires: mate-common | |
f2694f37 JB |
22 | BuildRequires: mate-panel-devel >= 1.5.0 |
23 | BuildRequires: rarian-compat | |
24 | BuildRequires: rpmbuild(find_lang) >= 1.36 | |
25 | BuildRequires: tar >= 1:1.22 | |
26 | BuildRequires: xz | |
66e8fcd2 | 27 | BuildRequires: yelp-tools |
f2694f37 JB |
28 | BuildRequires: zlib-devel |
29 | Requires(post,postun): desktop-file-utils | |
30 | Requires(post,postun): glib2 >= 1:2.26.0 | |
31 | Requires(post,postun): gtk-update-icon-cache | |
32 | Requires: glib2 >= 1:2.26.0 | |
33 | Requires: gtk+2 >= 2:2.20.0 | |
35729751 | 34 | Requires: hicolor-icon-theme |
f2694f37 | 35 | Requires: libcanberra-gtk >= 0.4 |
855cd23f | 36 | Requires: libmatedict = %{version}-%{release} |
9ba7e926 | 37 | Requires: mate-panel >= 1.8.0 |
f2694f37 JB |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %define _libexecdir %{_libdir}/mate-panel | |
41 | ||
42 | %description | |
43 | MATE utility programs. | |
44 | ||
45 | %description -l pl.UTF-8 | |
46 | Programy użytkowe dla środowiska MATE. | |
47 | ||
48 | %package -n libmatedict | |
49 | Summary: MATE Dictionary Protocol client library | |
50 | Summary(pl.UTF-8): Biblioteka kliencka protokołu słownika MATE | |
51 | License: LGPL v2+ | |
52 | Group: X11/Libraries | |
53 | Requires: glib2 >= 1:2.20.0 | |
54 | Requires: gtk+2 >= 2:2.20.0 | |
55 | ||
56 | %description -n libmatedict | |
57 | MATE Dictionary Protocol client library. | |
58 | ||
59 | %description -n libmatedict -l pl.UTF-8 | |
60 | Biblioteka kliencka protokołu słownika MATE. | |
61 | ||
62 | %package -n libmatedict-devel | |
63 | Summary: Header files for libmatedict library | |
64 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmatedict | |
65 | License: LGPL v2+ | |
66 | Group: X11/Development/Libraries | |
f2694f37 JB |
67 | Requires: glib2-devel >= 1:2.20.0 |
68 | Requires: gtk+2-devel >= 2:2.20.0 | |
55bee479 | 69 | Requires: libmatedict = %{version}-%{release} |
f2694f37 JB |
70 | |
71 | %description -n libmatedict-devel | |
72 | Header files for libmatedict library. | |
73 | ||
74 | %description -n libmatedict-devel -l pl.UTF-8 | |
75 | Pliki nagłówkowe biblioteki libmatedict. | |
76 | ||
77 | %package -n libmatedict-apidocs | |
78 | Summary: API documentation for libmatedict library | |
79 | Summary(pl.UTF-8): Dokumentacja API biblioteki libmatedict | |
80 | Group: Documentation | |
55bee479 ER |
81 | %if "%{_rpmversion}" >= "5" |
82 | BuildArch: noarch | |
83 | %endif | |
f2694f37 JB |
84 | |
85 | %description -n libmatedict-apidocs | |
86 | API documentation for libmatedict library. | |
87 | ||
88 | %description -n libmatedict-apidocs -l pl.UTF-8 | |
89 | Dokumentacja API biblioteki libmatedict. | |
90 | ||
9ba7e926 ER |
91 | %package -n mate-screenshot |
92 | Summary: Screenshot utility | |
93 | Summary(pl.UTF-8): Narzędzie do robienia zrzutów ekranu | |
94 | Group: X11/Applications | |
95 | Requires(post,postun): glib2 >= 1:2.26.0 | |
96 | Requires: glib2 >= 1:2.36.0 | |
97 | Conflicts: mate-utils < 1.8.0-2.1 | |
98 | ||
99 | %description -n mate-screenshot | |
100 | Allows to make a desktop screenshot. | |
101 | ||
102 | %description -n mate-screenshot -l pl.UTF-8 | |
103 | Pozwala na zrobienie zrzutu ekranu biurka. | |
104 | ||
f2694f37 JB |
105 | %prep |
106 | %setup -q | |
107 | ||
108 | %build | |
f2694f37 JB |
109 | %{__gtkdocize} |
110 | %{__intltoolize} | |
111 | %{__libtoolize} | |
112 | %{__aclocal} -I m4 | |
113 | %{__autoconf} | |
114 | %{__autoheader} | |
115 | %{__automake} | |
116 | %configure \ | |
117 | --enable-gtk-doc \ | |
118 | --disable-static \ | |
119 | --with-html-dir=%{_gtkdocdir} | |
120 | ||
121 | # this package uses shave, not AM_SILENT_RULES, thus only V=1 works | |
b2dcd249 | 122 | %{__make} -j1 \ |
f2694f37 JB |
123 | V=1 |
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 | ||
66e8fcd2 JP |
132 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/cmn |
133 | ||
f2694f37 JB |
134 | # mate < 1.5 did not exist in pld, avoid dependency on mate-conf |
135 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-*.convert | |
136 | ||
137 | # mate-utils gettext domain, mate-{dictionary,disk-usage,analyzer,search-tool,system-log} mate,omf dirs | |
138 | %find_lang %{name} --with-mate --with-omf --all-name | |
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) | |
166 | %doc AUTHORS ChangeLog NEWS README | |
167 | %attr(755,root,root) %{_bindir}/mate-dictionary | |
168 | %attr(755,root,root) %{_bindir}/mate-disk-usage-analyzer | |
f2694f37 JB |
169 | %attr(755,root,root) %{_bindir}/mate-search-tool |
170 | %attr(755,root,root) %{_bindir}/mate-system-log | |
f2694f37 JB |
171 | %attr(755,root,root) %{_libexecdir}/mate-dictionary-applet |
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.* |
f2694f37 JB |
187 | %{_pixmapsdir}/mate-search-tool |
188 | %{_mandir}/man1/mate-dictionary.1* | |
189 | %{_mandir}/man1/mate-disk-usage-analyzer.1* | |
f2694f37 JB |
190 | %{_mandir}/man1/mate-search-tool.1* |
191 | %{_mandir}/man1/mate-system-log.1* | |
192 | ||
193 | %files -n libmatedict | |
194 | %defattr(644,root,root,755) | |
195 | %attr(755,root,root) %{_libdir}/libmatedict.so.*.*.* | |
196 | %attr(755,root,root) %ghost %{_libdir}/libmatedict.so.6 | |
197 | ||
198 | %files -n libmatedict-devel | |
199 | %defattr(644,root,root,755) | |
200 | %attr(755,root,root) %{_libdir}/libmatedict.so | |
201 | %{_includedir}/mate-dict | |
202 | %{_pkgconfigdir}/mate-dict.pc | |
203 | ||
204 | %files -n libmatedict-apidocs | |
205 | %defattr(644,root,root,755) | |
206 | %{_gtkdocdir}/mate-dict | |
9ba7e926 ER |
207 | |
208 | %files -n mate-screenshot | |
209 | %defattr(644,root,root,755) | |
210 | %attr(755,root,root) %{_bindir}/mate-panel-screenshot | |
211 | %attr(755,root,root) %{_bindir}/mate-screenshot | |
212 | %{_datadir}/glib-2.0/schemas/org.mate.screenshot.gschema.xml | |
213 | %{_datadir}/mate-screenshot | |
214 | %{_desktopdir}/mate-screenshot.desktop | |
215 | %{_mandir}/man1/mate-screenshot.1* |