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