gnumeric.spec.in 6.56 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.25
Jody Goldberg's avatar
Jody Goldberg committed
20
Requires: libglade >= 0.14
21
Requires: libxml >= 1.8.5
22
Requires: libole2 >= 0.1.7
23
Requires: gal >= 0.2.2
24 25

%description
26 27 28 29 30 31 32 33 34
GNOME (GNU Network Object Model Environment) is a user-friendly set of
applications and desktop tools to be used in conjunction with a window
manager for the X Window System.  GNOME is similar in purpose and scope
to CDE and KDE, but GNOME is based completely on free software.

This is the Gnumeric, the GNOME spreadsheet program. If you are familiar with 
Excel, you should be ready to use Gnumeric.  We have tried to clone all of 
the good features and stay as compatible as possible with Excel in terms of 
usability. Hopefully we left the bugs behind :).
35

36 37 38 39 40 41 42 43 44 45
%package devel
Summary: Files necessary to develop gnumeric-based applications.
Group: Development/Libraries

%description devel
The gnumeric-devel package includes files necessary to develop gnumeric-based
applications.

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

46
%prep
47
%setup -q
48 49

%build
50
%ifarch alpha
51
	MYARCH_FLAGS="--host=alpha-redhat-linux"
52
%endif
53 54 55 56 57 58 59 60 61 62

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

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

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

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

83

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

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

%defattr (0555, bin, bin)
%{prefix}/bin/gnumeric
91
%{prefix}/lib/gnumeric/%{version}/plugins/*.so
92
# Should these really be executable?
93
%{prefix}/share/gnumeric/%{version}/python/*
94

95 96 97
%defattr (0444, bin, bin, 0555)
%doc HACKING AUTHORS ChangeLog NEWS BUGS README COPYING TODO
%config %{sysconfdir}/CORBA/servers/gnumeric.gnorba
98 99 100 101
%{prefix}/share/gnome/help/gnumeric/C/images/*
%{prefix}/share/gnome/help/gnumeric/C/*.html
%{prefix}/share/gnome/help/gnumeric/C/*.dat
%{prefix}/share/gnome/help/gnumeric/C/docbook.css
Jody Goldberg's avatar
Jody Goldberg committed
102
%{prefix}/share/gnome/ui/gnumeric.xml
103 104
%config %{prefix}/share/gnome/apps/Applications/gnumeric.desktop
%{prefix}/share/pixmaps/gnumeric/*
Jody Goldberg's avatar
Jody Goldberg committed
105 106
%{prefix}/share/pixmaps/gnome-application-x-gnumeric.png
%{prefix}/share/pixmaps/gnome-application-x-xls.png
107
%{prefix}/share/pixmaps/gnome-gnumeric.png
108 109 110
%{prefix}/share/gnumeric/%{version}/glade/*.glade
%{prefix}/share/gnumeric/%{version}/templates/*.gnumeric
%{prefix}/share/gnumeric/%{version}/autoformat-templates/*.xml
111 112 113
%{prefix}/share/mime-info/gnumeric.keys
%{prefix}/share/mime-info/gnumeric.mime
%{prefix}/share/mc/templates/gnumeric.desktop
114
%{prefix}/share/oaf/gnumeric.oafinfo
115

116 117
%files devel
%defattr (-, bin, bin)
118

119 120 121
%{prefix}/lib/gnumericConf.sh
%{prefix}/share/gnumeric/%{version}/idl/*.idl
%{prefix}/lib/gnumeric/%{version}/plugins/*.la
122 123

%changelog
124 125 126 127 128 129 130 131 132
* 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).

133 134 135
* Thu Nov 09 2000 Jody Goldberg <jgoldberg@home.com>
- Updated version requirements for GAL

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

Jody Goldberg's avatar
Jody Goldberg committed
139 140 141 142 143 144
* 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.  ;-)

145 146 147
* Sun Oct 01 2000 Almer S. Tigelaar <almer1@dds.nl>
- Make some minor adjustments for the autoformatter

148
* Thu Sep 28 2000 Jody Goldberg <jgoldberg@home.com>
149 150
- Updated version requirements for gnome-print

151
* Wed Sep 20 2000 Jody Goldberg <jgoldberg@home.com>
Jody Goldberg's avatar
Jody Goldberg committed
152 153 154
- Updated version requirements for glade
- Looks like someone already added gal.

155 156 157 158 159
* 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
160 161
- Updated version requirements for gnome-print

162
* Sat Jun 21 2000 Jody Goldberg <jgoldberg@home.com>
Jody Goldberg's avatar
Jody Goldberg committed
163 164
- Add libole2

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

168 169 170 171
* 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
172 173 174 175 176
* 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

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

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

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

186 187 188
* Mon Jan 03 2000 Gregory McLean <gregm@comstar.net>
- Updated to 0.47

189
* Mon Dec 20 1999 Jody Goldberg <jgoldberg@home.com>
190 191 192
- Updated the libglade dependancy.
- Remove req for guile.  We can build without it.

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

196 197 198 199 200
* 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

201 202
* Tue Mar 9  1999 Gregory McLean <gregm@comstar.net>
- Updated the spec file.
203 204 205

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