gnumeric.spec.in 10.4 KB
Newer Older
1 2
%define WithBonobo 1

3 4
%define  RELEASE 1
%define  rel     %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
5
%define  prefix  /usr
Kjartan Maraas's avatar
Kjartan Maraas committed
6
%define  sysconfdir	/etc
7 8

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

19 20 21 22 23 24
%if %{WithBonobo}
%define bonobover %{version}-bonobo
%else
%define bonobover %{version}
%endif

Miguel de Icaza's avatar
Miguel de Icaza committed
25 26
Requires: gtk+ >= 1.2.7
Requires: gnome-libs >= 1.0.57
Jody Goldberg's avatar
Jody Goldberg committed
27
Requires: gnome-print >= 0.29
28
Requires: libglade >= 0.16
29
Requires: libxml >= 1.8.14
30
Requires: libole2 >= 0.2.4
31
Requires: gal >= 0.14
32 33
# The help menu requires gnome-help-browser.
Requires: gnome-core
34 35 36
%if %{WithBonobo}
Requires: bonobo >= 1.0.9
%endif
37 38

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

43 44 45
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).
46

47 48 49 50
# Don't even think about it. -- MW
#%package devel
#Summary: Files necessary to develop gnumeric-based applications.
#Group: Development/Libraries
51

52 53 54
#%description devel
#The gnumeric-devel package includes files necessary to develop gnumeric-based
#applications.
55

56
#Install gnumeric-devel if you want to develop programs which will use gnumeric.
57

58
%prep
59
%setup -q
60 61

%build
62
%ifarch alpha
63
	MYARCH_FLAGS="--host=alpha-redhat-linux"
64
%endif
65

66 67 68
%if ! %{WithBonobo}
	MYBONOBO_FLAGS="--without-bonobo"
%endif
69
if [ ! -f configure ]; then
70 71
	CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh $MYARCH_FLAGS $MYBONOBO_FLAGS \
		--prefix=%prefix \
72
		--sysconfdir=%{sysconfdir} \
73
		--without-gb
74
else
75 76
	CFLAGS="$RPM_OPT_FLAGS" ./configure $MYARCH_FLAGS $MYBONOBO_FLAGS \
		--prefix=%prefix \
77
		--sysconfdir=%{sysconfdir} \
78
		--without-gb
79
fi
80 81

if [ "$SMP" != "" ]; then
82
	make -k -j$SMP "MAKE=make -k -j$SMP"
83
else
84
	make -k
85 86 87
fi

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

90
make prefix=$RPM_BUILD_ROOT%{prefix} sysconfdir=$RPM_BUILD_ROOT%{sysconfdir} install
91 92 93 94 95
#
# Auto detect the lang files.
#
if [ -f /usr/lib/rpm/find-lang.sh ] ; then
 /usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT %name
96 97
 sed "s:(644, root, root, 755):(444, bin, bin, 555):" %{name}.lang \
 >tmp.lang && mv tmp.lang %{name}.lang
98
fi
99

100

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

104
%files -f %{name}.lang
105 106 107

%defattr (0555, bin, bin)
%{prefix}/bin/gnumeric
108 109
%{prefix}/lib/gnumeric/%{bonobover}/plugins/*/*.so
%{prefix}/lib/gnumeric/%{bonobover}/plugins/*/*.py
110
%{prefix}/lib/gnumericConf.sh
111

112 113
%defattr (0444, bin, bin, 0555)
%doc HACKING AUTHORS ChangeLog NEWS BUGS README COPYING TODO
114 115
%{prefix}/lib/gnumeric/%{bonobover}/plugins/*/*.xml
%{prefix}/lib/gnumeric/%{bonobover}/plugins/*/glossary-po-header
116
%config %{prefix}/share/gnome/apps/Applications/*
117
%{prefix}/share/gnome/help/gnumeric/C/figures/*
118
%{prefix}/share/gnome/help/gnumeric/C/*.*
119
%dir %{prefix}/share/gnumeric
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
%dir %{prefix}/share/gnumeric/%{bonobover}
%dir %{prefix}/share/gnumeric/%{bonobover}/autoformat-templates
%dir %{prefix}/share/gnumeric/%{bonobover}/autoformat-templates/3D
%dir %{prefix}/share/gnumeric/%{bonobover}/autoformat-templates/Classical
%dir %{prefix}/share/gnumeric/%{bonobover}/autoformat-templates/Colourful
%dir %{prefix}/share/gnumeric/%{bonobover}/autoformat-templates/Financial
%dir %{prefix}/share/gnumeric/%{bonobover}/autoformat-templates/General
%dir %{prefix}/share/gnumeric/%{bonobover}/autoformat-templates/List
%dir %{prefix}/share/gnumeric/%{bonobover}/glade
%dir %{prefix}/share/gnumeric/%{bonobover}/gnome
%dir %{prefix}/share/gnumeric/%{bonobover}/gnome/ui
%dir %{prefix}/share/gnumeric/%{bonobover}/python
%dir %{prefix}/share/gnumeric/%{bonobover}/templates
%{prefix}/share/gnumeric/%{bonobover}/autoformat-templates/3D/*
%{prefix}/share/gnumeric/%{bonobover}/autoformat-templates/Classical/*
%{prefix}/share/gnumeric/%{bonobover}/autoformat-templates/Colourful/*
%{prefix}/share/gnumeric/%{bonobover}/autoformat-templates/Financial/*
%{prefix}/share/gnumeric/%{bonobover}/autoformat-templates/General/*
%{prefix}/share/gnumeric/%{bonobover}/autoformat-templates/List/*
%{prefix}/share/gnumeric/%{bonobover}/glade/*
%{prefix}/share/gnumeric/%{bonobover}/gnome/ui/*
%{prefix}/share/gnumeric/%{bonobover}/idl/*
%{prefix}/share/gnumeric/%{bonobover}/python/*
%{prefix}/share/gnumeric/%{bonobover}/templates/*
144
#%{prefix}/share/locale/*/LC_MESSAGES/*.mo
145 146 147
%{prefix}/share/mc/templates/*
%{prefix}/share/mime-info/*
%{prefix}/share/oaf/*
148
%{prefix}/share/pixmaps/gnumeric/*
149
%{prefix}/share/pixmaps/*.*
150 151

# Don't even think about it.  -MW
152 153
# Gnumeric is not ready for a devel package yet.  Please wait until we split
# out libgnumeric.
154 155 156
#%files devel
#%defattr (-, bin, bin)
#%{prefix}/lib/gnumericConf.sh
157
#%{prefix}/share/gnumeric/%{bonobover}/idl/*.idl
158
# This is really silly.  The .la files are useless for plugins.
159
##%{prefix}/lib/gnumeric/%{bonobover}/plugins/*/*.la
160 161

%changelog
162 163 164
* Sun Nov  4 2001 Jody Goldberg <jgoldberg@home.com>
- bump the libole req

165 166 167 168
* Wed Oct  9 2001 John Gotts <jgotts@linuxsavvy.com>
- gnome-core added as a requirement because gnumeric requires
  gnome-help-browser.  Also added bonobo >= 1.0.9 as a requirement.

169 170 171 172 173
* 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.

174 175 176
* Thu Jun 28 2001 Jody Goldberg <jgoldberg@home.com>
- bump libxml1 req.

177
* Wed Jun 27 2001 John Gotts <jgotts@linuxsavvy.com>
178 179 180 181 182 183 184 185
- 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"
186 187 188 189 190 191 192 193 194 195
  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.

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

199 200 201 202 203 204 205 206
* 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

207 208 209 210 211
* 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.

212 213 214
* Tue Feb 13 2001 Jody Goldberg <jgoldberg@home.com>
- Updated version requirements for libglade

215 216 217
* Sat Feb 10 2001 Jody Goldberg <jgoldberg@home.com>
- Updated version requirements for GAL

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

221 222 223 224 225 226 227 228 229
* 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).

230 231 232
* Thu Nov 09 2000 Jody Goldberg <jgoldberg@home.com>
- Updated version requirements for GAL

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

Jody Goldberg's avatar
Jody Goldberg committed
236 237 238 239 240 241
* 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.  ;-)

242 243 244
* Sun Oct 01 2000 Almer S. Tigelaar <almer1@dds.nl>
- Make some minor adjustments for the autoformatter

245
* Thu Sep 28 2000 Jody Goldberg <jgoldberg@home.com>
246 247
- Updated version requirements for gnome-print

248
* Wed Sep 20 2000 Jody Goldberg <jgoldberg@home.com>
Jody Goldberg's avatar
Jody Goldberg committed
249 250 251
- Updated version requirements for glade
- Looks like someone already added gal.

252 253 254 255 256
* 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
257 258
- Updated version requirements for gnome-print

259
* Sat Jun 21 2000 Jody Goldberg <jgoldberg@home.com>
Jody Goldberg's avatar
Jody Goldberg committed
260 261
- Add libole2

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

265 266 267 268
* 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
269 270 271 272 273
* 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

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

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

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

283 284 285
* Mon Jan 03 2000 Gregory McLean <gregm@comstar.net>
- Updated to 0.47

286
* Mon Dec 20 1999 Jody Goldberg <jgoldberg@home.com>
287 288 289
- Updated the libglade dependancy.
- Remove req for guile.  We can build without it.

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

293 294 295 296 297
* 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

298 299
* Tue Mar 9  1999 Gregory McLean <gregm@comstar.net>
- Updated the spec file.
300 301 302

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