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