]>
Commit | Line | Data |
---|---|---|
9dbba0ba JR |
1 | # |
2 | # Conditional build: | |
b8393680 | 3 | %bcond_with hal # build with HAL support (HAL is deprecated) |
a737f3ea | 4 | %bcond_without static_libs # static library |
18bef6f4 | 5 | |
9907eed2 | 6 | Summary: GNOME - virtual file system |
01895ec7 | 7 | Summary(pl.UTF-8): GNOME - wirtualny system plików |
30c5db17 | 8 | Name: gnome-vfs2 |
50e87b8d | 9 | Version: 2.24.4 |
37bb3a6e | 10 | Release: 18 |
0abde7a0 | 11 | License: LGPL v2+ |
2daf775c | 12 | Group: Applications |
dde35913 | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-vfs/2.24/gnome-vfs-%{version}.tar.bz2 |
50e87b8d | 14 | # Source0-md5: a05fab03eeef10a47dd156b758982f2e |
3dfd4585 | 15 | Source1: %{name}-defaults.list |
08a33ecc | 16 | Patch0: %{name}-no_g_mime.patch |
17 | Patch1: %{name}-fstab_edit_crash.patch | |
bc9940fd | 18 | Patch2: %{name}-default_cdda_handler.patch |
a0053c59 | 19 | Patch3: %{name}-headers-define.patch |
67308b3d | 20 | Patch4: %{name}-ac-libs.patch |
f9573e86 | 21 | Patch5: %{name}-glib.patch |
7cab01fa | 22 | Patch6: am.patch |
51255080 | 23 | Patch7: openssl.patch |
7004bb2f | 24 | URL: http://www.gnome.org/ |
6799753a | 25 | BuildRequires: GConf2-devel >= 2.22.0 |
a0053c59 | 26 | BuildRequires: acl-devel >= 2.2.34 |
a737f3ea | 27 | BuildRequires: attr-devel |
7004bb2f | 28 | BuildRequires: autoconf |
a737f3ea | 29 | BuildRequires: automake >= 1:1.8 |
20e9bfef | 30 | BuildRequires: avahi-glib-devel >= 0.6.17 |
7004bb2f | 31 | BuildRequires: bzip2-devel |
20e9bfef | 32 | BuildRequires: dbus-glib-devel >= 0.73 |
84c519ce | 33 | BuildRequires: docbook-dtd412-xml >= 1.0-10 |
7004bb2f | 34 | BuildRequires: fam-devel |
fdd099d9 | 35 | BuildRequires: flex |
bae8db21 | 36 | BuildRequires: gettext-tools |
dde35913 | 37 | BuildRequires: glib2-devel >= 1:2.18.0 |
6799753a | 38 | BuildRequires: gnome-common >= 2.20.0 |
20e9bfef | 39 | BuildRequires: gtk-doc >= 1.8 |
9dbba0ba | 40 | %{?with_hal:BuildRequires: hal-devel >= 0.5.9} |
3dfac051 | 41 | BuildRequires: heimdal-devel |
18e4dbdb | 42 | BuildRequires: intltool >= 0.36.2 |
82a39a0a | 43 | BuildRequires: libselinux-devel |
de0e1a34 | 44 | BuildRequires: libsmbclient-devel >= 3.0 |
c8121a59 | 45 | BuildRequires: libtool >= 2:1.5.14 |
18e4dbdb | 46 | BuildRequires: libxml2-devel >= 1:2.6.30 |
2590ced8 | 47 | BuildRequires: openssl-devel >= 0.9.8b |
a737f3ea | 48 | BuildRequires: perl-base >= 5.002 |
1e60a848 | 49 | BuildRequires: pkgconfig |
c5ff750c | 50 | BuildRequires: rpm-build >= 4.1-10 |
df42e8d4 | 51 | BuildRequires: rpmbuild(macros) >= 1.197 |
77dffff6 | 52 | BuildRequires: sed >= 4.0 |
7004bb2f | 53 | BuildRequires: zlib-devel |
20e9bfef MB |
54 | Requires(post,preun): GConf2 |
55 | Requires: %{name}-libs = %{version}-%{release} | |
59c71a03 | 56 | Requires: shared-mime-info >= 0.18 |
291f69de | 57 | Obsoletes: gnome-vfs-extras |
b4abf114 | 58 | Obsoletes: gnome-vfs2-vfolder-menu |
d0449bf4 | 59 | # sr@Latn vs. sr@latin |
60 | Conflicts: glibc-misc < 6:2.7 | |
3ef00263 | 61 | Conflicts: gnome-vfs2-module-menu <= 0.8-1 |
de0e1a34 | 62 | Conflicts: libgnome < 2.5.1 |
7004bb2f AM |
63 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
64 | ||
7004bb2f | 65 | %description |
9907eed2 | 66 | GNOME Virtual File System. |
7004bb2f | 67 | |
ced29bec JR |
68 | %description -l pl.UTF-8 |
69 | Wirtualny Systemu Plików GNOME. | |
9907eed2 | 70 | |
71 | %package libs | |
72 | Summary: gnome-vfs library | |
01895ec7 | 73 | Summary(pl.UTF-8): Biblioteka gnome-vfs |
6bb628dd | 74 | Group: Libraries |
a737f3ea JB |
75 | Requires: GConf2-libs >= 2.22.0 |
76 | Requires: avahi-glib >= 0.6.17 | |
77 | Requires: dbus-glib >= 0.73 | |
78 | Requires: glib2 >= 1:2.10.0 | |
9dbba0ba | 79 | %{?with_hal:Requires: hal-libs >= 0.5.9} |
a737f3ea | 80 | Requires: openssl >= 0.9.8b |
9907eed2 | 81 | |
82 | %description libs | |
83 | This package contains gnome-vfs libraries. | |
84 | ||
ced29bec | 85 | %description libs -l pl.UTF-8 |
9907eed2 | 86 | Pakiet zawiera biblioteki gnome-vfs. |
7004bb2f AM |
87 | |
88 | %package devel | |
9907eed2 | 89 | Summary: gnome-vfs - header files |
01895ec7 | 90 | Summary(pl.UTF-8): gnome-vfs - pliki nagłówkowe |
2daf775c | 91 | Group: Development/Libraries |
9907eed2 | 92 | Requires: %{name}-libs = %{version}-%{release} |
6799753a | 93 | Requires: GConf2-devel >= 2.22.0 |
20e9bfef MB |
94 | Requires: avahi-glib-devel >= 0.6.17 |
95 | Requires: dbus-glib-devel >= 0.73 | |
82a39a0a | 96 | Requires: libselinux-devel |
2590ced8 | 97 | Requires: openssl-devel >= 0.9.8b |
7004bb2f AM |
98 | |
99 | %description devel | |
9907eed2 | 100 | This package contains header files for gnome-vfs library. |
7004bb2f | 101 | |
ced29bec JR |
102 | %description devel -l pl.UTF-8 |
103 | Pakiet ten zawiera pliki nagłówkowe biblioteki gnome-vfs. | |
7004bb2f AM |
104 | |
105 | %package static | |
9907eed2 | 106 | Summary: gnome-vfs - static libraries |
01895ec7 | 107 | Summary(pl.UTF-8): gnome-vfs - biblioteki statyczne |
2daf775c | 108 | Group: Development/Libraries |
3f01381e | 109 | Requires: %{name}-devel = %{version}-%{release} |
7004bb2f AM |
110 | |
111 | %description static | |
9907eed2 | 112 | This package contains static gnome-vfs libraries. |
7004bb2f | 113 | |
ced29bec | 114 | %description static -l pl.UTF-8 |
9907eed2 | 115 | Pakiet ten zawiera biblioteki statyczne gnome-vfs. |
116 | ||
117 | %package apidocs | |
6bb628dd | 118 | Summary: gnome-vfs API documentation |
01895ec7 | 119 | Summary(pl.UTF-8): Dokumentacja API gnome-vfs |
9907eed2 | 120 | Group: Documentation |
121 | Requires: gtk-doc-common | |
18bef6f4 | 122 | BuildArch: noarch |
9907eed2 | 123 | |
124 | %description apidocs | |
6bb628dd | 125 | gnome-vfs API documentation. |
9907eed2 | 126 | |
ced29bec | 127 | %description apidocs -l pl.UTF-8 |
9907eed2 | 128 | Dokumentacja API gnome-vfs. |
7004bb2f AM |
129 | |
130 | %prep | |
131 | %setup -q -n gnome-vfs-%{version} | |
d912f97e | 132 | %patch0 -p1 |
b6691b4d | 133 | %patch1 -p1 |
08a33ecc | 134 | %patch2 -p1 |
a0053c59 | 135 | %patch3 -p0 |
67308b3d | 136 | %patch4 -p1 |
f9573e86 | 137 | %patch5 -p1 |
7cab01fa | 138 | %patch6 -p1 |
51255080 AM |
139 | %patch7 -p1 |
140 | ||
141 | # fix for make -C doc | |
142 | iconv -f iso8859-2 -t utf8 libgnomevfs/gnome-vfs-job-queue.h > libgnomevfs/gnome-vfs-job-queue.h.new && mv libgnomevfs/gnome-vfs-job-queue.h.new libgnomevfs/gnome-vfs-job-queue.h | |
7004bb2f AM |
143 | |
144 | %build | |
226fad7c | 145 | %{__gtkdocize} |
0ccceeea | 146 | %{__glib_gettextize} |
147 | %{__intltoolize} | |
dd6b4d01 | 148 | %{__libtoolize} |
592ad3ed | 149 | %{__aclocal} |
c3d08e81 | 150 | %{__autoconf} |
151 | %{__automake} | |
7004bb2f | 152 | %configure \ |
9dbba0ba | 153 | %{__enable_disable hal hal} \ |
9907eed2 | 154 | --disable-howl \ |
de0e1a34 | 155 | --disable-schemas-install \ |
c1c31bb9 JR |
156 | --with-samba-includes=`pkg-config --variable=includedir smbclient` \ |
157 | --enable-samba \ | |
a737f3ea | 158 | %{!?with_static_libs:--disable-static} \ |
9907eed2 | 159 | --enable-gtk-doc \ |
160 | --enable-ipv6 \ | |
161 | --with-html-dir=%{_gtkdocdir} | |
20e9bfef | 162 | |
08a33ecc | 163 | %{__make} |
7004bb2f AM |
164 | |
165 | %install | |
166 | rm -rf $RPM_BUILD_ROOT | |
b6691b4d | 167 | install -d $RPM_BUILD_ROOT%{_desktopdir} |
7004bb2f AM |
168 | |
169 | %{__make} install \ | |
a737f3ea | 170 | DESTDIR=$RPM_BUILD_ROOT |
7004bb2f | 171 | |
a737f3ea JB |
172 | # no static modules or *.la |
173 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la \ | |
174 | $RPM_BUILD_ROOT%{_libdir}/gnome-vfs-2.0/modules/*.la | |
175 | %if %{with static_libs} | |
176 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gnome-vfs-2.0/modules/*.a | |
177 | %endif | |
20d32b09 | 178 | |
18bef6f4 | 179 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/defaults.list |
09ddf0b4 | 180 | |
18bef6f4 | 181 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr@ije,sr@ijekavian} |
3dfd4585 | 182 | |
7004bb2f AM |
183 | %find_lang gnome-vfs-2.0 |
184 | ||
185 | %clean | |
186 | rm -rf $RPM_BUILD_ROOT | |
187 | ||
84c519ce | 188 | %post |
df42e8d4 | 189 | %gconf_schema_install desktop_default_applications.schemas |
190 | %gconf_schema_install desktop_gnome_url_handlers.schemas | |
191 | %gconf_schema_install system_dns_sd.schemas | |
192 | %gconf_schema_install system_http_proxy.schemas | |
193 | %gconf_schema_install system_smb.schemas | |
4d406ecb | 194 | |
b6691b4d | 195 | %preun |
df42e8d4 | 196 | %gconf_schema_uninstall desktop_default_applications.schemas |
197 | %gconf_schema_uninstall desktop_gnome_url_handlers.schemas | |
198 | %gconf_schema_uninstall system_dns_sd.schemas | |
199 | %gconf_schema_uninstall system_http_proxy.schemas | |
200 | %gconf_schema_uninstall system_smb.schemas | |
b6691b4d | 201 | |
9907eed2 | 202 | %post libs -p /sbin/ldconfig |
203 | %postun libs -p /sbin/ldconfig | |
50b014a0 | 204 | |
7004bb2f AM |
205 | %files -f gnome-vfs-2.0.lang |
206 | %defattr(644,root,root,755) | |
5c1355bc | 207 | %doc AUTHORS ChangeLog NEWS README |
a737f3ea JB |
208 | %dir %{_sysconfdir}/gnome-vfs-2.0 |
209 | %dir %{_sysconfdir}/gnome-vfs-2.0/modules | |
210 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gnome-vfs-2.0/modules/default-modules.conf | |
211 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gnome-vfs-2.0/modules/smb-module.conf | |
212 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gnome-vfs-2.0/modules/ssl-modules.conf | |
08a33ecc | 213 | %{_sysconfdir}/gconf/schemas/desktop_default_applications.schemas |
214 | %{_sysconfdir}/gconf/schemas/desktop_gnome_url_handlers.schemas | |
215 | %{_sysconfdir}/gconf/schemas/system_dns_sd.schemas | |
216 | %{_sysconfdir}/gconf/schemas/system_http_proxy.schemas | |
217 | %{_sysconfdir}/gconf/schemas/system_smb.schemas | |
6799753a MB |
218 | %attr(755,root,root) %{_bindir}/gnomevfs-cat |
219 | %attr(755,root,root) %{_bindir}/gnomevfs-copy | |
220 | %attr(755,root,root) %{_bindir}/gnomevfs-df | |
221 | %attr(755,root,root) %{_bindir}/gnomevfs-info | |
222 | %attr(755,root,root) %{_bindir}/gnomevfs-ls | |
223 | %attr(755,root,root) %{_bindir}/gnomevfs-mkdir | |
224 | %attr(755,root,root) %{_bindir}/gnomevfs-monitor | |
225 | %attr(755,root,root) %{_bindir}/gnomevfs-mv | |
226 | %attr(755,root,root) %{_bindir}/gnomevfs-rm | |
a737f3ea | 227 | %attr(755,root,root) %{_libexecdir}/gnome-vfs-daemon |
6799753a MB |
228 | %attr(755,root,root) %{_libdir}/gnome-vfs-2.0/modules/libbzip2.so |
229 | %attr(755,root,root) %{_libdir}/gnome-vfs-2.0/modules/libcomputer.so | |
230 | %attr(755,root,root) %{_libdir}/gnome-vfs-2.0/modules/libdns-sd.so | |
231 | %attr(755,root,root) %{_libdir}/gnome-vfs-2.0/modules/libfile.so | |
232 | %attr(755,root,root) %{_libdir}/gnome-vfs-2.0/modules/libftp.so | |
233 | %attr(755,root,root) %{_libdir}/gnome-vfs-2.0/modules/libgzip.so | |
234 | %attr(755,root,root) %{_libdir}/gnome-vfs-2.0/modules/libhttp.so | |
235 | %attr(755,root,root) %{_libdir}/gnome-vfs-2.0/modules/libnetwork.so | |
236 | %attr(755,root,root) %{_libdir}/gnome-vfs-2.0/modules/libnntp.so | |
237 | %attr(755,root,root) %{_libdir}/gnome-vfs-2.0/modules/libsftp.so | |
238 | %attr(755,root,root) %{_libdir}/gnome-vfs-2.0/modules/libsmb.so | |
239 | %attr(755,root,root) %{_libdir}/gnome-vfs-2.0/modules/libtar.so | |
240 | %attr(755,root,root) %{_libdir}/gnome-vfs-2.0/modules/libvfs-test.so | |
a737f3ea JB |
241 | %{_datadir}/dbus-1/services/gnome-vfs-daemon.service |
242 | %{_desktopdir}/defaults.list | |
243 | ||
244 | %files libs | |
245 | %defattr(644,root,root,755) | |
246 | %attr(755,root,root) %{_libdir}/libgnomevfs-2.so.*.*.* | |
247 | %attr(755,root,root) %ghost %{_libdir}/libgnomevfs-2.so.0 | |
248 | %dir %{_libdir}/gnome-vfs-2.0 | |
cbec8510 | 249 | %dir %{_libdir}/gnome-vfs-2.0/modules |
7004bb2f AM |
250 | |
251 | %files devel | |
252 | %defattr(644,root,root,755) | |
6799753a | 253 | %attr(755,root,root) %{_libdir}/libgnomevfs-2.so |
7004bb2f | 254 | %{_includedir}/gnome-vfs-2.0 |
baf3af9f | 255 | %{_includedir}/gnome-vfs-module-2.0 |
7004bb2f | 256 | %{_libdir}/gnome-vfs-2.0/include |
6799753a MB |
257 | %{_pkgconfigdir}/gnome-vfs-2.0.pc |
258 | %{_pkgconfigdir}/gnome-vfs-module-2.0.pc | |
7004bb2f | 259 | |
a737f3ea | 260 | %if %{with static_libs} |
7004bb2f AM |
261 | %files static |
262 | %defattr(644,root,root,755) | |
6799753a | 263 | %{_libdir}/libgnomevfs-2.a |
a737f3ea | 264 | %endif |
9907eed2 | 265 | |
266 | %files apidocs | |
267 | %defattr(644,root,root,755) | |
268 | %{_gtkdocdir}/gnome-vfs-2.0 |