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