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