]>
Commit | Line | Data |
---|---|---|
e7b9e0a5 ER |
1 | # TODO |
2 | # -extensions not optional: | |
3 | # mate-file-manager-1.5.2-0.2.i686: required "libcaja-extension.so.1" is provided by the following packages: | |
42e349cc ER |
4 | # |
5 | # Conditional build: | |
6 | %bcond_without apidocs # disable gtk-doc | |
e7b9e0a5 ER |
7 | |
8 | Summary: File manager for MATE | |
9 | Name: mate-file-manager | |
5597a9d5 | 10 | Version: 1.5.3 |
3875b1fa | 11 | Release: 1 |
42e349cc | 12 | License: GPL v2+ and LGPL v2+ |
e7b9e0a5 | 13 | Group: X11/Applications |
5597a9d5 ER |
14 | Source0: http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz |
15 | # Source0-md5: 96ad0936a69665177903c456d5972cfd | |
16 | URL: http://wiki.mate-desktop.org/mate-file-manager | |
42e349cc ER |
17 | BuildRequires: cairo-gobject-devel |
18 | BuildRequires: dbus-glib-devel | |
e7b9e0a5 | 19 | BuildRequires: desktop-file-utils |
42e349cc ER |
20 | BuildRequires: exempi-devel |
21 | BuildRequires: gobject-introspection-devel | |
42e349cc ER |
22 | BuildRequires: libexif-devel |
23 | BuildRequires: libselinux-devel | |
24 | BuildRequires: libunique-devel | |
25 | BuildRequires: libxml2-devel | |
e7b9e0a5 ER |
26 | BuildRequires: mate-common |
27 | BuildRequires: mate-desktop-devel | |
42e349cc | 28 | %{?with_apidocs:BuildRequires: mate-doc-utils >= 1.1.0} |
e7b9e0a5 | 29 | BuildRequires: pangox-compat-devel |
42e349cc | 30 | BuildRequires: startup-notification-devel |
f9635477 | 31 | BuildRequires: tar >= 1:1.22 |
42e349cc | 32 | BuildRequires: xorg-lib-libSM-devel |
f9635477 | 33 | BuildRequires: xz |
42e349cc | 34 | Requires: %{name}-extensions = %{version}-%{release} |
e7b9e0a5 ER |
35 | Requires: filesystem |
36 | Requires: gamin | |
37 | Requires: glib2 >= 1:2.26.0 | |
38 | Requires: gsettings-desktop-schemas | |
39 | Requires: gtk-update-icon-cache | |
40 | Requires: gvfs | |
41 | Requires: hicolor-icon-theme | |
42 | Requires: mate-icon-theme | |
43 | #Requires: redhat-menus | |
44 | Requires: shared-mime-info | |
2f0046ef ER |
45 | Suggests: mate-backgrounds |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
e7b9e0a5 ER |
47 | |
48 | %description | |
49 | Caja (mate-file-manager) is the file manager and graphical shell for | |
50 | the MATE desktop, that makes it easy to manage your files and the rest | |
51 | of your system. It allows to browse directories on local and remote | |
52 | file systems, preview files and launch applications associated with | |
53 | them. It is also responsible for handling the icons on the MATE | |
54 | desktop. | |
55 | ||
56 | %package extensions | |
57 | Summary: Mate-file-manager extensions library | |
58 | License: LGPL v2+ | |
59 | Group: Development/Libraries | |
e7b9e0a5 ER |
60 | |
61 | %description extensions | |
62 | This package provides the libraries used by caja extensions. | |
63 | ||
64 | %package devel | |
65 | Summary: Support for developing mate-file-manager extensions | |
66 | License: LGPL v2+ | |
67 | Group: Development/Libraries | |
1050c06d | 68 | Requires: %{name}-extensions = %{version}-%{release} |
e7b9e0a5 ER |
69 | |
70 | %description devel | |
71 | This package provides libraries and header files needed for developing | |
72 | caja extensions. | |
73 | ||
42e349cc ER |
74 | %package apidocs |
75 | Summary: libcaja API documentation | |
76 | Summary(pl.UTF-8): Dokumentacja API libcaja | |
77 | Group: Documentation | |
78 | Requires: gtk-doc-common | |
79 | ||
80 | %description apidocs | |
81 | libcaja API documentation. | |
82 | ||
83 | %description apidocs -l pl.UTF-8 | |
84 | Dokumentacja API libcaja. | |
85 | ||
e7b9e0a5 ER |
86 | %prep |
87 | %setup -q | |
88 | ||
89 | %build | |
90 | NOCONFIGURE=1 ./autogen.sh | |
91 | %configure \ | |
92 | --with-html-dir=%{_gtkdocdir} \ | |
93 | --disable-static \ | |
94 | --enable-unique \ | |
95 | --disable-update-mimedb \ | |
96 | --disable-schemas-compile \ | |
97 | --with-gnu-ld \ | |
98 | --with-x \ | |
99 | --with-gtk=2.0 | |
100 | ||
e7b9e0a5 ER |
101 | %{__make} \ |
102 | V=1 | |
103 | ||
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | %{__make} install \ | |
107 | INSTALL="install -p" \ | |
108 | DESTDIR=$RPM_BUILD_ROOT | |
109 | ||
110 | find $RPM_BUILD_ROOT -name '*.la' |xargs rm | |
111 | ||
5597a9d5 ER |
112 | # mate < 1.5 did not exist in pld, avoid dependency on mate-conf |
113 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/caja.convert | |
e7b9e0a5 ER |
114 | |
115 | install -d $RPM_BUILD_ROOT%{_libdir}/caja/extensions-2.0 | |
116 | ||
117 | desktop-file-install \ | |
118 | --delete-original \ | |
119 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
120 | $RPM_BUILD_ROOT%{_desktopdir}/*.desktop | |
121 | ||
122 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/io | |
123 | %find_lang caja | |
124 | ||
125 | %clean | |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
128 | %post | |
129 | %update_mime_database | |
130 | %update_icon_cache hicolor | |
131 | %glib_compile_schemas | |
132 | ||
133 | %postun | |
134 | %update_mime_database | |
135 | %update_icon_cache hicolor | |
136 | %glib_compile_schemas | |
137 | ||
138 | %post extensions -p /sbin/ldconfig | |
139 | %postun extensions -p /sbin/ldconfig | |
140 | ||
141 | %files -f caja.lang | |
142 | %defattr(644,root,root,755) | |
143 | %doc AUTHORS COPYING COPYING-DOCS COPYING.LIB NEWS README | |
144 | %attr(755,root,root) %{_bindir}/caja | |
145 | %attr(755,root,root) %{_bindir}/caja-autorun-software | |
146 | %attr(755,root,root) %{_bindir}/caja-connect-server | |
147 | %attr(755,root,root) %{_bindir}/caja-file-management-properties | |
148 | %{_datadir}/caja | |
149 | %dir %{_libdir}/caja | |
150 | %dir %{_libdir}/caja/extensions-2.0 | |
151 | %{_pixmapsdir}/caja/ | |
152 | %{_desktopdir}/*.desktop | |
153 | %{_iconsdir}/hicolor/*/apps/caja.png | |
154 | %{_iconsdir}/hicolor/scalable/apps/caja.svg | |
155 | %{_datadir}/glib-2.0/schemas/org.mate.*.gschema.xml | |
156 | %{_mandir}/man1/caja*.1.* | |
157 | %{_libexecdir}/caja-convert-metadata | |
158 | %{_datadir}/mime/packages/caja.xml | |
159 | ||
160 | %files extensions | |
161 | %defattr(644,root,root,755) | |
162 | %attr(755,root,root) %{_libdir}/libcaja-extension.so.*.*.* | |
163 | %ghost %{_libdir}/libcaja-extension.so.1 | |
164 | %{_libdir}/girepository-1.0/Caja-2.0.typelib | |
165 | ||
166 | %files devel | |
167 | %defattr(644,root,root,755) | |
168 | %{_libdir}/libcaja-extension.so | |
169 | %{_includedir}/caja | |
170 | %{_pkgconfigdir}/libcaja-extension.pc | |
171 | %{_datadir}/gir-1.0/Caja-2.0.gir | |
172 | ||
42e349cc ER |
173 | %if %{with apidocs} |
174 | %files apidocs | |
175 | %defattr(644,root,root,755) | |
e7b9e0a5 | 176 | %{_gtkdocdir}/libcaja-extension |
42e349cc | 177 | %endif |