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