source: trunk/third/gnome-vfs2/gnome-vfs.spec.in @ 18317

Revision 18317, 3.6 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18316, which included commits to RCS files with non-trunk default branches.
Line 
1%define         localstatedir /var/lib
2
3Name:           @PACKAGE@
4Summary:        The GNOME virtual file-system libraries
5Version:        @VERSION@
6Release:        1_cvs
7License:        LGPL
8Group:          System Environment/Libraries
9Source:         ftp://ftp.gnome.org/pub/GNOME/stable/sources/%name/%name-%{version}.tar.gz
10URL:            http://www.gnome.org/
11BuildRoot:      /var/tmp/%{name}-root
12Requires:       control-center
13Requires:       glib2 >= @GLIB_REQUIRED@
14Requires:       GConf2 >= @GCONF_REQUIRED@
15BuildRequires:  gnome-libs-devel, control-center-devel
16BuildRequires:  bonobo-activation-devel >= @BONOBO_ACTIVATION_REQUIRED@
17BuildRequires:  bonobo-devel >= @BONOBO_REQUIRED@
18BuildRequires:  GConf2-devel >= @GCONF_REQUIRED@
19BuildRequires:  gtk2-devel >= @GTK_REQUIRED@
20BuildRequires:  ORBit-devel >= @ORBIT_REQUIRED@
21BuildRequires:  libxml2 >= @XML_REQUIRED@
22
23%description
24GNOME VFS is the GNOME virtual file system. It is the foundation of the
25Nautilus file manager. It provides a modular architecture and ships with
26several modules that implement support for file systems, http, ftp and others.
27It provides a URI-based API, a backend supporting asynchronous file operations,
28a MIME type manipulation library and other features.
29
30%package devel
31Summary:        Libraries and include files for developing GNOME VFS applications.
32Group:          Development/Libraries
33Requires:       %name = %{version}
34Requires:       glib-devel
35Requires:       bonobo-devel
36
37%description devel
38This package provides the necessary development libraries for writing
39GNOME 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.
51MYCFLAGS="$RPM_OPT_FLAGS"
52
53if [ ! -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}
59fi
60
61CFLAGS="$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
67make
68
69%install
70rm -rf $RPM_BUILD_ROOT
71
72make -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
80rm -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
Note: See TracBrowser for help on using the repository browser.