]>
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 |
682ff86c | 8 | Version: 1.26.0 |
8c995a73 | 9 | Release: 1 |
42e349cc | 10 | License: GPL v2+ and LGPL v2+ |
e7b9e0a5 | 11 | Group: X11/Applications |
682ff86c JP |
12 | Source0: https://pub.mate-desktop.org/releases/1.26/%{name}-%{version}.tar.xz |
13 | # Source0-md5: 21f042e314fdafd831c202332ad8f29c | |
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 |
682ff86c | 36 | BuildRequires: xorg-lib-libICE-devel |
42e349cc | 37 | BuildRequires: xorg-lib-libSM-devel |
72c3f355 JB |
38 | BuildRequires: xorg-lib-libX11-devel |
39 | BuildRequires: xorg-lib-libXext-devel | |
40 | BuildRequires: xorg-lib-libXrender-devel | |
f9635477 | 41 | BuildRequires: xz |
a255ed33 | 42 | Requires(post,postun): gtk-update-icon-cache |
72c3f355 JB |
43 | Requires: %{name}-libs = %{version}-%{release} |
44 | Requires: exempi >= 1.99.5 | |
1c6220d1 | 45 | Requires: gdk-pixbuf2 >= 2.36.5 |
e7b9e0a5 | 46 | Requires: gsettings-desktop-schemas |
e7b9e0a5 ER |
47 | Requires: gvfs |
48 | Requires: hicolor-icon-theme | |
c03518b7 | 49 | Requires: libexif >= 1:0.6.14 |
a255ed33 | 50 | Requires: libnotify >= 0.7.0 |
72c3f355 | 51 | Requires: libxml2 >= 2.4.7 |
255d5991 | 52 | Requires: mate-desktop >= 1.17.3 |
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 | |
1c6220d1 | 89 | Requires: glib2 >= 1:2.58.1 |
0e709e42 | 90 | Requires: gtk+3 >= 3.22 |
72c3f355 | 91 | Obsoletes: mate-file-manager-extensions |
bc7eafc7 | 92 | Obsoletes: mate-file-manager-libs |
e7b9e0a5 | 93 | |
72c3f355 JB |
94 | %description libs |
95 | This package provides the library used by Caja view extensions. | |
96 | ||
97 | %description libs -l pl.UTF-8 | |
98 | Ten pakiet dostarcza bibliotekę używaną przez rozszerzenia widoku | |
99 | zarządcy plików Caja. | |
e7b9e0a5 ER |
100 | |
101 | %package devel | |
bc7eafc7 JP |
102 | Summary: Support for developing caja extensions |
103 | Summary(pl.UTF-8): Pliki do tworzenia rozszerzeń caja | |
e7b9e0a5 ER |
104 | License: LGPL v2+ |
105 | Group: Development/Libraries | |
72c3f355 | 106 | Requires: %{name}-libs = %{version}-%{release} |
1c6220d1 | 107 | Requires: glib2-devel >= 1:2.58.1 |
0e709e42 | 108 | Requires: gtk+3-devel >= 3.22 |
bc7eafc7 | 109 | Obsoletes: mate-file-manager-devel |
e7b9e0a5 ER |
110 | |
111 | %description devel | |
72c3f355 JB |
112 | This package provides the header files needed for developing Caja |
113 | extensions. | |
114 | ||
115 | %description devel -l pl.UTF-8 | |
116 | Ten pakiet dostarcza pliki nagłówkowe niezbędne do tworzenia | |
117 | rozszerzeń zarządcy plików Caja. | |
e7b9e0a5 | 118 | |
42e349cc | 119 | %package apidocs |
72c3f355 JB |
120 | Summary: libcaja-extension API documentation |
121 | Summary(pl.UTF-8): Dokumentacja API biblioteki libcaja-extension | |
42e349cc ER |
122 | Group: Documentation |
123 | Requires: gtk-doc-common | |
bc7eafc7 | 124 | Obsoletes: mate-file-manager-apidocs |
e29b19ac | 125 | BuildArch: noarch |
42e349cc ER |
126 | |
127 | %description apidocs | |
72c3f355 | 128 | libcaja-extension API documentation. |
42e349cc ER |
129 | |
130 | %description apidocs -l pl.UTF-8 | |
72c3f355 | 131 | Dokumentacja API biblioteki libcaja-extension. |
42e349cc | 132 | |
e7b9e0a5 ER |
133 | %prep |
134 | %setup -q | |
135 | ||
136 | %build | |
61cad5c2 JP |
137 | %{?with_apidocs:%{__gtkdocize}} |
138 | %{__libtoolize} | |
139 | %{__aclocal} | |
61cad5c2 | 140 | %{__autoconf} |
72c3f355 | 141 | %{__autoheader} |
61cad5c2 | 142 | %{__automake} |
e7b9e0a5 | 143 | %configure \ |
72c3f355 JB |
144 | --disable-icon-update \ |
145 | --disable-schemas-compile \ | |
146 | --disable-silent-rules \ | |
e7b9e0a5 | 147 | --disable-update-mimedb \ |
e7b9e0a5 | 148 | --with-gnu-ld \ |
682ff86c | 149 | --with-html-dir=%{_gtkdocdir} |
e7b9e0a5 | 150 | |
72c3f355 | 151 | %{__make} |
e7b9e0a5 ER |
152 | |
153 | %install | |
154 | rm -rf $RPM_BUILD_ROOT | |
e0feb2e0 | 155 | |
e7b9e0a5 ER |
156 | %{__make} install \ |
157 | INSTALL="install -p" \ | |
158 | DESTDIR=$RPM_BUILD_ROOT | |
159 | ||
72c3f355 JB |
160 | # obsoleted by pkg-config |
161 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
e7b9e0a5 | 162 | |
72c3f355 | 163 | # for external extensions |
e7b9e0a5 | 164 | install -d $RPM_BUILD_ROOT%{_libdir}/caja/extensions-2.0 |
7ecd57a0 | 165 | install -d $RPM_BUILD_ROOT%{_datadir}/caja/extensions |
e7b9e0a5 ER |
166 | |
167 | desktop-file-install \ | |
168 | --delete-original \ | |
169 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
72c3f355 | 170 | $RPM_BUILD_ROOT%{_desktopdir}/*.desktop |
e7b9e0a5 | 171 | |
40e7e51a | 172 | # not supported by glibc yet |
8c995a73 | 173 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{es_ES,frp,ie,ku_IQ,pms} |
72c3f355 | 174 | |
e7b9e0a5 ER |
175 | %find_lang caja |
176 | ||
177 | %clean | |
178 | rm -rf $RPM_BUILD_ROOT | |
179 | ||
180 | %post | |
181 | %update_mime_database | |
182 | %update_icon_cache hicolor | |
183 | %glib_compile_schemas | |
184 | ||
185 | %postun | |
186 | %update_mime_database | |
187 | %update_icon_cache hicolor | |
188 | %glib_compile_schemas | |
189 | ||
72c3f355 JB |
190 | %post libs -p /sbin/ldconfig |
191 | %postun libs -p /sbin/ldconfig | |
e7b9e0a5 ER |
192 | |
193 | %files -f caja.lang | |
194 | %defattr(644,root,root,755) | |
67adeff8 | 195 | %doc AUTHORS ChangeLog NEWS README |
e7b9e0a5 ER |
196 | %attr(755,root,root) %{_bindir}/caja |
197 | %attr(755,root,root) %{_bindir}/caja-autorun-software | |
198 | %attr(755,root,root) %{_bindir}/caja-connect-server | |
199 | %attr(755,root,root) %{_bindir}/caja-file-management-properties | |
72c3f355 | 200 | %{_mandir}/man1/caja.1* |
efb08542 | 201 | %{_mandir}/man1/caja-autorun-software.1* |
72c3f355 JB |
202 | %{_mandir}/man1/caja-connect-server.1* |
203 | %{_mandir}/man1/caja-file-management-properties.1* | |
e7b9e0a5 ER |
204 | %dir %{_libdir}/caja |
205 | %dir %{_libdir}/caja/extensions-2.0 | |
72c3f355 | 206 | %{_datadir}/caja |
f716babd | 207 | %{_datadir}/metainfo/caja.appdata.xml |
f54d6dd8 | 208 | %{_datadir}/dbus-1/services/org.mate.freedesktop.FileManager1.service |
72c3f355 JB |
209 | %{_datadir}/glib-2.0/schemas/org.mate.caja.gschema.xml |
210 | %{_datadir}/glib-2.0/schemas/org.mate.media-handling.gschema.xml | |
e7b9e0a5 | 211 | %{_datadir}/mime/packages/caja.xml |
72c3f355 JB |
212 | %{_pixmapsdir}/caja |
213 | %{_desktopdir}/caja.desktop | |
214 | %{_desktopdir}/caja-autorun-software.desktop | |
215 | %{_desktopdir}/caja-browser.desktop | |
216 | %{_desktopdir}/caja-computer.desktop | |
217 | %{_desktopdir}/caja-file-management-properties.desktop | |
218 | %{_desktopdir}/caja-folder-handler.desktop | |
219 | %{_desktopdir}/caja-home.desktop | |
220 | %{_desktopdir}/mate-network-scheme.desktop | |
72c3f355 | 221 | %{_iconsdir}/hicolor/*x*/emblems/emblem-note.png |
e7b9e0a5 | 222 | |
72c3f355 | 223 | %files libs |
e7b9e0a5 ER |
224 | %defattr(644,root,root,755) |
225 | %attr(755,root,root) %{_libdir}/libcaja-extension.so.*.*.* | |
72c3f355 | 226 | %attr(755,root,root) %ghost %{_libdir}/libcaja-extension.so.1 |
e7b9e0a5 ER |
227 | %{_libdir}/girepository-1.0/Caja-2.0.typelib |
228 | ||
229 | %files devel | |
230 | %defattr(644,root,root,755) | |
72c3f355 | 231 | %attr(755,root,root) %{_libdir}/libcaja-extension.so |
e7b9e0a5 | 232 | %{_includedir}/caja |
e7b9e0a5 | 233 | %{_datadir}/gir-1.0/Caja-2.0.gir |
72c3f355 | 234 | %{_pkgconfigdir}/libcaja-extension.pc |
e7b9e0a5 | 235 | |
42e349cc ER |
236 | %if %{with apidocs} |
237 | %files apidocs | |
238 | %defattr(644,root,root,755) | |
e7b9e0a5 | 239 | %{_gtkdocdir}/libcaja-extension |
42e349cc | 240 | %endif |