1 | %define localstatedir /var/lib |
---|
2 | |
---|
3 | Name: @PACKAGE@ |
---|
4 | Summary: The GNOME virtual file-system libraries |
---|
5 | Version: @VERSION@ |
---|
6 | Release: 1_cvs |
---|
7 | License: LGPL |
---|
8 | Group: System Environment/Libraries |
---|
9 | Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/%name/%name-%{version}.tar.gz |
---|
10 | URL: http://www.gnome.org/ |
---|
11 | BuildRoot: /var/tmp/%{name}-root |
---|
12 | Requires: control-center |
---|
13 | Requires: glib2 >= @GLIB_REQUIRED@ |
---|
14 | Requires: GConf2 >= @GCONF_REQUIRED@ |
---|
15 | BuildRequires: gnome-libs-devel, control-center-devel |
---|
16 | BuildRequires: bonobo-activation-devel >= @BONOBO_ACTIVATION_REQUIRED@ |
---|
17 | BuildRequires: bonobo-devel >= @BONOBO_REQUIRED@ |
---|
18 | BuildRequires: GConf2-devel >= @GCONF_REQUIRED@ |
---|
19 | BuildRequires: gtk2-devel >= @GTK_REQUIRED@ |
---|
20 | BuildRequires: ORBit-devel >= @ORBIT_REQUIRED@ |
---|
21 | BuildRequires: libxml2 >= @XML_REQUIRED@ |
---|
22 | |
---|
23 | %description |
---|
24 | GNOME VFS is the GNOME virtual file system. It is the foundation of the |
---|
25 | Nautilus file manager. It provides a modular architecture and ships with |
---|
26 | several modules that implement support for file systems, http, ftp and others. |
---|
27 | It provides a URI-based API, a backend supporting asynchronous file operations, |
---|
28 | a MIME type manipulation library and other features. |
---|
29 | |
---|
30 | %package devel |
---|
31 | Summary: Libraries and include files for developing GNOME VFS applications. |
---|
32 | Group: Development/Libraries |
---|
33 | Requires: %name = %{version} |
---|
34 | Requires: glib-devel |
---|
35 | Requires: bonobo-devel |
---|
36 | |
---|
37 | %description devel |
---|
38 | This package provides the necessary development libraries for writing |
---|
39 | GNOME VFS modules and applications that use the GNOME VFS APIs. |
---|
40 | |
---|
41 | %prep |
---|
42 | %setup -q |
---|
43 | |
---|
44 | %build |
---|
45 | |
---|
46 | %ifarch alpha |
---|
47 | MYARCH_FLAGS="--host=alpha-redhat-linux" |
---|
48 | %endif |
---|
49 | |
---|
50 | # Needed for snapshot releases. |
---|
51 | MYCFLAGS="$RPM_OPT_FLAGS" |
---|
52 | |
---|
53 | if [ ! -f configure ]; then |
---|
54 | CFLAGS="$MYCFLAGS" ./autogen.sh $MYARCH_FLAGS \ |
---|
55 | --enable-more-warnings --prefix=%{_prefix} \ |
---|
56 | --localstatedir=%{localstatedir} --sysconfdir=%{_sysconfdir} \ |
---|
57 | --mandir=%{_mandir} --libdir=%{_libdir} \ |
---|
58 | --includedir=%{_includedir} --bindir=%{_bindir} |
---|
59 | fi |
---|
60 | |
---|
61 | CFLAGS="$MYCFLAGS" ./configure $MYARCH_FLAGS --enable-more-warnings \ |
---|
62 | --prefix=%{_prefix} --localstatedir=%{localstatedir} \ |
---|
63 | --sysconfdir=%{_sysconfdir} --mandir=%{_mandir} \ |
---|
64 | --libdir=%{_libdir} --includedir=%{_includedir} \ |
---|
65 | --bindir=%{_bindir} |
---|
66 | |
---|
67 | make |
---|
68 | |
---|
69 | %install |
---|
70 | rm -rf $RPM_BUILD_ROOT |
---|
71 | |
---|
72 | make -k sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \ |
---|
73 | prefix=$RPM_BUILD_ROOT%{_prefix} mandir=$RPM_BUILD_ROOT%{_mandir} \ |
---|
74 | libdir=$RPM_BUILD_ROOT%{_libdir} bindir=$RPM_BUILD_ROOT\%{_bindir} \ |
---|
75 | includedir=$RPM_BUILD_ROOT%{_includedir} install |
---|
76 | |
---|
77 | %find_lang %name |
---|
78 | |
---|
79 | %clean |
---|
80 | rm -rf $RPM_BUILD_ROOT |
---|
81 | |
---|
82 | %post -p /sbin/ldconfig |
---|
83 | |
---|
84 | %postun -p /sbin/ldconfig |
---|
85 | |
---|
86 | %files -f %{name}.lang |
---|
87 | %defattr(-, root, root) |
---|
88 | |
---|
89 | %doc AUTHORS COPYING ChangeLog NEWS README |
---|
90 | %config %{_sysconfdir}/gnome-vfs-2.0/modules/*.conf |
---|
91 | %config %{_sysconfdir}/gnome-vfs-2.0/vfolders/*.vfolder-info |
---|
92 | %{_libdir}/*.so.* |
---|
93 | %{_libdir}/*.so |
---|
94 | %{_libdir}/vfs/extfs/* |
---|
95 | %{_libdir}/gnome-vfs-2.0/modules/*.so |
---|
96 | %{_libdir}/bonobo/monikers/*.so |
---|
97 | %{_libdir}/bonobo/servers/*.server |
---|
98 | %{_prefix}/share/gtk-doc/html/gnome-vfs/*.html |
---|
99 | %{_prefix}/share/locale/*/LC_MESSAGES/*.mo |
---|
100 | |
---|
101 | %files devel |
---|
102 | %defattr(-, root, root) |
---|
103 | %{_includedir}/gnome-vfs-2.0/libgnomevfs/*.h |
---|
104 | %{_includedir}/gnome-vfs-module-2.0/libgnomevfs/*.h |
---|
105 | %{_libdir}/gnome-vfs-2.0/include/*.h |
---|
106 | %{_libdir}/*.a |
---|
107 | %{_libdir}/*.la |
---|
108 | %{_libdir}/gnome-vfs-2.0/modules/*.a |
---|
109 | %{_libdir}/gnome-vfs-2.0/modules/*.la |
---|
110 | %{_libdir}/bonobo/monikers/*.a |
---|
111 | %{_libdir}/bonobo/monikers/*.la |
---|
112 | %{_libdir}/pkgconfig/*.pc |
---|
113 | |
---|
114 | %changelog |
---|
115 | |
---|
116 | * Sun Dec 15 2001 Ross Golder <ross@golder.org> |
---|
117 | - fixed broken Name: |
---|
118 | |
---|
119 | * Sun Oct 21 2001 Gregory Leblanc <gleblanc@linuxweasel.com> |
---|
120 | - some messing around with Requires: and BuildRequires |
---|
121 | - cleaned up %files quite a bit (still not quite as good as it could be) |
---|
122 | - removed a bunch of unnecessary %defines |
---|