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