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