]>
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 | |
61 | Requires: %{name} = %{version}-%{release} | |
62 | ||
63 | %description extensions | |
64 | This package provides the libraries used by caja extensions. | |
65 | ||
66 | %package devel | |
67 | Summary: Support for developing mate-file-manager extensions | |
68 | License: LGPL v2+ | |
69 | Group: Development/Libraries | |
70 | Requires: %{name} = %{version}-%{release} | |
71 | ||
72 | %description devel | |
73 | This package provides libraries and header files needed for developing | |
74 | caja extensions. | |
75 | ||
76 | %prep | |
77 | %setup -q | |
78 | ||
79 | %build | |
80 | NOCONFIGURE=1 ./autogen.sh | |
81 | %configure \ | |
82 | --with-html-dir=%{_gtkdocdir} \ | |
83 | --disable-static \ | |
84 | --enable-unique \ | |
85 | --disable-update-mimedb \ | |
86 | --disable-schemas-compile \ | |
87 | --with-gnu-ld \ | |
88 | --with-x \ | |
89 | --with-gtk=2.0 | |
90 | ||
91 | # drop unneeded direct library deps with --as-needed | |
92 | # libtool doesn't make this easy, so we do it the hard way | |
93 | #sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool | |
94 | ||
95 | %{__make} \ | |
96 | V=1 | |
97 | ||
98 | %install | |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | %{__make} install \ | |
101 | INSTALL="install -p" \ | |
102 | DESTDIR=$RPM_BUILD_ROOT | |
103 | ||
104 | find $RPM_BUILD_ROOT -name '*.la' |xargs rm | |
105 | ||
106 | #%{__rm} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache | |
107 | #%{__rm} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/.icon-theme.cache | |
108 | ||
109 | install -d $RPM_BUILD_ROOT%{_libdir}/caja/extensions-2.0 | |
110 | ||
111 | desktop-file-install \ | |
112 | --delete-original \ | |
113 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
114 | $RPM_BUILD_ROOT%{_desktopdir}/*.desktop | |
115 | ||
116 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/io | |
117 | %find_lang caja | |
118 | ||
119 | %clean | |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
122 | %post | |
123 | %update_mime_database | |
124 | %update_icon_cache hicolor | |
125 | %glib_compile_schemas | |
126 | ||
127 | %postun | |
128 | %update_mime_database | |
129 | %update_icon_cache hicolor | |
130 | %glib_compile_schemas | |
131 | ||
132 | %post extensions -p /sbin/ldconfig | |
133 | %postun extensions -p /sbin/ldconfig | |
134 | ||
135 | %files -f caja.lang | |
136 | %defattr(644,root,root,755) | |
137 | %doc AUTHORS COPYING COPYING-DOCS COPYING.LIB NEWS README | |
138 | %attr(755,root,root) %{_bindir}/caja | |
139 | %attr(755,root,root) %{_bindir}/caja-autorun-software | |
140 | %attr(755,root,root) %{_bindir}/caja-connect-server | |
141 | %attr(755,root,root) %{_bindir}/caja-file-management-properties | |
142 | %{_datadir}/caja | |
143 | %dir %{_libdir}/caja | |
144 | %dir %{_libdir}/caja/extensions-2.0 | |
145 | %{_pixmapsdir}/caja/ | |
146 | %{_desktopdir}/*.desktop | |
147 | %{_iconsdir}/hicolor/*/apps/caja.png | |
148 | %{_iconsdir}/hicolor/scalable/apps/caja.svg | |
149 | %{_datadir}/glib-2.0/schemas/org.mate.*.gschema.xml | |
150 | %{_mandir}/man1/caja*.1.* | |
151 | %{_libexecdir}/caja-convert-metadata | |
152 | %{_datadir}/mime/packages/caja.xml | |
153 | ||
154 | %files extensions | |
155 | %defattr(644,root,root,755) | |
156 | %attr(755,root,root) %{_libdir}/libcaja-extension.so.*.*.* | |
157 | %ghost %{_libdir}/libcaja-extension.so.1 | |
158 | %{_libdir}/girepository-1.0/Caja-2.0.typelib | |
159 | ||
160 | %files devel | |
161 | %defattr(644,root,root,755) | |
162 | %{_libdir}/libcaja-extension.so | |
163 | %{_includedir}/caja | |
164 | %{_pkgconfigdir}/libcaja-extension.pc | |
165 | %{_datadir}/gir-1.0/Caja-2.0.gir | |
166 | ||
167 | # apidoc | |
168 | %{_gtkdocdir}/libcaja-extension |