1 | Summary: The MATE virtual file-system libraries |
---|
2 | Name: mate-vfs |
---|
3 | Version: 1.1.0 |
---|
4 | Release: 1%{?_dist_release} |
---|
5 | Source0: %{name}-%{version}.tar.xz |
---|
6 | License: GPLv2 |
---|
7 | Group: System Environment/Libraries |
---|
8 | URL: https://matsusoft.com.ar/projects/mate/ |
---|
9 | |
---|
10 | BuildRequires: mate-common |
---|
11 | BuildRequires: mate-mime-data |
---|
12 | BuildRequires: mate-conf-devel |
---|
13 | BuildRequires: libmatecomponent-devel |
---|
14 | BuildRequires: glib2-devel |
---|
15 | BuildRequires: libxml2-devel |
---|
16 | BuildRequires: bzip2-devel |
---|
17 | BuildRequires: dbus-glib-devel |
---|
18 | BuildRequires: gtk-doc |
---|
19 | BuildRequires: autoconf |
---|
20 | BuildRequires: automake |
---|
21 | |
---|
22 | Requires(post,pre,preun): mate-conf |
---|
23 | |
---|
24 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
25 | |
---|
26 | Vendor: Project Vine |
---|
27 | Distribution: Vine Linux |
---|
28 | Packager: Takemikaduchi |
---|
29 | |
---|
30 | |
---|
31 | %description |
---|
32 | MATE VFS is currently used as one of the foundations of the Caja |
---|
33 | file manager. |
---|
34 | |
---|
35 | |
---|
36 | %package devel |
---|
37 | Summary: Development tools for mate-vfs |
---|
38 | Summary(ja): mate-vfs の開発環境 |
---|
39 | Group: Development/Libraries |
---|
40 | Requires: %{name} = %{version}-%{release} |
---|
41 | Requires: pkgconfig |
---|
42 | |
---|
43 | %description devel |
---|
44 | Header files and libraries for building a extension library for the |
---|
45 | mate-vfs. |
---|
46 | |
---|
47 | |
---|
48 | %package doc |
---|
49 | Summary: Documentation for mate-vfs |
---|
50 | Summary(ja): mate-vfs 用のドキュメント |
---|
51 | Group: Documentation |
---|
52 | Requires: %{name} = %{version}-%{release} |
---|
53 | BuildArch: noarch |
---|
54 | |
---|
55 | %description doc |
---|
56 | This package contains documentation for mate-vfs. |
---|
57 | |
---|
58 | |
---|
59 | %prep |
---|
60 | %setup -q |
---|
61 | |
---|
62 | |
---|
63 | %build |
---|
64 | (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi) |
---|
65 | %configure \ |
---|
66 | --libexecdir=%{_libexecdir}/mate \ |
---|
67 | --disable-static \ |
---|
68 | --disable-hal \ |
---|
69 | --disable-avahi \ |
---|
70 | --disable-howl \ |
---|
71 | --disable-openssl \ |
---|
72 | --disable-selinux |
---|
73 | |
---|
74 | %{__make} %{?_smp_mflags} |
---|
75 | |
---|
76 | |
---|
77 | %install |
---|
78 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
79 | |
---|
80 | export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
---|
81 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
82 | unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
---|
83 | |
---|
84 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
---|
85 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
86 | |
---|
87 | %find_lang %{name}-2.0 |
---|
88 | |
---|
89 | |
---|
90 | %clean |
---|
91 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
92 | |
---|
93 | %post |
---|
94 | /sbin/ldconfig |
---|
95 | |
---|
96 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
97 | |
---|
98 | SCHEMAS=" \ |
---|
99 | desktop_default_applications.schemas \ |
---|
100 | desktop_mate_url_handlers.schemas \ |
---|
101 | system_dns_sd.schemas \ |
---|
102 | system_http_proxy.schemas \ |
---|
103 | system_http_proxy.schemas" |
---|
104 | for S in $SCHEMAS; do |
---|
105 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
106 | | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||: |
---|
107 | |
---|
108 | %pre |
---|
109 | if [ "$1" -gt 1 ]; then |
---|
110 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
111 | |
---|
112 | SCHEMAS=" \ |
---|
113 | desktop_default_applications.schemas \ |
---|
114 | desktop_mate_url_handlers.schemas \ |
---|
115 | system_dns_sd.schemas \ |
---|
116 | system_http_proxy.schemas \ |
---|
117 | system_http_proxy.schemas" |
---|
118 | for S in $SCHEMAS; do |
---|
119 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
120 | | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||: |
---|
121 | fi |
---|
122 | |
---|
123 | %preun |
---|
124 | if [ "$1" -eq 0 ]; then |
---|
125 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
126 | |
---|
127 | SCHEMAS=" \ |
---|
128 | desktop_default_applications.schemas \ |
---|
129 | desktop_mate_url_handlers.schemas \ |
---|
130 | system_dns_sd.schemas \ |
---|
131 | system_http_proxy.schemas \ |
---|
132 | system_http_proxy.schemas" |
---|
133 | for S in $SCHEMAS; do |
---|
134 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
135 | | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||: |
---|
136 | fi |
---|
137 | |
---|
138 | %postun -p /sbin/ldconfig |
---|
139 | |
---|
140 | %files -f %{name}-2.0.lang |
---|
141 | %defattr(-,root,root,-) |
---|
142 | %doc COPYING COPYING.LIB ChangeLog NEWS README |
---|
143 | %{_sysconfdir}/mate-vfs-2.0/modules/default-modules.conf |
---|
144 | %{_sysconfdir}/mateconf/schemas/desktop_default_applications.schemas |
---|
145 | %{_sysconfdir}/mateconf/schemas/desktop_mate_url_handlers.schemas |
---|
146 | %{_sysconfdir}/mateconf/schemas/system_dns_sd.schemas |
---|
147 | %{_sysconfdir}/mateconf/schemas/system_http_proxy.schemas |
---|
148 | %{_sysconfdir}/mateconf/schemas/system_smb.schemas |
---|
149 | %{_bindir}/matevfs-* |
---|
150 | %{_libdir}/libmatevfs-2.so.* |
---|
151 | %{_libdir}/mate-vfs-2.0/modules/*.so |
---|
152 | %{_libexecdir}/mate/mate-vfs-daemon |
---|
153 | %{_datadir}/dbus-1/services/mate-vfs-daemon.service |
---|
154 | |
---|
155 | %files devel |
---|
156 | %defattr(-,root,root,-) |
---|
157 | %{_includedir}/mate-vfs-2.0 |
---|
158 | %{_includedir}/mate-vfs-module-2.0 |
---|
159 | %{_libdir}/libmatevfs-2.so |
---|
160 | %{_libdir}/mate-vfs-2.0/include/mate-vfs-file-size.h |
---|
161 | %{_libdir}/pkgconfig/mate-vfs-2.0.pc |
---|
162 | %{_libdir}/pkgconfig/mate-vfs-module-2.0.pc |
---|
163 | |
---|
164 | %files doc |
---|
165 | %defattr(-,root,root,-) |
---|
166 | %{_datadir}/gtk-doc/html/mate-vfs-2.0 |
---|
167 | |
---|
168 | |
---|
169 | %changelog |
---|
170 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1 |
---|
171 | - initial build for Vine Linux |
---|
172 | |
---|