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