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