]>
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 |
8887922c | 8 | Version: 1.22.1 |
a511d13a | 9 | Release: 2 |
42e349cc | 10 | License: GPL v2+ and LGPL v2+ |
e7b9e0a5 | 11 | Group: X11/Applications |
f716babd | 12 | Source0: http://pub.mate-desktop.org/releases/1.22/%{name}-%{version}.tar.xz |
8887922c | 13 | # Source0-md5: 207227b8ae0e2bf45b73f8e8af117e67 |
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 |
9bf8de2a | 20 | BuildRequires: gettext-tools |
0e709e42 | 21 | BuildRequires: glib2-devel >= 1:2.50.0 |
72c3f355 | 22 | BuildRequires: gobject-introspection-devel >= 0.6.4 |
0e709e42 | 23 | BuildRequires: gtk+3-devel >= 3.22 |
72c3f355 | 24 | BuildRequires: gtk-doc >= 1.4 |
a70b1b18 | 25 | BuildRequires: intltool >= 0.50.1 |
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 | |
e7b9e0a5 | 44 | Requires: gsettings-desktop-schemas |
e7b9e0a5 ER |
45 | Requires: gvfs |
46 | Requires: hicolor-icon-theme | |
c03518b7 | 47 | Requires: libexif >= 1:0.6.14 |
a255ed33 | 48 | Requires: libnotify >= 0.7.0 |
72c3f355 | 49 | Requires: libxml2 >= 2.4.7 |
255d5991 | 50 | Requires: mate-desktop >= 1.17.3 |
e7b9e0a5 | 51 | Requires: mate-icon-theme |
72c3f355 | 52 | Requires: pango >= 1:1.1.2 |
e7b9e0a5 | 53 | Requires: shared-mime-info |
1fe0c1be ER |
54 | Suggests: caja-extension-atril |
55 | Suggests: caja-extension-engrampa | |
56 | Suggests: caja-extension-gksu | |
57 | Suggests: caja-extension-image-converter | |
58 | Suggests: caja-extension-open-terminal | |
59 | Suggests: caja-extension-sendto | |
60 | Suggests: caja-extension-share | |
61 | Suggests: caja-extension-shares | |
2f0046ef | 62 | Suggests: mate-backgrounds |
bc7eafc7 | 63 | Obsoletes: mate-file-manager |
2f0046ef | 64 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e7b9e0a5 ER |
65 | |
66 | %description | |
bc7eafc7 JP |
67 | Caja is the file manager and graphical shell for the MATE desktop, |
68 | that makes it easy to manage your files and the rest of your system. | |
69 | It allows to browse directories on local and remote file systems, | |
70 | preview files and launch applications associated with them. It is also | |
71 | responsible for handling the icons on the MATE desktop. Caja is a fork | |
72 | of Nautilus from GNOME. | |
72c3f355 JB |
73 | |
74 | %description -l pl.UTF-8 | |
bc7eafc7 JP |
75 | Caja to zarządca plików i graficzna powłoka dla środowiska graficznego |
76 | MATE. Ułatwia zarządzanie plikami i resztą systemu. Umożliwia | |
77 | przeglądanie katalogów na lokalnych i zdalnych systemach plików, | |
78 | podgląd plików oraz uruchamianie aplikacji powiązanych z nimi. | |
79 | Odpowiada także za obsługę ikon w środowisku MATE. Caja to | |
80 | odgałęzienie Nautilusa z GNOME. | |
72c3f355 JB |
81 | |
82 | %package libs | |
bc7eafc7 JP |
83 | Summary: Library for caja extensions |
84 | Summary(pl.UTF-8): Biblioteka dla rozszerzeń caja | |
e7b9e0a5 ER |
85 | License: LGPL v2+ |
86 | Group: Development/Libraries | |
0e709e42 JP |
87 | Requires: glib2 >= 1:2.50.0 |
88 | Requires: gtk+3 >= 3.22 | |
72c3f355 | 89 | Obsoletes: mate-file-manager-extensions |
bc7eafc7 | 90 | Obsoletes: mate-file-manager-libs |
e7b9e0a5 | 91 | |
72c3f355 JB |
92 | %description libs |
93 | This package provides the library used by Caja view extensions. | |
94 | ||
95 | %description libs -l pl.UTF-8 | |
96 | Ten pakiet dostarcza bibliotekę używaną przez rozszerzenia widoku | |
97 | zarządcy plików Caja. | |
e7b9e0a5 ER |
98 | |
99 | %package devel | |
bc7eafc7 JP |
100 | Summary: Support for developing caja extensions |
101 | Summary(pl.UTF-8): Pliki do tworzenia rozszerzeń caja | |
e7b9e0a5 ER |
102 | License: LGPL v2+ |
103 | Group: Development/Libraries | |
72c3f355 | 104 | Requires: %{name}-libs = %{version}-%{release} |
0e709e42 JP |
105 | Requires: glib2-devel >= 1:2.50.0 |
106 | Requires: gtk+3-devel >= 3.22 | |
bc7eafc7 | 107 | Obsoletes: mate-file-manager-devel |
e7b9e0a5 ER |
108 | |
109 | %description devel | |
72c3f355 JB |
110 | This package provides the header files needed for developing Caja |
111 | extensions. | |
112 | ||
113 | %description devel -l pl.UTF-8 | |
114 | Ten pakiet dostarcza pliki nagłówkowe niezbędne do tworzenia | |
115 | rozszerzeń zarządcy plików Caja. | |
e7b9e0a5 | 116 | |
42e349cc | 117 | %package apidocs |
72c3f355 JB |
118 | Summary: libcaja-extension API documentation |
119 | Summary(pl.UTF-8): Dokumentacja API biblioteki libcaja-extension | |
42e349cc ER |
120 | Group: Documentation |
121 | Requires: gtk-doc-common | |
bc7eafc7 | 122 | Obsoletes: mate-file-manager-apidocs |
e29b19ac ER |
123 | %if "%{_rpmversion}" >= "5" |
124 | BuildArch: noarch | |
125 | %endif | |
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 | %{__intltoolize} |
138 | %{?with_apidocs:%{__gtkdocize}} | |
139 | %{__libtoolize} | |
140 | %{__aclocal} | |
61cad5c2 | 141 | %{__autoconf} |
72c3f355 | 142 | %{__autoheader} |
61cad5c2 | 143 | %{__automake} |
e7b9e0a5 | 144 | %configure \ |
72c3f355 JB |
145 | --disable-icon-update \ |
146 | --disable-schemas-compile \ | |
147 | --disable-silent-rules \ | |
e7b9e0a5 ER |
148 | --enable-unique \ |
149 | --disable-update-mimedb \ | |
e7b9e0a5 | 150 | --with-gnu-ld \ |
72c3f355 JB |
151 | --with-html-dir=%{_gtkdocdir} \ |
152 | --with-x | |
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 |
555df801 | 176 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{es_ES,frp,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 | |
187 | ||
188 | %postun | |
189 | %update_mime_database | |
190 | %update_icon_cache hicolor | |
191 | %glib_compile_schemas | |
192 | ||
72c3f355 JB |
193 | %post libs -p /sbin/ldconfig |
194 | %postun libs -p /sbin/ldconfig | |
e7b9e0a5 ER |
195 | |
196 | %files -f caja.lang | |
197 | %defattr(644,root,root,755) | |
67adeff8 | 198 | %doc AUTHORS ChangeLog NEWS README |
e7b9e0a5 ER |
199 | %attr(755,root,root) %{_bindir}/caja |
200 | %attr(755,root,root) %{_bindir}/caja-autorun-software | |
201 | %attr(755,root,root) %{_bindir}/caja-connect-server | |
202 | %attr(755,root,root) %{_bindir}/caja-file-management-properties | |
72c3f355 | 203 | %{_mandir}/man1/caja.1* |
efb08542 | 204 | %{_mandir}/man1/caja-autorun-software.1* |
72c3f355 JB |
205 | %{_mandir}/man1/caja-connect-server.1* |
206 | %{_mandir}/man1/caja-file-management-properties.1* | |
e7b9e0a5 ER |
207 | %dir %{_libdir}/caja |
208 | %dir %{_libdir}/caja/extensions-2.0 | |
72c3f355 | 209 | %{_datadir}/caja |
f716babd | 210 | %{_datadir}/metainfo/caja.appdata.xml |
f54d6dd8 | 211 | %{_datadir}/dbus-1/services/org.mate.freedesktop.FileManager1.service |
72c3f355 JB |
212 | %{_datadir}/glib-2.0/schemas/org.mate.caja.gschema.xml |
213 | %{_datadir}/glib-2.0/schemas/org.mate.media-handling.gschema.xml | |
e7b9e0a5 | 214 | %{_datadir}/mime/packages/caja.xml |
72c3f355 JB |
215 | %{_pixmapsdir}/caja |
216 | %{_desktopdir}/caja.desktop | |
217 | %{_desktopdir}/caja-autorun-software.desktop | |
218 | %{_desktopdir}/caja-browser.desktop | |
219 | %{_desktopdir}/caja-computer.desktop | |
220 | %{_desktopdir}/caja-file-management-properties.desktop | |
221 | %{_desktopdir}/caja-folder-handler.desktop | |
222 | %{_desktopdir}/caja-home.desktop | |
223 | %{_desktopdir}/mate-network-scheme.desktop | |
72c3f355 | 224 | %{_iconsdir}/hicolor/*x*/emblems/emblem-note.png |
e7b9e0a5 | 225 | |
72c3f355 | 226 | %files libs |
e7b9e0a5 ER |
227 | %defattr(644,root,root,755) |
228 | %attr(755,root,root) %{_libdir}/libcaja-extension.so.*.*.* | |
72c3f355 | 229 | %attr(755,root,root) %ghost %{_libdir}/libcaja-extension.so.1 |
e7b9e0a5 ER |
230 | %{_libdir}/girepository-1.0/Caja-2.0.typelib |
231 | ||
232 | %files devel | |
233 | %defattr(644,root,root,755) | |
72c3f355 | 234 | %attr(755,root,root) %{_libdir}/libcaja-extension.so |
e7b9e0a5 | 235 | %{_includedir}/caja |
e7b9e0a5 | 236 | %{_datadir}/gir-1.0/Caja-2.0.gir |
72c3f355 | 237 | %{_pkgconfigdir}/libcaja-extension.pc |
e7b9e0a5 | 238 | |
42e349cc ER |
239 | %if %{with apidocs} |
240 | %files apidocs | |
241 | %defattr(644,root,root,755) | |
e7b9e0a5 | 242 | %{_gtkdocdir}/libcaja-extension |
42e349cc | 243 | %endif |