gnumeric.spec.in 5.07 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
19
Requires: gnome-print >= 0.24
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.0.1
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 85 86 87

%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
%config %{prefix}/share/gnome/apps/Applications/gnumeric.desktop
%{prefix}/share/pixmaps/gnumeric/*
%{prefix}/share/pixmaps/gnome-gnumeric.png
88
%{prefix}/share/gnumeric/@VERSION@/templates/*.gnumeric
89
%{prefix}/share/gnumeric/@VERSION@/autoformat-templates/*.xml
90 91 92 93 94 95 96 97 98
%{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
%config %{sysconfdir}/CORBA/servers/gnumeric.gnorba
99
%doc HACKING AUTHORS ChangeLog NEWS BUGS README COPYING TODO
100 101

%changelog
102 103 104
* Sun Oct 01 2000 Almer S. Tigelaar <almer1@dds.nl>
- Make some minor adjustments for the autoformatter

105
* Thu Sep 28 2000 Jody Goldberg <jgoldberg@home.com>
106 107
- Updated version requirements for gnome-print

108
* Wed Sep 20 2000 Jody Goldberg <jgoldberg@home.com>
Jody Goldberg's avatar
Jody Goldberg committed
109 110 111
- Updated version requirements for glade
- Looks like someone already added gal.

112 113 114 115 116
* 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
117 118
- Updated version requirements for gnome-print

119
* Sat Jun 21 2000 Jody Goldberg <jgoldberg@home.com>
Jody Goldberg's avatar
Jody Goldberg committed
120 121
- Add libole2

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

125 126 127 128
* 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
129 130 131 132 133
* 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

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

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

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

143 144 145
* Mon Jan 03 2000 Gregory McLean <gregm@comstar.net>
- Updated to 0.47

146
* Mon Dec 20 1999 Jody Goldberg <jgoldberg@home.com>
147 148 149
- Updated the libglade dependancy.
- Remove req for guile.  We can build without it.

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

153 154 155 156 157
* 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

158 159
* Tue Mar 9  1999 Gregory McLean <gregm@comstar.net>
- Updated the spec file.
160 161 162 163

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