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