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