1 | Summary: The MATE shell and file manager |
---|
2 | Name: mate-file-manager |
---|
3 | Version: 1.1.0 |
---|
4 | Release: 2%{?_dist_release} |
---|
5 | Source0: %{name}-%{version}.tar.xz |
---|
6 | License: GPLv2 |
---|
7 | Group: User Interface/Desktops |
---|
8 | URL: https://matsusoft.com.ar/projects/mate/ |
---|
9 | |
---|
10 | BuildRequires: mate-common |
---|
11 | BuildRequires: mate-conf-devel |
---|
12 | BuildRequires: mate-desktop-devel |
---|
13 | BuildRequires: gtk2-devel |
---|
14 | BuildRequires: libxml2-devel |
---|
15 | BuildRequires: libSM-devel |
---|
16 | BuildRequires: unique-devel |
---|
17 | BuildRequires: libexif-devel |
---|
18 | BuildRequires: exempi-devel |
---|
19 | BuildRequires: gtk-doc |
---|
20 | BuildRequires: autoconf |
---|
21 | BuildRequires: automake |
---|
22 | |
---|
23 | Requires(post,pre,preun): mate-conf |
---|
24 | Requires(post,postun): desktop-file-utils |
---|
25 | |
---|
26 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
27 | |
---|
28 | Vendor: Project Vine |
---|
29 | Distribution: Vine Linux |
---|
30 | Packager: Takemikaduchi |
---|
31 | |
---|
32 | |
---|
33 | %description |
---|
34 | This is Caja, the file manager for the MATE desktop. |
---|
35 | |
---|
36 | |
---|
37 | %package devel |
---|
38 | Summary: Development tools for mate-file-manager |
---|
39 | Summary(ja): mate-file-manager の開発環境 |
---|
40 | Group: Development/Libraries |
---|
41 | Requires: %{name} = %{version}-%{release} |
---|
42 | Requires: pkgconfig |
---|
43 | |
---|
44 | %description devel |
---|
45 | Header files and libraries for building a extension library for the |
---|
46 | mate-file-manager. |
---|
47 | |
---|
48 | |
---|
49 | %package doc |
---|
50 | Summary: Documentation for mate-file-manager |
---|
51 | Summary(ja): mate-file-manager 用のドキュメント |
---|
52 | Group: Documentation |
---|
53 | Requires: %{name} = %{version}-%{release} |
---|
54 | BuildArch: noarch |
---|
55 | |
---|
56 | %description doc |
---|
57 | This package contains documentation for mate-file-manager. |
---|
58 | |
---|
59 | |
---|
60 | %prep |
---|
61 | %setup -q |
---|
62 | |
---|
63 | |
---|
64 | %build |
---|
65 | (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi) |
---|
66 | %configure \ |
---|
67 | --libexecdir=%{_libexecdir}/mate \ |
---|
68 | --disable-static \ |
---|
69 | --disable-scrollkeeper \ |
---|
70 | --enable-unique \ |
---|
71 | --disable-update-mimedb |
---|
72 | |
---|
73 | %{__make} %{?_smp_mflags} |
---|
74 | |
---|
75 | |
---|
76 | %install |
---|
77 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
78 | |
---|
79 | export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
---|
80 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
81 | unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
---|
82 | |
---|
83 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
---|
84 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
85 | |
---|
86 | %find_lang caja |
---|
87 | |
---|
88 | |
---|
89 | %clean |
---|
90 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
91 | |
---|
92 | |
---|
93 | %post |
---|
94 | /sbin/ldconfig |
---|
95 | |
---|
96 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
97 | |
---|
98 | SCHEMAS=" \ |
---|
99 | apps_caja_preferences.schemas" |
---|
100 | for S in $SCHEMAS; do |
---|
101 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
102 | | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||: |
---|
103 | |
---|
104 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
105 | touch --no-create %{_datadir}/icons/hicolor |
---|
106 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
107 | /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: |
---|
108 | fi |
---|
109 | |
---|
110 | %pre |
---|
111 | if [ "$1" -gt 1 ]; then |
---|
112 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
113 | |
---|
114 | SCHEMAS=" \ |
---|
115 | apps_caja_preferences.schemas" |
---|
116 | for S in $SCHEMAS; do |
---|
117 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
118 | | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||: |
---|
119 | fi |
---|
120 | |
---|
121 | %preun |
---|
122 | if [ "$1" -eq 0 ]; then |
---|
123 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
124 | |
---|
125 | SCHEMAS=" \ |
---|
126 | apps_caja_preferences.schemas" |
---|
127 | for S in $SCHEMAS; do |
---|
128 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
129 | | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||: |
---|
130 | fi |
---|
131 | |
---|
132 | %postun |
---|
133 | /sbin/ldconfig |
---|
134 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
135 | touch --no-create %{_datadir}/icons/hicolor |
---|
136 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
137 | /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: |
---|
138 | fi |
---|
139 | |
---|
140 | |
---|
141 | %files -f caja.lang |
---|
142 | %defattr(-,root,root,-) |
---|
143 | %doc COPYING ChangeLog NEWS README |
---|
144 | %{_sysconfdir}/mateconf/schemas/apps_caja_preferences.schemas |
---|
145 | %{_bindir}/caja |
---|
146 | %{_bindir}/caja-autorun-software |
---|
147 | %{_bindir}/caja-connect-server |
---|
148 | %{_bindir}/caja-file-management-properties |
---|
149 | %{_libdir}/libcaja-extension.so.* |
---|
150 | %{_libdir}/girepository-1.0/Caja-2.0.typelib |
---|
151 | %{_libexecdir}/mate/caja-convert-metadata |
---|
152 | %{_datadir}/applications/*.desktop |
---|
153 | %{_datadir}/caja |
---|
154 | %{_datadir}/icons/hicolor/*/*/* |
---|
155 | %{_datadir}/mime/packages/caja.xml |
---|
156 | %{_datadir}/pixmaps/caja |
---|
157 | %{_mandir}/man1/*.1.gz |
---|
158 | |
---|
159 | %files devel |
---|
160 | %defattr(-,root,root,-) |
---|
161 | %{_includedir}/caja |
---|
162 | %{_libdir}/libcaja-extension.so |
---|
163 | %{_libdir}/pkgconfig/libcaja-extension.pc |
---|
164 | %{_datadir}/gir-1.0/Caja-2.0.gir |
---|
165 | |
---|
166 | %files doc |
---|
167 | %defattr(-,root,root,-) |
---|
168 | %{_datadir}/gtk-doc/html/libcaja-extension |
---|
169 | |
---|
170 | |
---|
171 | %changelog |
---|
172 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2 |
---|
173 | - change category |
---|
174 | |
---|
175 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1 |
---|
176 | - initial build for Vine Linux |
---|
177 | |
---|