]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable gtk-doc | |
4 | ||
5 | Summary: File manager for MATE | |
6 | Summary(pl.UTF-8): Zarządca plików dla środowiska MATE | |
7 | Name: caja | |
8 | Version: 1.20.2 | |
9 | Release: 1 | |
10 | License: GPL v2+ and LGPL v2+ | |
11 | Group: X11/Applications | |
12 | Source0: http://pub.mate-desktop.org/releases/1.20/%{name}-%{version}.tar.xz | |
13 | # Source0-md5: ba64bb09abb4c3509c00aa5a428f16e0 | |
14 | URL: http://wiki.mate-desktop.org/mate-file-manager | |
15 | BuildRequires: autoconf >= 2.54 | |
16 | BuildRequires: automake >= 1:1.9 | |
17 | BuildRequires: cairo-gobject-devel | |
18 | BuildRequires: desktop-file-utils | |
19 | BuildRequires: exempi-devel >= 1.99.5 | |
20 | BuildRequires: gettext-tools | |
21 | BuildRequires: glib2-devel >= 1:2.50.0 | |
22 | BuildRequires: gobject-introspection-devel >= 0.6.4 | |
23 | BuildRequires: gtk+3-devel >= 3.22 | |
24 | BuildRequires: gtk-doc >= 1.4 | |
25 | BuildRequires: intltool >= 0.50.1 | |
26 | BuildRequires: libexif-devel >= 1:0.6.14 | |
27 | BuildRequires: libnotify-devel >= 0.7.0 | |
28 | BuildRequires: libselinux-devel | |
29 | BuildRequires: libxml2-devel >= 2.4.7 | |
30 | BuildRequires: mate-common | |
31 | BuildRequires: mate-desktop-devel >= 1.17.3 | |
32 | BuildRequires: pango-devel >= 1:1.1.2 | |
33 | BuildRequires: perl-base | |
34 | BuildRequires: pkgconfig | |
35 | BuildRequires: tar >= 1:1.22 | |
36 | BuildRequires: xorg-lib-libSM-devel | |
37 | BuildRequires: xorg-lib-libX11-devel | |
38 | BuildRequires: xorg-lib-libXext-devel | |
39 | BuildRequires: xorg-lib-libXrender-devel | |
40 | BuildRequires: xz | |
41 | Requires(post,postun): gtk-update-icon-cache | |
42 | Requires: %{name}-libs = %{version}-%{release} | |
43 | Requires: exempi >= 1.99.5 | |
44 | Requires: gsettings-desktop-schemas | |
45 | Requires: gvfs | |
46 | Requires: hicolor-icon-theme | |
47 | Requires: libexif >= 1:0.6.14 | |
48 | Requires: libnotify >= 0.7.0 | |
49 | Requires: libxml2 >= 2.4.7 | |
50 | Requires: mate-desktop >= 1.17.3 | |
51 | Requires: mate-icon-theme | |
52 | Requires: pango >= 1:1.1.2 | |
53 | Requires: shared-mime-info | |
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 | |
62 | Suggests: mate-backgrounds | |
63 | Obsoletes: mate-file-manager | |
64 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
65 | ||
66 | %description | |
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. | |
73 | ||
74 | %description -l pl.UTF-8 | |
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. | |
81 | ||
82 | %package libs | |
83 | Summary: Library for caja extensions | |
84 | Summary(pl.UTF-8): Biblioteka dla rozszerzeń caja | |
85 | License: LGPL v2+ | |
86 | Group: Development/Libraries | |
87 | Requires: glib2 >= 1:2.50.0 | |
88 | Requires: gtk+3 >= 3.22 | |
89 | Obsoletes: mate-file-manager-extensions | |
90 | Obsoletes: mate-file-manager-libs | |
91 | ||
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. | |
98 | ||
99 | %package devel | |
100 | Summary: Support for developing caja extensions | |
101 | Summary(pl.UTF-8): Pliki do tworzenia rozszerzeń caja | |
102 | License: LGPL v2+ | |
103 | Group: Development/Libraries | |
104 | Requires: %{name}-libs = %{version}-%{release} | |
105 | Requires: glib2-devel >= 1:2.50.0 | |
106 | Requires: gtk+3-devel >= 3.22 | |
107 | Obsoletes: mate-file-manager-devel | |
108 | ||
109 | %description devel | |
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. | |
116 | ||
117 | %package apidocs | |
118 | Summary: libcaja-extension API documentation | |
119 | Summary(pl.UTF-8): Dokumentacja API biblioteki libcaja-extension | |
120 | Group: Documentation | |
121 | Requires: gtk-doc-common | |
122 | Obsoletes: mate-file-manager-apidocs | |
123 | %if "%{_rpmversion}" >= "5" | |
124 | BuildArch: noarch | |
125 | %endif | |
126 | ||
127 | %description apidocs | |
128 | libcaja-extension API documentation. | |
129 | ||
130 | %description apidocs -l pl.UTF-8 | |
131 | Dokumentacja API biblioteki libcaja-extension. | |
132 | ||
133 | %prep | |
134 | %setup -q | |
135 | ||
136 | %build | |
137 | %{__intltoolize} | |
138 | %{?with_apidocs:%{__gtkdocize}} | |
139 | %{__libtoolize} | |
140 | %{__aclocal} | |
141 | %{__autoconf} | |
142 | %{__autoheader} | |
143 | %{__automake} | |
144 | %configure \ | |
145 | --disable-icon-update \ | |
146 | --disable-schemas-compile \ | |
147 | --disable-silent-rules \ | |
148 | --enable-unique \ | |
149 | --disable-update-mimedb \ | |
150 | --with-gnu-ld \ | |
151 | --with-html-dir=%{_gtkdocdir} \ | |
152 | --with-x | |
153 | ||
154 | %{__make} | |
155 | ||
156 | %install | |
157 | rm -rf $RPM_BUILD_ROOT | |
158 | ||
159 | %{__make} install \ | |
160 | INSTALL="install -p" \ | |
161 | DESTDIR=$RPM_BUILD_ROOT | |
162 | ||
163 | # obsoleted by pkg-config | |
164 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
165 | ||
166 | # for external extensions | |
167 | install -d $RPM_BUILD_ROOT%{_libdir}/caja/extensions-2.0 | |
168 | install -d $RPM_BUILD_ROOT%{_datadir}/caja/extensions | |
169 | ||
170 | desktop-file-install \ | |
171 | --delete-original \ | |
172 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
173 | $RPM_BUILD_ROOT%{_desktopdir}/*.desktop | |
174 | ||
175 | # not supported by glibc yet | |
176 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{es_ES,frp,ku_IQ,pms} | |
177 | ||
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 | ||
193 | %post libs -p /sbin/ldconfig | |
194 | %postun libs -p /sbin/ldconfig | |
195 | ||
196 | %files -f caja.lang | |
197 | %defattr(644,root,root,755) | |
198 | %doc AUTHORS ChangeLog NEWS README | |
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 | |
203 | %{_mandir}/man1/caja.1* | |
204 | %{_mandir}/man1/caja-autorun-software.1* | |
205 | %{_mandir}/man1/caja-connect-server.1* | |
206 | %{_mandir}/man1/caja-file-management-properties.1* | |
207 | %dir %{_libdir}/caja | |
208 | %dir %{_libdir}/caja/extensions-2.0 | |
209 | %{_datadir}/caja | |
210 | %{_datadir}/appdata/caja.appdata.xml | |
211 | %{_datadir}/dbus-1/services/org.mate.freedesktop.FileManager1.service | |
212 | %{_datadir}/glib-2.0/schemas/org.mate.caja.gschema.xml | |
213 | %{_datadir}/glib-2.0/schemas/org.mate.media-handling.gschema.xml | |
214 | %{_datadir}/mime/packages/caja.xml | |
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 | |
227 | ||
228 | %files libs | |
229 | %defattr(644,root,root,755) | |
230 | %attr(755,root,root) %{_libdir}/libcaja-extension.so.*.*.* | |
231 | %attr(755,root,root) %ghost %{_libdir}/libcaja-extension.so.1 | |
232 | %{_libdir}/girepository-1.0/Caja-2.0.typelib | |
233 | ||
234 | %files devel | |
235 | %defattr(644,root,root,755) | |
236 | %attr(755,root,root) %{_libdir}/libcaja-extension.so | |
237 | %{_includedir}/caja | |
238 | %{_datadir}/gir-1.0/Caja-2.0.gir | |
239 | %{_pkgconfigdir}/libcaja-extension.pc | |
240 | ||
241 | %if %{with apidocs} | |
242 | %files apidocs | |
243 | %defattr(644,root,root,755) | |
244 | %{_gtkdocdir}/libcaja-extension | |
245 | %endif |