]>
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 | |
35729751 JB |
4 | Version: 1.6.1 |
5 | Release: 1 | |
f2694f37 JB |
6 | License: LGPL v2+ (libmatedict), GPL v2+ (programs), FDL (documentation) |
7 | Group: X11/Applications/Multimedia | |
8 | Source0: http://pub.mate-desktop.org/releases/1.6/%{name}-%{version}.tar.xz | |
35729751 | 9 | # Source0-md5: 936114a9cb7b42e43c56a0823cbb8258 |
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 | |
22 | BuildRequires: mate-doc-utils | |
23 | BuildRequires: mate-panel-devel >= 1.5.0 | |
24 | BuildRequires: rarian-compat | |
25 | BuildRequires: rpmbuild(find_lang) >= 1.36 | |
26 | BuildRequires: tar >= 1:1.22 | |
27 | BuildRequires: xz | |
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} |
f2694f37 JB |
37 | Requires: mate-panel >= 1.5.0 |
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 | |
67 | Requires: libmatedict = %{version}-%{release} | |
68 | Requires: glib2-devel >= 1:2.20.0 | |
69 | Requires: gtk+2-devel >= 2:2.20.0 | |
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 | |
81 | ||
82 | %description -n libmatedict-apidocs | |
83 | API documentation for libmatedict library. | |
84 | ||
85 | %description -n libmatedict-apidocs -l pl.UTF-8 | |
86 | Dokumentacja API biblioteki libmatedict. | |
87 | ||
88 | %prep | |
89 | %setup -q | |
90 | ||
91 | %build | |
92 | mate-doc-prepare --copy --force | |
93 | %{__gtkdocize} | |
94 | %{__intltoolize} | |
95 | %{__libtoolize} | |
96 | %{__aclocal} -I m4 | |
97 | %{__autoconf} | |
98 | %{__autoheader} | |
99 | %{__automake} | |
100 | %configure \ | |
101 | --enable-gtk-doc \ | |
102 | --disable-static \ | |
103 | --with-html-dir=%{_gtkdocdir} | |
104 | ||
105 | # this package uses shave, not AM_SILENT_RULES, thus only V=1 works | |
b2dcd249 | 106 | %{__make} -j1 \ |
f2694f37 JB |
107 | V=1 |
108 | ||
109 | %install | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | %{__make} install \ | |
112 | DESTDIR=$RPM_BUILD_ROOT | |
113 | ||
114 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmatedict.la | |
115 | ||
116 | # mate < 1.5 did not exist in pld, avoid dependency on mate-conf | |
117 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-*.convert | |
118 | ||
119 | # mate-utils gettext domain, mate-{dictionary,disk-usage,analyzer,search-tool,system-log} mate,omf dirs | |
120 | %find_lang %{name} --with-mate --with-omf --all-name | |
121 | ||
122 | %clean | |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
125 | %post | |
126 | %update_desktop_database | |
35729751 | 127 | %update_icon_cache hicolor |
f2694f37 JB |
128 | %glib_compile_schemas |
129 | ||
130 | %postun | |
131 | %update_desktop_database | |
35729751 | 132 | %update_icon_cache hicolor |
f2694f37 JB |
133 | %glib_compile_schemas |
134 | ||
135 | %post -n libmatedict -p /sbin/ldconfig | |
136 | %postun -n libmatedict -p /sbin/ldconfig | |
137 | ||
138 | %files -f %{name}.lang | |
139 | %defattr(644,root,root,755) | |
140 | %doc AUTHORS ChangeLog NEWS README | |
141 | %attr(755,root,root) %{_bindir}/mate-dictionary | |
142 | %attr(755,root,root) %{_bindir}/mate-disk-usage-analyzer | |
143 | %attr(755,root,root) %{_bindir}/mate-screenshot | |
144 | %attr(755,root,root) %{_bindir}/mate-search-tool | |
145 | %attr(755,root,root) %{_bindir}/mate-system-log | |
146 | %attr(755,root,root) %{_bindir}/mate-panel-screenshot | |
147 | %attr(755,root,root) %{_libexecdir}/mate-dictionary-applet | |
148 | %{_datadir}/dbus-1/services/org.mate.panel.applet.DictionaryAppletFactory.service | |
149 | %{_datadir}/glib-2.0/schemas/org.mate.dictionary.gschema.xml | |
150 | %{_datadir}/glib-2.0/schemas/org.mate.disk-usage-analyzer.gschema.xml | |
151 | %{_datadir}/glib-2.0/schemas/org.mate.screenshot.gschema.xml | |
152 | %{_datadir}/glib-2.0/schemas/org.mate.search-tool.gschema.xml | |
153 | %{_datadir}/glib-2.0/schemas/org.mate.system-log.gschema.xml | |
154 | %{_datadir}/mate-dict | |
155 | %{_datadir}/mate-dictionary | |
156 | %{_datadir}/mate-disk-usage-analyzer | |
157 | %{_datadir}/mate-panel/applets/org.mate.DictionaryApplet.mate-panel-applet | |
158 | %{_datadir}/mate-screenshot | |
159 | %{_datadir}/mate-utils | |
160 | %{_desktopdir}/mate-dictionary.desktop | |
161 | %{_desktopdir}/mate-disk-usage-analyzer.desktop | |
162 | %{_desktopdir}/mate-screenshot.desktop | |
163 | %{_desktopdir}/mate-search-tool.desktop | |
164 | %{_desktopdir}/mate-system-log.desktop | |
35729751 | 165 | %{_iconsdir}/hicolor/*/apps/mate-disk-usage-analyzer.* |
f2694f37 JB |
166 | %{_pixmapsdir}/mate-search-tool |
167 | %{_mandir}/man1/mate-dictionary.1* | |
168 | %{_mandir}/man1/mate-disk-usage-analyzer.1* | |
169 | %{_mandir}/man1/mate-screenshot.1* | |
170 | %{_mandir}/man1/mate-search-tool.1* | |
171 | %{_mandir}/man1/mate-system-log.1* | |
172 | ||
173 | %files -n libmatedict | |
174 | %defattr(644,root,root,755) | |
175 | %attr(755,root,root) %{_libdir}/libmatedict.so.*.*.* | |
176 | %attr(755,root,root) %ghost %{_libdir}/libmatedict.so.6 | |
177 | ||
178 | %files -n libmatedict-devel | |
179 | %defattr(644,root,root,755) | |
180 | %attr(755,root,root) %{_libdir}/libmatedict.so | |
181 | %{_includedir}/mate-dict | |
182 | %{_pkgconfigdir}/mate-dict.pc | |
183 | ||
184 | %files -n libmatedict-apidocs | |
185 | %defattr(644,root,root,755) | |
186 | %{_gtkdocdir}/mate-dict |