]>
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 |
e7b9e0a5 | 8 | Name: mate-file-manager |
772ff3ce | 9 | Version: 1.6.3 |
40e7e51a | 10 | Release: 3 |
42e349cc | 11 | License: GPL v2+ and LGPL v2+ |
e7b9e0a5 | 12 | Group: X11/Applications |
83a28464 | 13 | Source0: http://pub.mate-desktop.org/releases/1.6/%{name}-%{version}.tar.xz |
772ff3ce | 14 | # Source0-md5: 3925e589ef3365a4d59ce8cca6db946e |
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 |
72c3f355 | 34 | BuildRequires: mate-desktop-devel >= 1.5.0 |
42e349cc | 35 | %{?with_apidocs:BuildRequires: mate-doc-utils >= 1.1.0} |
72c3f355 | 36 | BuildRequires: pango-devel >= 1:1.1.2 |
e7b9e0a5 | 37 | BuildRequires: pangox-compat-devel |
72c3f355 JB |
38 | BuildRequires: perl-base |
39 | BuildRequires: pkgconfig | |
f9635477 | 40 | BuildRequires: tar >= 1:1.22 |
42e349cc | 41 | BuildRequires: xorg-lib-libSM-devel |
72c3f355 JB |
42 | BuildRequires: xorg-lib-libX11-devel |
43 | BuildRequires: xorg-lib-libXext-devel | |
44 | BuildRequires: xorg-lib-libXrender-devel | |
f9635477 | 45 | BuildRequires: xz |
72c3f355 JB |
46 | Requires: %{name}-libs = %{version}-%{release} |
47 | Requires: exempi >= 1.99.5 | |
e7b9e0a5 ER |
48 | Requires: gsettings-desktop-schemas |
49 | Requires: gtk-update-icon-cache | |
50 | Requires: gvfs | |
51 | Requires: hicolor-icon-theme | |
72c3f355 JB |
52 | Requires: libexif >= 0.5.12 |
53 | Requires: libxml2 >= 2.4.7 | |
54 | Requires: mate-desktop >= 1.5.0 | |
e7b9e0a5 | 55 | Requires: mate-icon-theme |
72c3f355 | 56 | Requires: pango >= 1:1.1.2 |
e7b9e0a5 | 57 | Requires: shared-mime-info |
2f0046ef ER |
58 | Suggests: mate-backgrounds |
59 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
e7b9e0a5 ER |
60 | |
61 | %description | |
62 | Caja (mate-file-manager) is the file manager and graphical shell for | |
63 | the MATE desktop, that makes it easy to manage your files and the rest | |
64 | of your system. It allows to browse directories on local and remote | |
65 | file systems, preview files and launch applications associated with | |
66 | them. It is also responsible for handling the icons on the MATE | |
72c3f355 JB |
67 | desktop. Caja is a fork of Nautilus from GNOME. |
68 | ||
69 | %description -l pl.UTF-8 | |
70 | Caja (mate-file-manager) to zarządca plików i graficzna powłoka dla | |
71 | środowiska graficznego MATE. Ułatwia zarządzanie plikami i resztą | |
72 | systemu. Umożliwia przeglądanie katalogów na lokalnych i zdalnych | |
73 | systemach plików, podgląd plików oraz uruchamianie aplikacji | |
74 | powiązanych z nimi. Odpowiada także za obsługę ikon w środowisku MATE. | |
75 | Caja to odgałęzienie Nautilusa z GNOME. | |
76 | ||
77 | %package libs | |
78 | Summary: Library for mate-file-manager extensions | |
79 | Summary(pl.UTF-8): Biblioteka dla rozszerzeń mate-file-managera | |
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 | |
e7b9e0a5 | 86 | |
72c3f355 JB |
87 | %description libs |
88 | This package provides the library used by Caja view extensions. | |
89 | ||
90 | %description libs -l pl.UTF-8 | |
91 | Ten pakiet dostarcza bibliotekę używaną przez rozszerzenia widoku | |
92 | zarządcy plików Caja. | |
e7b9e0a5 ER |
93 | |
94 | %package devel | |
95 | Summary: Support for developing mate-file-manager extensions | |
72c3f355 | 96 | Summary(pl.UTF-8): Pliki do tworzenia rozszerzeń mate-file-managera |
e7b9e0a5 ER |
97 | License: LGPL v2+ |
98 | Group: Development/Libraries | |
72c3f355 JB |
99 | Requires: %{name}-libs = %{version}-%{release} |
100 | Requires: glib2-devel >= 1:2.28.0 | |
101 | %{!?with_gtk3:Requires: gtk+2-devel >= 2:2.24.0} | |
102 | %{?with_gtk3:Requires: gtk+3-devel >= 3.0.0} | |
e7b9e0a5 ER |
103 | |
104 | %description devel | |
72c3f355 JB |
105 | This package provides the header files needed for developing Caja |
106 | extensions. | |
107 | ||
108 | %description devel -l pl.UTF-8 | |
109 | Ten pakiet dostarcza pliki nagłówkowe niezbędne do tworzenia | |
110 | rozszerzeń zarządcy plików Caja. | |
e7b9e0a5 | 111 | |
42e349cc | 112 | %package apidocs |
72c3f355 JB |
113 | Summary: libcaja-extension API documentation |
114 | Summary(pl.UTF-8): Dokumentacja API biblioteki libcaja-extension | |
42e349cc ER |
115 | Group: Documentation |
116 | Requires: gtk-doc-common | |
117 | ||
118 | %description apidocs | |
72c3f355 | 119 | libcaja-extension API documentation. |
42e349cc ER |
120 | |
121 | %description apidocs -l pl.UTF-8 | |
72c3f355 | 122 | Dokumentacja API biblioteki libcaja-extension. |
42e349cc | 123 | |
e7b9e0a5 ER |
124 | %prep |
125 | %setup -q | |
126 | ||
127 | %build | |
61cad5c2 JP |
128 | %{__intltoolize} |
129 | %{?with_apidocs:%{__gtkdocize}} | |
130 | %{__libtoolize} | |
131 | %{__aclocal} | |
61cad5c2 | 132 | %{__autoconf} |
72c3f355 | 133 | %{__autoheader} |
61cad5c2 | 134 | %{__automake} |
e7b9e0a5 | 135 | %configure \ |
72c3f355 JB |
136 | --disable-icon-update \ |
137 | --disable-schemas-compile \ | |
138 | --disable-silent-rules \ | |
e7b9e0a5 ER |
139 | --enable-unique \ |
140 | --disable-update-mimedb \ | |
e7b9e0a5 | 141 | --with-gnu-ld \ |
72c3f355 JB |
142 | %{?with_gtk3:--with-gtk=3.0} \ |
143 | --with-html-dir=%{_gtkdocdir} \ | |
144 | --with-x | |
e7b9e0a5 | 145 | |
72c3f355 | 146 | %{__make} |
e7b9e0a5 ER |
147 | |
148 | %install | |
149 | rm -rf $RPM_BUILD_ROOT | |
150 | %{__make} install \ | |
151 | INSTALL="install -p" \ | |
152 | DESTDIR=$RPM_BUILD_ROOT | |
153 | ||
72c3f355 JB |
154 | # obsoleted by pkg-config |
155 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
e7b9e0a5 | 156 | |
72c3f355 | 157 | # mate < 1.5 did not exist in PLD, avoid dependency on mate-conf |
5597a9d5 | 158 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/caja.convert |
e7b9e0a5 | 159 | |
72c3f355 | 160 | # for external extensions |
e7b9e0a5 ER |
161 | install -d $RPM_BUILD_ROOT%{_libdir}/caja/extensions-2.0 |
162 | ||
163 | desktop-file-install \ | |
164 | --delete-original \ | |
165 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
72c3f355 | 166 | $RPM_BUILD_ROOT%{_desktopdir}/*.desktop |
e7b9e0a5 | 167 | |
40e7e51a | 168 | # not supported by glibc yet |
e7b9e0a5 | 169 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/io |
40e7e51a JB |
170 | # update naming convention |
171 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr@ije,sr@ijekavian} | |
72c3f355 | 172 | |
e7b9e0a5 ER |
173 | %find_lang caja |
174 | ||
175 | %clean | |
176 | rm -rf $RPM_BUILD_ROOT | |
177 | ||
178 | %post | |
179 | %update_mime_database | |
180 | %update_icon_cache hicolor | |
181 | %glib_compile_schemas | |
182 | ||
183 | %postun | |
184 | %update_mime_database | |
185 | %update_icon_cache hicolor | |
186 | %glib_compile_schemas | |
187 | ||
72c3f355 JB |
188 | %post libs -p /sbin/ldconfig |
189 | %postun libs -p /sbin/ldconfig | |
e7b9e0a5 ER |
190 | |
191 | %files -f caja.lang | |
192 | %defattr(644,root,root,755) | |
72c3f355 | 193 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README THANKS TODO |
e7b9e0a5 ER |
194 | %attr(755,root,root) %{_bindir}/caja |
195 | %attr(755,root,root) %{_bindir}/caja-autorun-software | |
196 | %attr(755,root,root) %{_bindir}/caja-connect-server | |
197 | %attr(755,root,root) %{_bindir}/caja-file-management-properties | |
72c3f355 JB |
198 | %{_mandir}/man1/caja.1* |
199 | %{_mandir}/man1/caja-connect-server.1* | |
200 | %{_mandir}/man1/caja-file-management-properties.1* | |
201 | %attr(755,root,root) %{_libexecdir}/caja-convert-metadata | |
e7b9e0a5 ER |
202 | %dir %{_libdir}/caja |
203 | %dir %{_libdir}/caja/extensions-2.0 | |
72c3f355 | 204 | %{_datadir}/caja |
f54d6dd8 | 205 | %{_datadir}/dbus-1/services/org.mate.freedesktop.FileManager1.service |
72c3f355 JB |
206 | %{_datadir}/glib-2.0/schemas/org.mate.caja.gschema.xml |
207 | %{_datadir}/glib-2.0/schemas/org.mate.media-handling.gschema.xml | |
e7b9e0a5 | 208 | %{_datadir}/mime/packages/caja.xml |
72c3f355 JB |
209 | %{_pixmapsdir}/caja |
210 | %{_desktopdir}/caja.desktop | |
211 | %{_desktopdir}/caja-autorun-software.desktop | |
212 | %{_desktopdir}/caja-browser.desktop | |
213 | %{_desktopdir}/caja-computer.desktop | |
214 | %{_desktopdir}/caja-file-management-properties.desktop | |
215 | %{_desktopdir}/caja-folder-handler.desktop | |
216 | %{_desktopdir}/caja-home.desktop | |
217 | %{_desktopdir}/mate-network-scheme.desktop | |
218 | %{_iconsdir}/hicolor/*x*/apps/caja.png | |
219 | %{_iconsdir}/hicolor/*x*/emblems/emblem-note.png | |
220 | %{_iconsdir}/hicolor/scalable/apps/caja.svg | |
e7b9e0a5 | 221 | |
72c3f355 | 222 | %files libs |
e7b9e0a5 ER |
223 | %defattr(644,root,root,755) |
224 | %attr(755,root,root) %{_libdir}/libcaja-extension.so.*.*.* | |
72c3f355 | 225 | %attr(755,root,root) %ghost %{_libdir}/libcaja-extension.so.1 |
e7b9e0a5 ER |
226 | %{_libdir}/girepository-1.0/Caja-2.0.typelib |
227 | ||
228 | %files devel | |
229 | %defattr(644,root,root,755) | |
72c3f355 | 230 | %attr(755,root,root) %{_libdir}/libcaja-extension.so |
e7b9e0a5 | 231 | %{_includedir}/caja |
e7b9e0a5 | 232 | %{_datadir}/gir-1.0/Caja-2.0.gir |
72c3f355 | 233 | %{_pkgconfigdir}/libcaja-extension.pc |
e7b9e0a5 | 234 | |
42e349cc ER |
235 | %if %{with apidocs} |
236 | %files apidocs | |
237 | %defattr(644,root,root,755) | |
e7b9e0a5 | 238 | %{_gtkdocdir}/libcaja-extension |
42e349cc | 239 | %endif |