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