]> git.pld-linux.org Git - packages/gnumeric.git/blob - gnumeric.spec
- really dropped gnome-mime
[packages/gnumeric.git] / gnumeric.spec
1 #
2 # Conditional build:
3 %bcond_without  gda     # build without gda
4 %bcond_without  gnome   # build without gnome
5 %bcond_without  mono    # build without mono scripting engine
6 %bcond_without  python  # build without python support
7 #
8 %ifnarch %{ix86} amd64 arm hppa ppc s390 sparc sparcv9 sparc64
9 %undefine       with_mono
10 %endif
11 %include        /usr/lib/rpm/macros.perl
12 Summary:        The GNOME spreadsheet
13 Summary(es):    La hoja de cálculo del GNOME
14 Summary(pl):    Arkusz kalkulacyjny GNOME
15 Summary(pt_BR): A planilha do GNOME
16 Summary(ru):    üÌÅËÔÒÏÎÎÙÅ ÔÁÂÌÉÃÙ ÄÌÑ GNOME
17 Summary(uk):    åÌÅËÔÒÏÎΦ ÔÁÂÌÉæ ÄÌÑ GNOME
18 Summary(zh_CN): LinuxϵÄExcel -- GNOMEµç×Ó±í¸ñ
19 Name:           gnumeric
20 Version:        1.4.3
21 Release:        4
22 Epoch:          1
23 License:        GPL
24 Group:          X11/Applications
25 Vendor:         Gnumeric List <gnumeric-list@gnome.org>
26 Source0:        http://ftp.gnome.org/pub/gnome/sources/%{name}/1.4/%{name}-%{version}.tar.bz2
27 # Source0-md5:  b684eec48b1696d7a8d7152d1e17741c
28 Patch0:         %{name}-help-path.patch
29 URL:            http://www.gnome.org/gnumeric/
30 BuildRequires:  GConf2-devel
31 BuildRequires:  ORBit2-devel >= 2.4.2
32 BuildRequires:  autoconf >= 2.52
33 BuildRequires:  automake
34 BuildRequires:  bison
35 BuildRequires:  docbook-utils
36 BuildRequires:  flex
37 BuildRequires:  gettext-devel
38 BuildRequires:  glib2-devel >= 1:2.4.4
39 BuildRequires:  gnome-common >= 2.8.0-2
40 BuildRequires:  gtk+2-devel >= 2:2.4.4
41 BuildRequires:  intltool >= 0.28
42 BuildRequires:  libart_lgpl-devel >= 2.3.12
43 %if %{with gnome}
44 BuildRequires:  libbonobo-devel >= 2.6.0
45 BuildRequires:  libbonoboui-devel >= 2.6.0
46 BuildRequires:  libgsf-gnome-devel >= 1.11.0
47 %endif
48 %if %{with gda}
49 BuildRequires:  libgda-devel >= 1.0.1
50 BuildRequires:  libgnomedb-devel >= 1.2.1
51 %endif
52 BuildRequires:  libglade2-devel >= 1:2.4.0
53 %{?with_gnome:BuildRequires:    libgnome-devel >= 2.6.0}
54 BuildRequires:  libgnomecanvas-devel >= 2.6.0
55 BuildRequires:  libgnomeprint-devel >= 2.8.1
56 BuildRequires:  libgnomeprintui-devel >= 2.8.1
57 %{?with_gnome:BuildRequires:    libgnomeui-devel >= 2.6.0}
58 BuildRequires:  libgsf-devel >= 1.11.0
59 BuildRequires:  libtool
60 BuildRequires:  libxml2-devel >= 2.4.12
61 %{?with_mono:BuildRequires:     mono-devel >= 1.0.0}
62 BuildRequires:  pango-devel >= 1:1.6.0
63 BuildRequires:  perl-base
64 BuildRequires:  psiconv-devel >= 0.9.3
65 %if %{with python}
66 BuildRequires:  python-devel >= 2.2
67 BuildRequires:  python-pygtk-devel >= 2.0.0
68 %endif
69 Requires(post,preun):   GConf2 >= 2.10.0
70 Requires(post,postun):  desktop-file-utils
71 Requires(post,postun):  scrollkeeper
72 %if %{with python}
73 Requires:       python-modules
74 %endif
75 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
76
77 %description
78 GNOME based spreadsheet. Gnumeric is a spreadsheet program for GNOME.
79 This program is intended to be a replacement for a commercial
80 spreadsheet, so quite a bit of work has gone into the program. If you
81 are familiar with Excel, you should be ready to use Gnumeric. We have
82 tried to clone all of the good features and stay as compatible as
83 possible with Excel in terms of usability.
84
85 %description -l es
86 Gnumeric es un programa de hoja de cálculo para GNOME. Este programa
87 procura ser reemplazar los programas comerciales, así que ha gozado
88 bastante esfuerzo. Si conoce Excel, debería estar preparado para usar
89 Gnumeric. Intentamos clonar todas las buenas cualidades y seguir lo
90 más compatible que fuera posible, en cuanto a la usabilidad.
91
92 %description -l pl
93 Bazuj±cy na GNOME arkusz kalkulacyjny. Je¶li znasz arkusz Excel to
94 jeste¶ gotów na u¿ywanie Gnumerica. Starali¶my siê sklonowaæ wszystkie
95 dobre cechy i byæ kompatybilnym z Excelem w sensie u¿yteczno¶ci.
96
97 %description -l pt_BR
98 Este pacote instala a planilha do GNOME, que foi feita para substituir
99 qualquer planilha comercial, pois uma quantidade razoável de trabalho
100 foi (e está sendo) colocada para torná-la a melhor possível.
101
102 %description -l ru
103 Gnumeric - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÜÌÅËÔÒÏÎÎÙÈ ÔÁÂÌÉàÄÌÑ GNOME.
104
105 %description -l uk
106 Gnumeric - ÃÅ ÐÒÏÇÒÁÍÁ ÅÌÅËÔÒÏÎÎÉÈ ÔÁÂÌÉÃØ ÄÌÑ GNOME.
107
108 %prep
109 %setup -q
110 %patch0 -p0
111
112 %build
113 rm -f ./omf.make
114 cp /usr/share/gnome-common/data/omf.make .
115 %{__glib_gettextize}
116 %{__intltoolize}
117 %{__libtoolize}
118 %{__aclocal}
119 %{__autoheader}
120 %{__autoconf}
121 %{__automake}
122 %configure \
123         --disable-static \
124         --disable-schemas-install \
125         --with-psiconv \
126         --with%{!?with_gnome:out}-gnome \
127         --with%{!?with_python:out}-python \
128         --with%{!?with_gda:out}-gda \
129         --with%{!?with_mono:out}-mono \
130         --without-guile \
131         --without-gb
132
133 %{__make}
134
135 %install
136 rm -rf $RPM_BUILD_ROOT
137
138 %{__make} install \
139         DESTDIR=$RPM_BUILD_ROOT \
140         docdir=/usr/share/gnome/help/gnumeric/C \
141         GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
142
143 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
144 rm -r $RPM_BUILD_ROOT%{_datadir}/mc/templates/gnumeric.desktop
145 rm -rf $RPM_BUILD_ROOT%{_datadir}/mime-info
146
147 ########################  FAKE !  ########################################
148 # Change location in omf file to real (needs update in every version up) #
149 ##########################################################################
150 sed -e 's#gnumeric/1.4.3/doc#gnome/help/gnumeric#' \
151 $RPM_BUILD_ROOT%{_omf_dest_dir}/%{name}/gnumeric-C.omf > \
152 $RPM_BUILD_ROOT%{_omf_dest_dir}/%{name}/gnumeric-C.omf.out
153
154 mv $RPM_BUILD_ROOT%{_omf_dest_dir}/%{name}/gnumeric-C.{omf.out,omf}
155 ######################## END FAKE ########################################
156
157 %find_lang %{name} --with-gnome
158
159 %clean
160 rm -rf $RPM_BUILD_ROOT
161
162 %post
163 %gconf_schema_install gnumeric-dialogs.schemas
164 %gconf_schema_install gnumeric-general.schemas
165 %gconf_schema_install gnumeric-plugins.schemas
166 %scrollkeeper_update_post
167 %update_desktop_database_post
168
169 %preun
170 %gconf_schema_uninstall gnumeric-dialogs.schemas
171 %gconf_schema_uninstall gnumeric-general.schemas
172 %gconf_schema_uninstall gnumeric-plugins.schemas
173
174 %postun
175 %scrollkeeper_update_postun
176 %update_desktop_database_postun
177
178 %files -f %{name}.lang
179 %defattr(644,root,root,755)
180 %doc AUTHORS ChangeLog NEWS README TODO
181 %{_sysconfdir}/gconf/schemas/*
182
183 %attr(755,root,root) %{_bindir}/*
184
185 %{_libdir}/bonobo/servers/*
186 %dir %{_libdir}/gnumeric
187 %dir %{_libdir}/gnumeric/%{version}*
188 %dir %{_libdir}/gnumeric/%{version}*/plugins
189 %dir %{_libdir}/gnumeric/%{version}*/plugins/*
190 %attr(755,root,root) %{_libdir}/gnumeric/%{version}*/plugins/*/*.so
191 %{_libdir}/gnumeric/%{version}*/plugins/*/*.glade
192 %{_libdir}/gnumeric/%{version}*/plugins/*/*.xml
193 %{_libdir}/gnumeric/%{version}*/plugins/*/*.la
194 %if %{with python}
195 %{_libdir}/gnumeric/%{version}*/plugins/*/*.py
196 %{_libdir}/gnumeric/%{version}*/plugins/gnome-glossary/glossary-po-header
197 %endif
198
199 %{_desktopdir}/*.desktop
200 %{_pixmapsdir}/*
201 %{_omf_dest_dir}/%{name}
202
203 %dir %{_datadir}/gnumeric
204 %dir %{_datadir}/gnumeric/%{version}*
205 %{_datadir}/gnumeric/%{version}*/*.xml
206 %{_datadir}/gnumeric/%{version}*/autoformat-templates
207 %{_datadir}/gnumeric/%{version}*/idl
208 %{_datadir}/gnumeric/%{version}*/glade
209 %{_datadir}/gnumeric/%{version}*/templates
210
211 %{_mandir}/man1/gnumeric.1*
212 %{_mandir}/man1/ssconvert.1*
This page took 0.039255 seconds and 4 git commands to generate.