]>
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 |
55bee479 | 5 | Release: 2 |
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} |
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 | |
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 | ||
91 | %prep | |
92 | %setup -q | |
93 | ||
94 | %build | |
f2694f37 JB |
95 | %{__gtkdocize} |
96 | %{__intltoolize} | |
97 | %{__libtoolize} | |
98 | %{__aclocal} -I m4 | |
99 | %{__autoconf} | |
100 | %{__autoheader} | |
101 | %{__automake} | |
102 | %configure \ | |
103 | --enable-gtk-doc \ | |
104 | --disable-static \ | |
105 | --with-html-dir=%{_gtkdocdir} | |
106 | ||
107 | # this package uses shave, not AM_SILENT_RULES, thus only V=1 works | |
b2dcd249 | 108 | %{__make} -j1 \ |
f2694f37 JB |
109 | V=1 |
110 | ||
111 | %install | |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | %{__make} install \ | |
114 | DESTDIR=$RPM_BUILD_ROOT | |
115 | ||
116 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmatedict.la | |
117 | ||
66e8fcd2 JP |
118 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/cmn |
119 | ||
f2694f37 JB |
120 | # mate < 1.5 did not exist in pld, avoid dependency on mate-conf |
121 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-*.convert | |
122 | ||
123 | # mate-utils gettext domain, mate-{dictionary,disk-usage,analyzer,search-tool,system-log} mate,omf dirs | |
124 | %find_lang %{name} --with-mate --with-omf --all-name | |
125 | ||
126 | %clean | |
127 | rm -rf $RPM_BUILD_ROOT | |
128 | ||
129 | %post | |
130 | %update_desktop_database | |
35729751 | 131 | %update_icon_cache hicolor |
f2694f37 JB |
132 | %glib_compile_schemas |
133 | ||
134 | %postun | |
135 | %update_desktop_database | |
35729751 | 136 | %update_icon_cache hicolor |
f2694f37 JB |
137 | %glib_compile_schemas |
138 | ||
139 | %post -n libmatedict -p /sbin/ldconfig | |
140 | %postun -n libmatedict -p /sbin/ldconfig | |
141 | ||
142 | %files -f %{name}.lang | |
143 | %defattr(644,root,root,755) | |
144 | %doc AUTHORS ChangeLog NEWS README | |
145 | %attr(755,root,root) %{_bindir}/mate-dictionary | |
146 | %attr(755,root,root) %{_bindir}/mate-disk-usage-analyzer | |
147 | %attr(755,root,root) %{_bindir}/mate-screenshot | |
148 | %attr(755,root,root) %{_bindir}/mate-search-tool | |
149 | %attr(755,root,root) %{_bindir}/mate-system-log | |
150 | %attr(755,root,root) %{_bindir}/mate-panel-screenshot | |
151 | %attr(755,root,root) %{_libexecdir}/mate-dictionary-applet | |
152 | %{_datadir}/dbus-1/services/org.mate.panel.applet.DictionaryAppletFactory.service | |
153 | %{_datadir}/glib-2.0/schemas/org.mate.dictionary.gschema.xml | |
154 | %{_datadir}/glib-2.0/schemas/org.mate.disk-usage-analyzer.gschema.xml | |
155 | %{_datadir}/glib-2.0/schemas/org.mate.screenshot.gschema.xml | |
156 | %{_datadir}/glib-2.0/schemas/org.mate.search-tool.gschema.xml | |
157 | %{_datadir}/glib-2.0/schemas/org.mate.system-log.gschema.xml | |
158 | %{_datadir}/mate-dict | |
159 | %{_datadir}/mate-dictionary | |
160 | %{_datadir}/mate-disk-usage-analyzer | |
161 | %{_datadir}/mate-panel/applets/org.mate.DictionaryApplet.mate-panel-applet | |
162 | %{_datadir}/mate-screenshot | |
163 | %{_datadir}/mate-utils | |
164 | %{_desktopdir}/mate-dictionary.desktop | |
165 | %{_desktopdir}/mate-disk-usage-analyzer.desktop | |
166 | %{_desktopdir}/mate-screenshot.desktop | |
167 | %{_desktopdir}/mate-search-tool.desktop | |
168 | %{_desktopdir}/mate-system-log.desktop | |
35729751 | 169 | %{_iconsdir}/hicolor/*/apps/mate-disk-usage-analyzer.* |
f2694f37 JB |
170 | %{_pixmapsdir}/mate-search-tool |
171 | %{_mandir}/man1/mate-dictionary.1* | |
172 | %{_mandir}/man1/mate-disk-usage-analyzer.1* | |
173 | %{_mandir}/man1/mate-screenshot.1* | |
174 | %{_mandir}/man1/mate-search-tool.1* | |
175 | %{_mandir}/man1/mate-system-log.1* | |
176 | ||
177 | %files -n libmatedict | |
178 | %defattr(644,root,root,755) | |
179 | %attr(755,root,root) %{_libdir}/libmatedict.so.*.*.* | |
180 | %attr(755,root,root) %ghost %{_libdir}/libmatedict.so.6 | |
181 | ||
182 | %files -n libmatedict-devel | |
183 | %defattr(644,root,root,755) | |
184 | %attr(755,root,root) %{_libdir}/libmatedict.so | |
185 | %{_includedir}/mate-dict | |
186 | %{_pkgconfigdir}/mate-dict.pc | |
187 | ||
188 | %files -n libmatedict-apidocs | |
189 | %defattr(644,root,root,755) | |
190 | %{_gtkdocdir}/mate-dict |