gnumeric.spec.in 5.68 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 11
Release: 	%rel
Copyright: 	GPL
Group: 		Applications/Spreadsheets
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
Jody Goldberg's avatar
Jody Goldberg committed
22
Requires: libole2 >= 0.1.4
23
Requires: gal >= 0.2.2.0
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

%prep
37
%setup -q
38 39

%build
40
%ifarch alpha
41
  MYARCH_FLAGS="--host=alpha-redhat-linux"
42
%endif
43
# Configure only showing me failures.
44 45 46
CFLAGS="$RPM_OPT_FLAGS" \
./configure --quiet --prefix=%prefix --sysconfdir=%{sysconfdir} \
            --without-bonobo --without-gb $MYARCH_FLAGS 
47 48

if [ "$SMP" != "" ]; then
49
	make -j$SMP "MAKE=make -j$SMP"
50
else
51
	make
52 53 54
fi

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

57
make prefix=$RPM_BUILD_ROOT%{prefix} sysconfdir=$RPM_BUILD_ROOT%{sysconfdir} install
58 59 60 61 62
#
# Auto detect the lang files.
#
if [ -f /usr/lib/rpm/find-lang.sh ] ; then
 /usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT %name
63 64
 sed "s:(644, root, root, 755):(444, bin, bin, 555):" %{name}.lang \
 >tmp.lang && mv tmp.lang %{name}.lang
65
fi
66

67

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

71
%files -f %{name}.lang
72 73 74

%defattr (0555, bin, bin)
%{prefix}/bin/gnumeric
75
%{prefix}/lib/gnumeric/%{version}/plugins/*.so
76

77 78
%{prefix}/share/gnumeric/%{version}/python/*
%{prefix}/share/gnumeric/%{version}/glade/*.glade
79 80 81 82 83 84

%defattr (0444, bin, man, 0555)
%{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
85
%{prefix}/share/gnome/ui/gnumeric.xml
86 87
%config %{prefix}/share/gnome/apps/Applications/gnumeric.desktop
%{prefix}/share/pixmaps/gnumeric/*
Jody Goldberg's avatar
Jody Goldberg committed
88 89
%{prefix}/share/pixmaps/gnome-application-x-gnumeric.png
%{prefix}/share/pixmaps/gnome-application-x-xls.png
90
%{prefix}/share/pixmaps/gnome-gnumeric.png
91
%{prefix}/share/gnumeric/@VERSION@/templates/*.gnumeric
92
%{prefix}/share/gnumeric/@VERSION@/autoformat-templates/*.xml
93 94 95 96 97 98 99 100
%{prefix}/share/mime-info/gnumeric.keys
%{prefix}/share/mime-info/gnumeric.mime
%{prefix}/share/mc/templates/gnumeric.desktop


%defattr (0444, bin, bin, 555)
# This should go in a devel package...
%{prefix}/share/idl/*.idl
Jody Goldberg's avatar
Jody Goldberg committed
101
%{prefix}/share/gnumeric/@VERSION/idl/*.idl
102
%config %{sysconfdir}/CORBA/servers/gnumeric.gnorba
103
%doc HACKING AUTHORS ChangeLog NEWS BUGS README COPYING TODO
104 105

%changelog
106 107 108
* Thu Nov 09 2000 Jody Goldberg <jgoldberg@home.com>
- Updated version requirements for GAL

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

Jody Goldberg's avatar
Jody Goldberg committed
112 113 114 115 116 117
* 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.  ;-)

118 119 120
* Sun Oct 01 2000 Almer S. Tigelaar <almer1@dds.nl>
- Make some minor adjustments for the autoformatter

121
* Thu Sep 28 2000 Jody Goldberg <jgoldberg@home.com>
122 123
- Updated version requirements for gnome-print

124
* Wed Sep 20 2000 Jody Goldberg <jgoldberg@home.com>
Jody Goldberg's avatar
Jody Goldberg committed
125 126 127
- Updated version requirements for glade
- Looks like someone already added gal.

128 129 130 131 132
* 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
133 134
- Updated version requirements for gnome-print

135
* Sat Jun 21 2000 Jody Goldberg <jgoldberg@home.com>
Jody Goldberg's avatar
Jody Goldberg committed
136 137
- Add libole2

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

141 142 143 144
* 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
145 146 147 148 149
* 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

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

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

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

159 160 161
* Mon Jan 03 2000 Gregory McLean <gregm@comstar.net>
- Updated to 0.47

162
* Mon Dec 20 1999 Jody Goldberg <jgoldberg@home.com>
163 164 165
- Updated the libglade dependancy.
- Remove req for guile.  We can build without it.

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

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

174 175
* Tue Mar 9  1999 Gregory McLean <gregm@comstar.net>
- Updated the spec file.
176 177 178

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