gnumeric.spec.in 10 KB
Newer Older
1 2
%define  RELEASE 1
%define  rel     %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
3
%define  prefix  /usr
Kjartan Maraas's avatar
Kjartan Maraas committed
4
%define  sysconfdir	/etc
5 6

Summary: the GNOME spreadsheet
7
Name: 		gnumeric
8
Version: 	@VERSION@
9 10
Release: 	%rel
Copyright: 	GPL
11
Group: 		Applications/Productivity
12
Source: ftp://ftp.gnome.org/pub/GNOME/sources/gnumeric/gnumeric-%{version}.tar.gz
13
Url:		http://www.gnome.org/gnumeric
14
BuildRoot:	/var/tmp/%{name}-%{PACKAGE_VERSION}-root
15
Docdir: 	%{prefix}/doc
16

Miguel de Icaza's avatar
Miguel de Icaza committed
17 18
Requires: gtk+ >= 1.2.7
Requires: gnome-libs >= 1.0.57
Jody Goldberg's avatar
Jody Goldberg committed
19
Requires: gnome-print >= 0.29
20
Requires: libglade >= 0.16
21
Requires: libxml >= 1.8.14
22
Requires: libole2 >= 0.2.3
23
Requires: gal >= 0.8
Morten Welinder's avatar
Morten Welinder committed
24 25
# The help menu commands require whatever package contains the gnome-help
# program.
26 27

%description
28 29
GNOME (GNU Network Object Model Environment) is a user-friendly set of
applications and desktop tools to be used in conjunction with a window
30
manager for the X Window System.
31

32 33 34
This is the Gnumeric, a spreadsheet for GNOME.  It aims to be a drop in
replacement for commercial spreadsheets.  It provides import/export from
MS Excel files and many other formats (csv, latex, xbase, applix).
35

36 37 38 39
# Don't even think about it. -- MW
#%package devel
#Summary: Files necessary to develop gnumeric-based applications.
#Group: Development/Libraries
40

41 42 43
#%description devel
#The gnumeric-devel package includes files necessary to develop gnumeric-based
#applications.
44

45
#Install gnumeric-devel if you want to develop programs which will use gnumeric.
46

47
%prep
48
%setup -q
49 50

%build
51
%ifarch alpha
52
	MYARCH_FLAGS="--host=alpha-redhat-linux"
53
%endif
54 55 56 57

if [ ! -f configure ]; then
	CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh $MYARCH_FLAGS --prefix=%prefix \
		--sysconfdir=%{sysconfdir} \
58
		--without-gb
59 60 61
else
	CFLAGS="$RPM_OPT_FLAGS" ./configure $MYARCH_FLAGS --prefix=%prefix \
		--sysconfdir=%{sysconfdir} \
62
		--without-gb
63
fi
64 65

if [ "$SMP" != "" ]; then
66
	make -k -j$SMP "MAKE=make -k -j$SMP"
67
else
68
	make -k
69 70 71
fi

%install
72
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
73

74
make prefix=$RPM_BUILD_ROOT%{prefix} sysconfdir=$RPM_BUILD_ROOT%{sysconfdir} install
75 76 77 78 79
#
# Auto detect the lang files.
#
if [ -f /usr/lib/rpm/find-lang.sh ] ; then
 /usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT %name
80 81
 sed "s:(644, root, root, 755):(444, bin, bin, 555):" %{name}.lang \
 >tmp.lang && mv tmp.lang %{name}.lang
82
fi
83

84

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

88
%files -f %{name}.lang
89 90 91

%defattr (0555, bin, bin)
%{prefix}/bin/gnumeric
92 93
%{prefix}/lib/gnumeric/%{version}-bonobo/plugins/*/*.so
%{prefix}/lib/gnumeric/%{version}-bonobo/plugins/*/*.py
94
%{prefix}/lib/gnumericConf.sh
95

96 97
%defattr (0444, bin, bin, 0555)
%doc HACKING AUTHORS ChangeLog NEWS BUGS README COPYING TODO
98 99
%{prefix}/lib/gnumeric/%{version}-bonobo/plugins/*/*.xml
%{prefix}/lib/gnumeric/%{version}-bonobo/plugins/*/glossary-po-header
100
%config %{prefix}/share/gnome/apps/Applications/*
101
%{prefix}/share/gnome/help/gnumeric/C/images/*
102
%{prefix}/share/gnome/help/gnumeric/C/*.*
103
%dir %{prefix}/share/gnumeric
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
%dir %{prefix}/share/gnumeric/%{version}-bonobo
%dir %{prefix}/share/gnumeric/%{version}-bonobo/autoformat-templates
%dir %{prefix}/share/gnumeric/%{version}-bonobo/autoformat-templates/3D
%dir %{prefix}/share/gnumeric/%{version}-bonobo/autoformat-templates/Classical
%dir %{prefix}/share/gnumeric/%{version}-bonobo/autoformat-templates/Colourful
%dir %{prefix}/share/gnumeric/%{version}-bonobo/autoformat-templates/Financial
%dir %{prefix}/share/gnumeric/%{version}-bonobo/autoformat-templates/General
%dir %{prefix}/share/gnumeric/%{version}-bonobo/autoformat-templates/List
%dir %{prefix}/share/gnumeric/%{version}-bonobo/glade
%dir %{prefix}/share/gnumeric/%{version}-bonobo/gnome
%dir %{prefix}/share/gnumeric/%{version}-bonobo/gnome/ui
%dir %{prefix}/share/gnumeric/%{version}-bonobo/python
%dir %{prefix}/share/gnumeric/%{version}-bonobo/templates
%{prefix}/share/gnumeric/%{version}-bonobo/autoformat-templates/3D/*
%{prefix}/share/gnumeric/%{version}-bonobo/autoformat-templates/Classical/*
%{prefix}/share/gnumeric/%{version}-bonobo/autoformat-templates/Colourful/*
%{prefix}/share/gnumeric/%{version}-bonobo/autoformat-templates/Financial/*
%{prefix}/share/gnumeric/%{version}-bonobo/autoformat-templates/General/*
%{prefix}/share/gnumeric/%{version}-bonobo/autoformat-templates/List/*
123 124
%{prefix}/share/gnumeric/%{version}-bonobo/glade/*
%{prefix}/share/gnumeric/%{version}-bonobo/gnome/ui/*
125
%{prefix}/share/gnumeric/%{version}-bonobo/idl/*
126 127
%{prefix}/share/gnumeric/%{version}-bonobo/python/*
%{prefix}/share/gnumeric/%{version}-bonobo/templates/*
128
#%{prefix}/share/locale/*/LC_MESSAGES/*.mo
129 130 131
%{prefix}/share/mc/templates/*
%{prefix}/share/mime-info/*
%{prefix}/share/oaf/*
132
%{prefix}/share/pixmaps/gnumeric/*
133
%{prefix}/share/pixmaps/*.*
134 135

# Don't even think about it.  -MW
136 137
# Gnumeric is not ready for a devel package yet.  Please wait until we split
# out libgnumeric.
138 139 140
#%files devel
#%defattr (-, bin, bin)
#%{prefix}/lib/gnumericConf.sh
141
#%{prefix}/share/gnumeric/%{version}-bonobo/idl/*.idl
142
# This is really silly.  The .la files are useless for plugins.
143
##%{prefix}/lib/gnumeric/%{version}-bonobo/plugins/*/*.la
144 145

%changelog
146 147 148 149 150
* Wed Sep 12 2001 John Gotts <jgotts@linuxsavvy.com>
- Keep the /usr/share/gnumeric directory structure under RPM revision control.
  %dirs should be used sparingly, but no other package will use this directory
  structure, so it's okay here.

151 152 153
* Thu Jun 28 2001 Jody Goldberg <jgoldberg@home.com>
- bump libxml1 req.

154
* Wed Jun 27 2001 John Gotts <jgotts@linuxsavvy.com>
155 156 157 158 159 160 161 162
- Added the python stuff back; it reappeared in 0.66.
- We're now Bonobo by default!
- Cautiously added a %dir.  %dir gets overused by many RPM's.  Try running
  'rpm -qf /usr/bin' some time.  ;-(

* Wed Jun 27 2001 John Gotts <jgotts@linuxsavvy.com>
- Note that the most important reason for -devel RPM's is to exclude files that
  aren't needed on the majority of systems.  The reason that the "premature"
163 164 165 166 167 168 169 170 171 172
  and "useless" files were moved to a -devel RPM wasn't to highlight their
  usefulness for software development, it was to facilitate their exclusion
  from the vast majority of installations.  It would be better to not install
  these files in the first place, but spec files should follow the principle of
  least surprise and mirror what a "make install" would do.
- Used some more wildcards for easier maintainability.
- Re-alphabetize.
- gnumericConf.sh shouldn't have its executable bit stripped.
- The python plugin doesn't seem to be getting built by default anymore.

173 174 175
* Tue Jun 26 2001 Jody Goldberg <jgoldberg@home.com>
- load the bonobo ui file from a version specific location

176 177 178 179 180 181 182 183
* Sat May 19 2001 Jody Goldberg <jgoldberg@home.com>
- update the gal req

* Tue Apr 01 2001 Jody Goldberg <jgoldberg@home.com>
- remove gnorba file
- rename oaf file
- include category files

184 185 186 187 188
* Tue Feb 20 2001 John Gotts <jgotts@linuxsavvy.com>
- Adapted to the recent directory reorganization.  Also alphabetically
  reordered the directories while I was at it.  Someone should figure out why
  we can't package the locale data.

189 190 191
* Tue Feb 13 2001 Jody Goldberg <jgoldberg@home.com>
- Updated version requirements for libglade

192 193 194
* Sat Feb 10 2001 Jody Goldberg <jgoldberg@home.com>
- Updated version requirements for GAL

Jody Goldberg's avatar
Jody Goldberg committed
195 196 197
* Wed Dec 06 2000 Jody Goldberg <jgoldberg@home.com>
- Updated version requirements for GAL

198 199 200 201 202 203 204 205 206
* Tue Nov 14 2000 John Gotts <jgotts@linuxsavvy.com>
- Require GAL 0.2.2 instead of 0.2.2.0.
- Use %{version} instead of at characters surrouding VERSION (it makes a nicer
  generated spec file).
- Created devel package.
- Fixed category to match Red Hat.
- Added the standard mechanism to build from either the tarball or CVS (and
  reindented things following the current practice).

207 208 209
* Thu Nov 09 2000 Jody Goldberg <jgoldberg@home.com>
- Updated version requirements for GAL

Jody Goldberg's avatar
Jody Goldberg committed
210 211 212
* Fri Nov 03 2000 Jody Goldberg <jgoldberg@home.com>
- Updated version requirements for GAL

Jody Goldberg's avatar
Jody Goldberg committed
213 214 215 216 217 218
* Wed Oct 18 2000 John Gotts <jgotts@linuxsavvy.com>
- Added gnumeric.xml, gnome-application-x-gnumeric.png,
  gnome-application-x-xls.png, gnumeric.oafinfo, and gnumericConf.sh. 
- Fixed incorrect idl path.
- Removed an excess blank line.  ;-)

219 220 221
* Sun Oct 01 2000 Almer S. Tigelaar <almer1@dds.nl>
- Make some minor adjustments for the autoformatter

222
* Thu Sep 28 2000 Jody Goldberg <jgoldberg@home.com>
223 224
- Updated version requirements for gnome-print

225
* Wed Sep 20 2000 Jody Goldberg <jgoldberg@home.com>
Jody Goldberg's avatar
Jody Goldberg committed
226 227 228
- Updated version requirements for glade
- Looks like someone already added gal.

229 230 231 232 233
* Wed Sep 20 2000 Kenneth Christiansen <kenneth@gnu.org>
- Made it work with the new autoformatter
- Upped gnome-print to 0.22

* Sat Aug 11 2000 Jody Goldberg <jgoldberg@home.com>
Arturo Tena's avatar
Arturo Tena committed
234 235
- Updated version requirements for gnome-print

236
* Sat Jun 21 2000 Jody Goldberg <jgoldberg@home.com>
Jody Goldberg's avatar
Jody Goldberg committed
237 238
- Add libole2

239
* Sat May 20 2000 Jody Goldberg <jgoldberg@home.com>
240 241
- Updated version requirements for gnome-print, and libglade.

242 243 244 245
* Mon May 15 2000 Karl Eichwalder <ke@suse.de>
- Use %{version}, %{name} and %{sysconfdir} more consistently.
- Avoid long lines.

Kjartan Maraas's avatar
Kjartan Maraas committed
246 247 248 249 250
* Thu Mar 29 2000 Kjartan Maraas <kmaraas@online.no>
- Removed gnome-gnumeric-xl.png since it is nowhere to be found.
- Added --without-bonobo and --without-gb.
- Added %define for sysconfdir

251
* Mon Feb 29 2000 Jody Goldberg <jgoldberg@home.com>
252 253
- Updated version requirements for gnome-print, and gnome-libs.

254 255 256
* Sun Jan 30 2000 Gregory McLean <gregm@comstar.net>
- Added in some auto-detect the language files logic (rpm 3.0.xx only)

257
* Mon Jan 12 2000 Jody Goldberg <jgoldberg@home.com>
Jody Goldberg's avatar
Jody Goldberg committed
258 259
- Add depend on gtk+ >= 1.2.2 so that we can get gtk_object_get.

260 261 262
* Mon Jan 03 2000 Gregory McLean <gregm@comstar.net>
- Updated to 0.47

263
* Mon Dec 20 1999 Jody Goldberg <jgoldberg@home.com>
264 265 266
- Updated the libglade dependancy.
- Remove req for guile.  We can build without it.

Gregory McLean's avatar
Gregory McLean committed
267 268 269
* Thu Sep 02 1999 Gregory McLean <gregm@comstar.net>
- Added small fix so glade generated dialogs appear.

270 271 272 273 274
* Wed Jul 14 1999 Gregory McLean <gregm@comstar.net>
- Added the gnome-print requirement.
- Updated the file list to try and quiet down the updating.
- added the sysconfdir

275 276
* Tue Mar 9  1999 Gregory McLean <gregm@comstar.net>
- Updated the spec file.
277 278 279

* Thu Sep 24 1998 Michael Fulbright <msf@redhat.com>
- Version 0.2