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