nautilus.spec.in 8.89 KB
Newer Older
1
# Note that this is NOT a relocatable package
2 3
%define name		nautilus
%define ver		@VERSION@
4
%define RELEASE		0_cvs_0
5 6 7
%define rel		%{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}

Name:		%name
8 9
Vendor:		GNOME
Distribution:	CVS
10
Summary:	Nautilus is a network user environment
11 12 13
Version: 	%ver
Release: 	%rel
Copyright: 	GPL
14
Group:		User Interface/Desktop
15
Source: 	ftp://ftp.gnome.org/pub/GNOME/stable/sources/%{name}-%{ver}.tar.gz
16 17
URL: 		http://nautilus.eazel.com/
BuildRoot:	/var/tmp/%{name}-%{ver}-root
18

19
Requires:	GConf >= @GCONF_REQUIRED@
20
Requires:	ORBit >= @ORBIT_REQUIRED@
21
Requires:	bonobo >= @BONOBO_REQUIRED@
22 23
Requires:	bonobo-activation >= @BONOBO_ACTIVATION_REQUIRED@
Requires:	eel >= @EEL_REQUIRED@
24
Requires:	esound >= @ESOUND_REQUIRED@
25 26 27 28 29 30
Requires:	gdk-pixbuf >= @GDK_PIXBUF_REQUIRED@
Requires:	glib >= @GLIB_REQUIRED@
Requires:	gnome-libs >= @GNOME_LIBS_REQUIRED@
Requires:	gnome-vfs >= @GNOME_VFS_REQUIRED@
Requires:	gtk+ >= @GTK_REQUIRED@
Requires:	imlib >= @IMLIB_REQUIRED@
31
Requires:	libpng
Ramiro Estrugo's avatar
Ramiro Estrugo committed
32
Requires:	librsvg >= @LIBRSVG_REQUIRED@
33 34 35
Requires:	libxml >= @LIBXML_REQUIRED@
Requires:	medusa >= @MEDUSA_REQUIRED@
Requires:	popt >= @POPT_REQUIRED@
36

37 38
BuildRequires:	GConf-devel >= @GCONF_REQUIRED@
BuildRequires:	ORBit-devel >= @ORBIT_REQUIRED@
39
BuildRequires:	bonobo-activation-devel >= @BONOBO_ACTIVATION_REQUIRED@
40
BuildRequires:	bonobo-devel >= @BONOBO_REQUIRED@
41
BuildRequires:	eel-devel >= @EEL_REQUIRED@
42
BuildRequires:	esound-devel >= @ESOUND_REQUIRED@
43 44 45 46 47 48
BuildRequires:	gdk-pixbuf-devel >= @GDK_PIXBUF_REQUIRED@
BuildRequires:	glib-devel >= @GLIB_REQUIRED@
BuildRequires:	gnome-libs-devel >= @GNOME_LIBS_REQUIRED@
BuildRequires:	gnome-vfs-devel >= @GNOME_VFS_REQUIRED@
BuildRequires:	gtk+-devel >= @GTK_REQUIRED@
BuildRequires:	imlib-devel >= @IMLIB_REQUIRED@
49
BuildRequires:	libpng-devel
50
BuildRequires:	librsvg-devel >= @LIBRSVG_REQUIRED@
51 52 53
BuildRequires:	libxml-devel >= @LIBXML_REQUIRED@
BuildRequires:	medusa-devel >= @MEDUSA_REQUIRED@
BuildRequires:	popt >= @POPT_REQUIRED@
54 55
BuildRequires:	xpdf >= 0.90

56
%description
57 58 59 60 61
Nautilus integrates access to files, applications, media, Internet-based
resources and the Web.  Nautilus delivers a dynamic and rich user
experience.  Nautilus is an free software project developed under the
GNU General Public License and is a core component of the GNOME desktop
project.
62 63

%package devel
64
Summary:	Libraries and include files for developing Nautilus components
65 66
Group:		Development/Libraries
Requires:	%name = %{PACKAGE_VERSION}
67

68 69 70 71
%description devel
This package provides the necessary development libraries and include
files to allow you to develop Nautilus components.

Robin Slomkowski's avatar
Robin Slomkowski committed
72
%package extras
73
Summary:	Extra goodies to use with Nautilus
74
Group:          User Interface/Desktop
75
Requires:	xpdf >= 0.90
76

77 78 79
%description extras
This is a meta-package that requires useful add-ons for Nautilus.

80
%package suggested
81
Summary:	Nautilus and a suggested set of components
82 83 84
Group:          User Interface/Desktop
Requires:       %name = %{PACKAGE_VERSION}
Requires:	%name-extras = %{PACKAGE_VERSION}
85

86
%description suggested
87 88
This is a meta-package that requires packages useful for running
Nautilus, and getting multimedia to work, such as eog and mpg123.
89

90 91 92 93 94
%prep
%setup

%build
%ifarch alpha
95
	MYARCH_FLAGS="--host=alpha-redhat-linux"
96 97 98 99 100 101 102
%endif

LC_ALL=""
LINGUAS=""
LANG=""
export LC_ALL LINGUAS LANG

103 104
## Warning!  Make sure there are no spaces or tabs after the \ 
## continuation character, or else the rpm demons will eat you.
105 106 107 108 109
CFLAGS="$RPM_OPT_FLAGS -DENABLE_SCROLLKEEPER_SUPPORT" ./configure \
    $MYARCH_FLAGS --enable-more-warnings \
    --prefix=%{_prefix} --datadir=%{_datadir} \
    --sysconfdir=%{_sysconfdir} --includedir=%{_includedir} \
    --libdir=%{_libdir} --bindir=%{_bindir}
110

111 112
make -k
make check
Robin Slomkowski's avatar
Robin Slomkowski committed
113

114 115
%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
116 117 118 119 120 121 122

make -k prefix=$RPM_BUILD_ROOT/%{_prefix} \
    sysconfdir=$RPM_BUILD_ROOT/%{_sysconfdir} \
    datadir=$RPM_BUILD_ROOT/%{_datadir} \
    includedir=$RPM_BUILD_ROOT/%{_includedir} \
    libdir=$RPM_BUILD_ROOT/%{_libdir} \
    bindir=$RPM_BUILD_ROOT/%{_bindir} install
123 124 125 126 127

%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

%post
128 129
if ! grep %{_libdir} /etc/ld.so.conf > /dev/null ; then
	echo "%{_libdir}" >> /etc/ld.so.conf
130 131
fi
/sbin/ldconfig
132
scrollkeeper-update
133

134
%postun -p /sbin/ldconfig
135
scrollkeeper-update
136 137 138

%files

139
%defattr(0555, bin, bin)
140
%doc AUTHORS COPYING COPYING-DOCS COPYING.LIB TRADEMARK_NOTICE ChangeLog NEWS README
141 142 143 144 145 146 147 148
%{_bindir}/nautilus
%{_bindir}/nautilus-adapter
%{_bindir}/nautilus-error-dialog
%{_bindir}/nautilus-hardware-view
%{_bindir}/nautilus-history-view
%{_bindir}/nautilus-image-view
# %{_bindir}/nautilus-mpg123
%{_bindir}/nautilus-music-view
149
%{_bindir}/nautilus-news
150
%{_bindir}/nautilus-notes
151
%{_bindir}/nautilus-restore-settings-to-default.sh
152 153 154
%{_bindir}/nautilus-sample-content-view
%{_bindir}/nautilus-text-view
%{_bindir}/nautilus-throbber
155 156
%{_bindir}/nautilus-verify-rpm.sh
%{_libdir}/libnautilus-adapter.so
157 158
%{_libdir}/libnautilus-adapter.so.0
%{_libdir}/libnautilus-adapter.so.0.0.0
159
%{_libdir}/libnautilus-private.so
160 161
%{_libdir}/libnautilus-private.so.0
%{_libdir}/libnautilus-private.so.0.0.0
162
%{_libdir}/libnautilus-tree-view.so
163 164
%{_libdir}/libnautilus-tree-view.so.0
%{_libdir}/libnautilus-tree-view.so.0.0.0
165
%{_libdir}/libnautilus.so
166 167 168
%{_libdir}/libnautilus.so.0
%{_libdir}/libnautilus.so.0.0.0
%{_libdir}/vfs/modules/*.so
169

170 171

%defattr (0444, bin, bin)
172
%config %{_sysconfdir}/vfs/modules/*.conf
173
%{_datadir}/gnome-2.0/ui/*.xml
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
%{_datadir}/gnome/apps/Applications/*.desktop
%{_datadir}/locale/*/LC_MESSAGES/*.mo
%{_datadir}/nautilus/*.xml
%{_datadir}/nautilus/emblems/*.png
%{_datadir}/nautilus/linksets/*.xml
%{_datadir}/nautilus/patterns/*.jpg
%{_datadir}/nautilus/patterns/*.png
%{_datadir}/nautilus/patterns/.*.png
%{_datadir}/nautilus/services/text/*.xml
%{_datadir}/pixmaps/*.png
%{_datadir}/pixmaps/nautilus/*.gif
%{_datadir}/pixmaps/nautilus/*.png
%{_datadir}/pixmaps/nautilus/*.svg
%{_datadir}/pixmaps/nautilus/*.xml
%{_datadir}/pixmaps/nautilus/crux_eggplant/*.png
%{_datadir}/pixmaps/nautilus/crux_eggplant/*.xml
%{_datadir}/pixmaps/nautilus/crux_eggplant/backgrounds/*.png
%{_datadir}/pixmaps/nautilus/crux_eggplant/sidebar_tab_pieces/*.png
192 193 194 195 196 197
%{_datadir}/pixmaps/nautilus/crux_eggplant/throbber/*.png
%{_datadir}/pixmaps/nautilus/crux_teal/*.png
%{_datadir}/pixmaps/nautilus/crux_teal/*.xml
%{_datadir}/pixmaps/nautilus/crux_teal/backgrounds/*.png
%{_datadir}/pixmaps/nautilus/crux_teal/sidebar_tab_pieces/*.png
%{_datadir}/pixmaps/nautilus/crux_teal/throbber/*.png
198 199 200 201
%{_datadir}/pixmaps/nautilus/gnome/*.png
%{_datadir}/pixmaps/nautilus/gnome/*.xml
%{_datadir}/pixmaps/nautilus/gnome/throbber/*.png
%{_datadir}/pixmaps/nautilus/sidebar_tab_pieces/*.png
202
%{_datadir}/pixmaps/nautilus/sierra/*.png
203 204 205 206
%{_datadir}/pixmaps/nautilus/sierra/*.xml
%{_datadir}/pixmaps/nautilus/tahoe/*.png
%{_datadir}/pixmaps/nautilus/tahoe/*.xml
%{_datadir}/pixmaps/nautilus/throbber/*.png
207
%{_libdir}/bonobo/servers/Nautilus_ComponentAdapterFactory_std.server
208
%{_libdir}/bonobo/servers/Nautilus_Control_throbber.server
209 210 211 212 213 214 215 216 217 218
%{_libdir}/bonobo/servers/Nautilus_View_hardware.server
%{_libdir}/bonobo/servers/Nautilus_View_history.server
%{_libdir}/bonobo/servers/Nautilus_View_image.server
%{_libdir}/bonobo/servers/Nautilus_View_music.server
%{_libdir}/bonobo/servers/Nautilus_View_news.server
%{_libdir}/bonobo/servers/Nautilus_View_notes.server
%{_libdir}/bonobo/servers/Nautilus_View_sample.server
%{_libdir}/bonobo/servers/Nautilus_View_text.server
%{_libdir}/bonobo/servers/Nautilus_View_tree.server
%{_libdir}/bonobo/servers/Nautilus_shell.server
219

220 221 222 223 224
# We put the idl files in the main package, not the devel package
# because the perl corba bindings can use the .idl files at run time.
%{_datadir}/idl/nautilus-view-component.idl
%{_datadir}/idl/nautilus-distributed-undo.idl

225
%defattr (-, root, root)
226 227
%{_datadir}/gnome/help
%{_datadir}/omf/nautilus
228

229 230 231
%files devel

%defattr(0555, bin, bin)
232 233
%{_libdir}/*.la
%{_libdir}/*.sh
234
%{_libdir}/vfs/modules/*.la
235 236

%defattr(0444, bin, bin)
237
%{_includedir}/libnautilus/*.h
238

239 240 241
%files extras

%defattr(0444, bin, bin)
242
%{_datadir}/nautilus/nautilus-extras.placeholder
243 244 245 246

%files suggested

%defattr(0444, bin, bin)
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261
%{_datadir}/nautilus/nautilus-suggested.placeholder

%changelog
* Tue Apr 17 2001 Gregory Leblanc <gleblanc@grego1.cu-portland.edu>
- Added BuildRequires lines
- Changed Source to point to ftp.gnome.org instead of just the tarball name
- Moved %description sections closer to their %package sections
- Moved %changelog to the end, where so that it's not in the way
- Changed configure and make install options to allow moving of
  libraries, includes, binaries more easily
- Removed hard-coded paths (don't define %prefix or %docdir)
- replace %{prefix}/bin with %{_bindir}
- replace %{prefix}/share with %{_datadir}
- replace %{prefix}/lib with %{_libdir}
- replace %{prefix}/include with %{_includedir}
262

263 264 265 266 267 268
* Tue Oct 10 2000 Robin Slomkowski <rslomkow@eazel.com>
- removed obsoletes from sub packages and added mozilla and trilobite
subpackages

* Wed Apr 26 2000 Ramiro Estrugo <ramiro@eazel.com>
- created this thing