]>
Commit | Line | Data |
---|---|---|
42e349cc ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable gtk-doc | |
72c3f355 | 4 | %bcond_with gtk3 # use GTK+ 3.x instead of 2.x |
e7b9e0a5 ER |
5 | |
6 | Summary: File manager for MATE | |
72c3f355 | 7 | Summary(pl.UTF-8): Zarządca plików dla środowiska MATE |
bc7eafc7 | 8 | Name: caja |
ed24cb38 JP |
9 | Version: 1.8.1 |
10 | Release: 1 | |
42e349cc | 11 | License: GPL v2+ and LGPL v2+ |
e7b9e0a5 | 12 | Group: X11/Applications |
bc7eafc7 | 13 | Source0: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz |
ed24cb38 | 14 | # Source0-md5: e81bbec307c8aafd9663f4927f309ba4 |
5597a9d5 | 15 | URL: http://wiki.mate-desktop.org/mate-file-manager |
72c3f355 JB |
16 | BuildRequires: autoconf >= 2.54 |
17 | BuildRequires: automake >= 1:1.9 | |
42e349cc | 18 | BuildRequires: cairo-gobject-devel |
e7b9e0a5 | 19 | BuildRequires: desktop-file-utils |
72c3f355 JB |
20 | BuildRequires: exempi-devel >= 1.99.5 |
21 | BuildRequires: gettext-devel | |
c65584f2 | 22 | BuildRequires: glib2-devel >= 1:2.28.0 |
72c3f355 JB |
23 | BuildRequires: gobject-introspection-devel >= 0.6.4 |
24 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.24.0} | |
25 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0} | |
26 | BuildRequires: gtk-doc >= 1.4 | |
27 | BuildRequires: intltool >= 0.40.1 | |
28 | BuildRequires: libexif-devel >= 0.5.12 | |
42e349cc | 29 | BuildRequires: libselinux-devel |
72c3f355 JB |
30 | %{!?with_gtk3:BuildRequires: libunique-devel >= 1.0} |
31 | %{?with_gtk3:BuildRequires: libunique3-devel >= 3.0} | |
32 | BuildRequires: libxml2-devel >= 2.4.7 | |
e7b9e0a5 | 33 | BuildRequires: mate-common |
bc7eafc7 | 34 | BuildRequires: mate-desktop-devel >= 1.7.1 |
72c3f355 | 35 | BuildRequires: pango-devel >= 1:1.1.2 |
e7b9e0a5 | 36 | BuildRequires: pangox-compat-devel |
72c3f355 JB |
37 | BuildRequires: perl-base |
38 | BuildRequires: pkgconfig | |
f9635477 | 39 | BuildRequires: tar >= 1:1.22 |
42e349cc | 40 | BuildRequires: xorg-lib-libSM-devel |
72c3f355 JB |
41 | BuildRequires: xorg-lib-libX11-devel |
42 | BuildRequires: xorg-lib-libXext-devel | |
43 | BuildRequires: xorg-lib-libXrender-devel | |
f9635477 | 44 | BuildRequires: xz |
72c3f355 JB |
45 | Requires: %{name}-libs = %{version}-%{release} |
46 | Requires: exempi >= 1.99.5 | |
e7b9e0a5 ER |
47 | Requires: gsettings-desktop-schemas |
48 | Requires: gtk-update-icon-cache | |
49 | Requires: gvfs | |
50 | Requires: hicolor-icon-theme | |
72c3f355 JB |
51 | Requires: libexif >= 0.5.12 |
52 | Requires: libxml2 >= 2.4.7 | |
eb42d83f | 53 | Requires: mate-desktop >= 1.7.1 |
e7b9e0a5 | 54 | Requires: mate-icon-theme |
72c3f355 | 55 | Requires: pango >= 1:1.1.2 |
e7b9e0a5 | 56 | Requires: shared-mime-info |
1fe0c1be ER |
57 | Suggests: caja-extension-atril |
58 | Suggests: caja-extension-engrampa | |
59 | Suggests: caja-extension-gksu | |
60 | Suggests: caja-extension-image-converter | |
61 | Suggests: caja-extension-open-terminal | |
62 | Suggests: caja-extension-sendto | |
63 | Suggests: caja-extension-share | |
64 | Suggests: caja-extension-shares | |
2f0046ef | 65 | Suggests: mate-backgrounds |
bc7eafc7 | 66 | Obsoletes: mate-file-manager |
2f0046ef | 67 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e7b9e0a5 ER |
68 | |
69 | %description | |
bc7eafc7 JP |
70 | Caja is the file manager and graphical shell for the MATE desktop, |
71 | that makes it easy to manage your files and the rest of your system. | |
72 | It allows to browse directories on local and remote file systems, | |
73 | preview files and launch applications associated with them. It is also | |
74 | responsible for handling the icons on the MATE desktop. Caja is a fork | |
75 | of Nautilus from GNOME. | |
72c3f355 JB |
76 | |
77 | %description -l pl.UTF-8 | |
bc7eafc7 JP |
78 | Caja to zarządca plików i graficzna powłoka dla środowiska graficznego |
79 | MATE. Ułatwia zarządzanie plikami i resztą systemu. Umożliwia | |
80 | przeglądanie katalogów na lokalnych i zdalnych systemach plików, | |
81 | podgląd plików oraz uruchamianie aplikacji powiązanych z nimi. | |
82 | Odpowiada także za obsługę ikon w środowisku MATE. Caja to | |
83 | odgałęzienie Nautilusa z GNOME. | |
72c3f355 JB |
84 | |
85 | %package libs | |
bc7eafc7 JP |
86 | Summary: Library for caja extensions |
87 | Summary(pl.UTF-8): Biblioteka dla rozszerzeń caja | |
e7b9e0a5 ER |
88 | License: LGPL v2+ |
89 | Group: Development/Libraries | |
72c3f355 JB |
90 | Requires: glib2 >= 1:2.28.0 |
91 | %{!?with_gtk3:Requires: gtk+2 >= 2:2.24.0} | |
92 | %{?with_gtk3:Requires: gtk+3 >= 3.0.0} | |
93 | Obsoletes: mate-file-manager-extensions | |
bc7eafc7 | 94 | Obsoletes: mate-file-manager-libs |
e7b9e0a5 | 95 | |
72c3f355 JB |
96 | %description libs |
97 | This package provides the library used by Caja view extensions. | |
98 | ||
99 | %description libs -l pl.UTF-8 | |
100 | Ten pakiet dostarcza bibliotekę używaną przez rozszerzenia widoku | |
101 | zarządcy plików Caja. | |
e7b9e0a5 ER |
102 | |
103 | %package devel | |
bc7eafc7 JP |
104 | Summary: Support for developing caja extensions |
105 | Summary(pl.UTF-8): Pliki do tworzenia rozszerzeń caja | |
e7b9e0a5 ER |
106 | License: LGPL v2+ |
107 | Group: Development/Libraries | |
72c3f355 JB |
108 | Requires: %{name}-libs = %{version}-%{release} |
109 | Requires: glib2-devel >= 1:2.28.0 | |
110 | %{!?with_gtk3:Requires: gtk+2-devel >= 2:2.24.0} | |
111 | %{?with_gtk3:Requires: gtk+3-devel >= 3.0.0} | |
bc7eafc7 | 112 | Obsoletes: mate-file-manager-devel |
e7b9e0a5 ER |
113 | |
114 | %description devel | |
72c3f355 JB |
115 | This package provides the header files needed for developing Caja |
116 | extensions. | |
117 | ||
118 | %description devel -l pl.UTF-8 | |
119 | Ten pakiet dostarcza pliki nagłówkowe niezbędne do tworzenia | |
120 | rozszerzeń zarządcy plików Caja. | |
e7b9e0a5 | 121 | |
42e349cc | 122 | %package apidocs |
72c3f355 JB |
123 | Summary: libcaja-extension API documentation |
124 | Summary(pl.UTF-8): Dokumentacja API biblioteki libcaja-extension | |
42e349cc ER |
125 | Group: Documentation |
126 | Requires: gtk-doc-common | |
bc7eafc7 | 127 | Obsoletes: mate-file-manager-apidocs |
e29b19ac ER |
128 | %if "%{_rpmversion}" >= "5" |
129 | BuildArch: noarch | |
130 | %endif | |
42e349cc ER |
131 | |
132 | %description apidocs | |
72c3f355 | 133 | libcaja-extension API documentation. |
42e349cc ER |
134 | |
135 | %description apidocs -l pl.UTF-8 | |
72c3f355 | 136 | Dokumentacja API biblioteki libcaja-extension. |
42e349cc | 137 | |
e7b9e0a5 ER |
138 | %prep |
139 | %setup -q | |
140 | ||
141 | %build | |
61cad5c2 JP |
142 | %{__intltoolize} |
143 | %{?with_apidocs:%{__gtkdocize}} | |
144 | %{__libtoolize} | |
145 | %{__aclocal} | |
61cad5c2 | 146 | %{__autoconf} |
72c3f355 | 147 | %{__autoheader} |
61cad5c2 | 148 | %{__automake} |
e7b9e0a5 | 149 | %configure \ |
72c3f355 JB |
150 | --disable-icon-update \ |
151 | --disable-schemas-compile \ | |
152 | --disable-silent-rules \ | |
e7b9e0a5 ER |
153 | --enable-unique \ |
154 | --disable-update-mimedb \ | |
e7b9e0a5 | 155 | --with-gnu-ld \ |
72c3f355 JB |
156 | %{?with_gtk3:--with-gtk=3.0} \ |
157 | --with-html-dir=%{_gtkdocdir} \ | |
158 | --with-x | |
e7b9e0a5 | 159 | |
72c3f355 | 160 | %{__make} |
e7b9e0a5 ER |
161 | |
162 | %install | |
163 | rm -rf $RPM_BUILD_ROOT | |
164 | %{__make} install \ | |
165 | INSTALL="install -p" \ | |
166 | DESTDIR=$RPM_BUILD_ROOT | |
167 | ||
72c3f355 JB |
168 | # obsoleted by pkg-config |
169 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
e7b9e0a5 | 170 | |
72c3f355 | 171 | # mate < 1.5 did not exist in PLD, avoid dependency on mate-conf |
5597a9d5 | 172 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/caja.convert |
e7b9e0a5 | 173 | |
72c3f355 | 174 | # for external extensions |
e7b9e0a5 ER |
175 | install -d $RPM_BUILD_ROOT%{_libdir}/caja/extensions-2.0 |
176 | ||
177 | desktop-file-install \ | |
178 | --delete-original \ | |
179 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
72c3f355 | 180 | $RPM_BUILD_ROOT%{_desktopdir}/*.desktop |
e7b9e0a5 | 181 | |
40e7e51a | 182 | # not supported by glibc yet |
e7b9e0a5 | 183 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/io |
40e7e51a JB |
184 | # update naming convention |
185 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr@ije,sr@ijekavian} | |
72c3f355 | 186 | |
e7b9e0a5 ER |
187 | %find_lang caja |
188 | ||
189 | %clean | |
190 | rm -rf $RPM_BUILD_ROOT | |
191 | ||
192 | %post | |
193 | %update_mime_database | |
194 | %update_icon_cache hicolor | |
195 | %glib_compile_schemas | |
196 | ||
197 | %postun | |
198 | %update_mime_database | |
199 | %update_icon_cache hicolor | |
200 | %glib_compile_schemas | |
201 | ||
72c3f355 JB |
202 | %post libs -p /sbin/ldconfig |
203 | %postun libs -p /sbin/ldconfig | |
e7b9e0a5 ER |
204 | |
205 | %files -f caja.lang | |
206 | %defattr(644,root,root,755) | |
72c3f355 | 207 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README THANKS TODO |
e7b9e0a5 ER |
208 | %attr(755,root,root) %{_bindir}/caja |
209 | %attr(755,root,root) %{_bindir}/caja-autorun-software | |
210 | %attr(755,root,root) %{_bindir}/caja-connect-server | |
211 | %attr(755,root,root) %{_bindir}/caja-file-management-properties | |
72c3f355 | 212 | %{_mandir}/man1/caja.1* |
efb08542 | 213 | %{_mandir}/man1/caja-autorun-software.1* |
72c3f355 JB |
214 | %{_mandir}/man1/caja-connect-server.1* |
215 | %{_mandir}/man1/caja-file-management-properties.1* | |
216 | %attr(755,root,root) %{_libexecdir}/caja-convert-metadata | |
e7b9e0a5 ER |
217 | %dir %{_libdir}/caja |
218 | %dir %{_libdir}/caja/extensions-2.0 | |
72c3f355 | 219 | %{_datadir}/caja |
f54d6dd8 | 220 | %{_datadir}/dbus-1/services/org.mate.freedesktop.FileManager1.service |
72c3f355 JB |
221 | %{_datadir}/glib-2.0/schemas/org.mate.caja.gschema.xml |
222 | %{_datadir}/glib-2.0/schemas/org.mate.media-handling.gschema.xml | |
e7b9e0a5 | 223 | %{_datadir}/mime/packages/caja.xml |
72c3f355 JB |
224 | %{_pixmapsdir}/caja |
225 | %{_desktopdir}/caja.desktop | |
226 | %{_desktopdir}/caja-autorun-software.desktop | |
227 | %{_desktopdir}/caja-browser.desktop | |
228 | %{_desktopdir}/caja-computer.desktop | |
229 | %{_desktopdir}/caja-file-management-properties.desktop | |
230 | %{_desktopdir}/caja-folder-handler.desktop | |
231 | %{_desktopdir}/caja-home.desktop | |
232 | %{_desktopdir}/mate-network-scheme.desktop | |
233 | %{_iconsdir}/hicolor/*x*/apps/caja.png | |
234 | %{_iconsdir}/hicolor/*x*/emblems/emblem-note.png | |
235 | %{_iconsdir}/hicolor/scalable/apps/caja.svg | |
e7b9e0a5 | 236 | |
72c3f355 | 237 | %files libs |
e7b9e0a5 ER |
238 | %defattr(644,root,root,755) |
239 | %attr(755,root,root) %{_libdir}/libcaja-extension.so.*.*.* | |
72c3f355 | 240 | %attr(755,root,root) %ghost %{_libdir}/libcaja-extension.so.1 |
e7b9e0a5 ER |
241 | %{_libdir}/girepository-1.0/Caja-2.0.typelib |
242 | ||
243 | %files devel | |
244 | %defattr(644,root,root,755) | |
72c3f355 | 245 | %attr(755,root,root) %{_libdir}/libcaja-extension.so |
e7b9e0a5 | 246 | %{_includedir}/caja |
e7b9e0a5 | 247 | %{_datadir}/gir-1.0/Caja-2.0.gir |
72c3f355 | 248 | %{_pkgconfigdir}/libcaja-extension.pc |
e7b9e0a5 | 249 | |
42e349cc ER |
250 | %if %{with apidocs} |
251 | %files apidocs | |
252 | %defattr(644,root,root,755) | |
e7b9e0a5 | 253 | %{_gtkdocdir}/libcaja-extension |
42e349cc | 254 | %endif |