]>
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 JP |
8 | Name: caja |
9 | Version: 1.8.0 | |
efb08542 | 10 | Release: 1 |
42e349cc | 11 | License: GPL v2+ and LGPL v2+ |
e7b9e0a5 | 12 | Group: X11/Applications |
bc7eafc7 JP |
13 | Source0: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz |
14 | # Source0-md5: f0f93c23c7b666372441e9ddb390c743 | |
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 JB |
20 | BuildRequires: exempi-devel >= 1.99.5 |
21 | BuildRequires: gettext-devel | |
c65584f2 | 22 | BuildRequires: glib2-devel >= 1:2.28.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 | |
28 | BuildRequires: libexif-devel >= 0.5.12 | |
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 |
bc7eafc7 | 34 | BuildRequires: mate-desktop-devel >= 1.7.1 |
72c3f355 | 35 | BuildRequires: pango-devel >= 1:1.1.2 |
e7b9e0a5 | 36 | BuildRequires: pangox-compat-devel |
72c3f355 JB |
37 | BuildRequires: perl-base |
38 | BuildRequires: pkgconfig | |
f9635477 | 39 | BuildRequires: tar >= 1:1.22 |
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 |
72c3f355 JB |
45 | Requires: %{name}-libs = %{version}-%{release} |
46 | Requires: exempi >= 1.99.5 | |
e7b9e0a5 ER |
47 | Requires: gsettings-desktop-schemas |
48 | Requires: gtk-update-icon-cache | |
49 | Requires: gvfs | |
50 | Requires: hicolor-icon-theme | |
72c3f355 JB |
51 | Requires: libexif >= 0.5.12 |
52 | Requires: libxml2 >= 2.4.7 | |
53 | Requires: mate-desktop >= 1.5.0 | |
e7b9e0a5 | 54 | Requires: mate-icon-theme |
72c3f355 | 55 | Requires: pango >= 1:1.1.2 |
e7b9e0a5 | 56 | Requires: shared-mime-info |
2f0046ef | 57 | Suggests: mate-backgrounds |
bc7eafc7 | 58 | Obsoletes: mate-file-manager |
2f0046ef | 59 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e7b9e0a5 ER |
60 | |
61 | %description | |
bc7eafc7 JP |
62 | Caja is the file manager and graphical shell for the MATE desktop, |
63 | that makes it easy to manage your files and the rest of your system. | |
64 | It allows to browse directories on local and remote file systems, | |
65 | preview files and launch applications associated with them. It is also | |
66 | responsible for handling the icons on the MATE desktop. Caja is a fork | |
67 | of Nautilus from GNOME. | |
72c3f355 JB |
68 | |
69 | %description -l pl.UTF-8 | |
bc7eafc7 JP |
70 | Caja to zarządca plików i graficzna powłoka dla środowiska graficznego |
71 | MATE. Ułatwia zarządzanie plikami i resztą systemu. Umożliwia | |
72 | przeglądanie katalogów na lokalnych i zdalnych systemach plików, | |
73 | podgląd plików oraz uruchamianie aplikacji powiązanych z nimi. | |
74 | Odpowiada także za obsługę ikon w środowisku MATE. Caja to | |
75 | odgałęzienie Nautilusa z GNOME. | |
72c3f355 JB |
76 | |
77 | %package libs | |
bc7eafc7 JP |
78 | Summary: Library for caja extensions |
79 | Summary(pl.UTF-8): Biblioteka dla rozszerzeń caja | |
e7b9e0a5 ER |
80 | License: LGPL v2+ |
81 | Group: Development/Libraries | |
72c3f355 JB |
82 | Requires: glib2 >= 1:2.28.0 |
83 | %{!?with_gtk3:Requires: gtk+2 >= 2:2.24.0} | |
84 | %{?with_gtk3:Requires: gtk+3 >= 3.0.0} | |
85 | Obsoletes: mate-file-manager-extensions | |
bc7eafc7 | 86 | Obsoletes: mate-file-manager-libs |
e7b9e0a5 | 87 | |
72c3f355 JB |
88 | %description libs |
89 | This package provides the library used by Caja view extensions. | |
90 | ||
91 | %description libs -l pl.UTF-8 | |
92 | Ten pakiet dostarcza bibliotekę używaną przez rozszerzenia widoku | |
93 | zarządcy plików Caja. | |
e7b9e0a5 ER |
94 | |
95 | %package devel | |
bc7eafc7 JP |
96 | Summary: Support for developing caja extensions |
97 | Summary(pl.UTF-8): Pliki do tworzenia rozszerzeń caja | |
e7b9e0a5 ER |
98 | License: LGPL v2+ |
99 | Group: Development/Libraries | |
72c3f355 JB |
100 | Requires: %{name}-libs = %{version}-%{release} |
101 | Requires: glib2-devel >= 1:2.28.0 | |
102 | %{!?with_gtk3:Requires: gtk+2-devel >= 2:2.24.0} | |
103 | %{?with_gtk3:Requires: gtk+3-devel >= 3.0.0} | |
bc7eafc7 | 104 | Obsoletes: mate-file-manager-devel |
e7b9e0a5 ER |
105 | |
106 | %description devel | |
72c3f355 JB |
107 | This package provides the header files needed for developing Caja |
108 | extensions. | |
109 | ||
110 | %description devel -l pl.UTF-8 | |
111 | Ten pakiet dostarcza pliki nagłówkowe niezbędne do tworzenia | |
112 | rozszerzeń zarządcy plików Caja. | |
e7b9e0a5 | 113 | |
42e349cc | 114 | %package apidocs |
72c3f355 JB |
115 | Summary: libcaja-extension API documentation |
116 | Summary(pl.UTF-8): Dokumentacja API biblioteki libcaja-extension | |
42e349cc ER |
117 | Group: Documentation |
118 | Requires: gtk-doc-common | |
bc7eafc7 | 119 | Obsoletes: mate-file-manager-apidocs |
42e349cc ER |
120 | |
121 | %description apidocs | |
72c3f355 | 122 | libcaja-extension API documentation. |
42e349cc ER |
123 | |
124 | %description apidocs -l pl.UTF-8 | |
72c3f355 | 125 | Dokumentacja API biblioteki libcaja-extension. |
42e349cc | 126 | |
e7b9e0a5 ER |
127 | %prep |
128 | %setup -q | |
129 | ||
130 | %build | |
61cad5c2 JP |
131 | %{__intltoolize} |
132 | %{?with_apidocs:%{__gtkdocize}} | |
133 | %{__libtoolize} | |
134 | %{__aclocal} | |
61cad5c2 | 135 | %{__autoconf} |
72c3f355 | 136 | %{__autoheader} |
61cad5c2 | 137 | %{__automake} |
e7b9e0a5 | 138 | %configure \ |
72c3f355 JB |
139 | --disable-icon-update \ |
140 | --disable-schemas-compile \ | |
141 | --disable-silent-rules \ | |
e7b9e0a5 ER |
142 | --enable-unique \ |
143 | --disable-update-mimedb \ | |
e7b9e0a5 | 144 | --with-gnu-ld \ |
72c3f355 JB |
145 | %{?with_gtk3:--with-gtk=3.0} \ |
146 | --with-html-dir=%{_gtkdocdir} \ | |
147 | --with-x | |
e7b9e0a5 | 148 | |
72c3f355 | 149 | %{__make} |
e7b9e0a5 ER |
150 | |
151 | %install | |
152 | rm -rf $RPM_BUILD_ROOT | |
153 | %{__make} install \ | |
154 | INSTALL="install -p" \ | |
155 | DESTDIR=$RPM_BUILD_ROOT | |
156 | ||
bc7eafc7 JP |
157 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/cmn |
158 | ||
72c3f355 JB |
159 | # obsoleted by pkg-config |
160 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
e7b9e0a5 | 161 | |
72c3f355 | 162 | # mate < 1.5 did not exist in PLD, avoid dependency on mate-conf |
5597a9d5 | 163 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/caja.convert |
e7b9e0a5 | 164 | |
72c3f355 | 165 | # for external extensions |
e7b9e0a5 ER |
166 | install -d $RPM_BUILD_ROOT%{_libdir}/caja/extensions-2.0 |
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 |
e7b9e0a5 | 174 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/io |
40e7e51a JB |
175 | # update naming convention |
176 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr@ije,sr@ijekavian} | |
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) | |
72c3f355 | 198 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README THANKS TODO |
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* | |
207 | %attr(755,root,root) %{_libexecdir}/caja-convert-metadata | |
e7b9e0a5 ER |
208 | %dir %{_libdir}/caja |
209 | %dir %{_libdir}/caja/extensions-2.0 | |
72c3f355 | 210 | %{_datadir}/caja |
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 | |
224 | %{_iconsdir}/hicolor/*x*/apps/caja.png | |
225 | %{_iconsdir}/hicolor/*x*/emblems/emblem-note.png | |
226 | %{_iconsdir}/hicolor/scalable/apps/caja.svg | |
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 |