gnumeric-vl.spec 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  1. %define gnumeric_version %{version}-bonobo
  2. %define goffice_version 0.8.17
  3. Summary: A spreadsheet program for GNOME.
  4. Summary(ja): GNOME スプレッドシート
  5. Name: gnumeric
  6. Version: 1.10.17
  7. Release: 2%{?_dist_release}
  8. License: GPLv2
  9. Group: Applications/Productivity
  10. URL: http://www.gnome.org/projects/gnumeric
  11. Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/1.10/%{name}-%{version}.tar.bz2
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. # default font: VL Gothic
  14. Patch0: gnumeric-1.10.17-vlgothic.patch
  15. Patch1: gnumeric-1.10.17-libgsf.patch
  16. Distribution: Vine Linux
  17. Vendor: Project Vine
  18. BuildRequires: gtk2-devel >= 2.10.0
  19. BuildRequires: libglade2-devel >= 2.3.6
  20. BuildRequires: libgnomeprint-devel >= 2.8.2
  21. BuildRequires: libgnomeprintui-devel >= 2.8.2
  22. BuildRequires: libart_lgpl-devel >= 2.3.11
  23. BuildRequires: libxml2-devel >= 2.4.12
  24. BuildRequires: libgsf-devel >= 1.13.2
  25. BuildRequires: goffice-devel >= %{goffice_version}
  26. BuildRequires: libbonobo-devel libgnomeui-devel
  27. BuildRequires: libffi-devel
  28. #BuildPreReq: libgda-devel >= 1.9.100
  29. #BuildPreReq: libgnomedb-devel >= 1.9.100
  30. BuildRequires: perl python-devel
  31. BuildRequires: automake autoconf libtool docbook-utils
  32. BuildRequires: intltool >= 0.28 desktop-file-utils
  33. BuildRequires: libSM-devel
  34. Requires: gtk2 >= 2.10.0
  35. Requires: libglade2 >= 2.3.6
  36. Requires: libgnomeprint >= 2.8.2
  37. Requires: libgnomeprintui >= 2.8.2
  38. Requires: libgsf >= 1.14.6
  39. Requires: perl python
  40. Requires: GConf2 scrollkeeper
  41. # no longer devel package
  42. #Provides: %{name}-devel
  43. Obsoletes: %{name}-devel
  44. %description
  45. GNOME (GNU Network Object Model Environment) is a user-friendly set of
  46. applications and desktop tools to be used in conjunction with a window
  47. manager for the X Window System.
  48. This is the Gnumeric, a spreadsheet for GNOME. It aims to be a drop in
  49. replacement for commercial spreadsheets. It provides import/export from
  50. MS Excel files and many other formats (csv, latex, xbase, applix).
  51. %description -l ja
  52. GNOME (GNU Network Object Model Environment)は
  53. Xウィンドウシステム用の、ウィンドウマネージャと連結した
  54. GUIアプリケーションおよびデスクトップツールのセットです。
  55. これは Gnumeric, GNOMEスプレッドシート・プログラムです。
  56. 商用のスプレッドシート・プログラムを代替できるものを目指しています。
  57. MS Excelファイルや他の多くのフォーマット(csv, latex, xbase, applix)
  58. を読込み、出力できます.
  59. # %package devel
  60. #Summary: Files necessary to develop gnumeric-based applications.
  61. #Group: Development/Libraries
  62. #Requires: %{name} = %{PACKAGE_VERSION}
  63. #%#description devel
  64. #The gnumeric-devel package includes files necessary to develop gnumeric-based
  65. #applications.
  66. #Install gnumeric-devel if you want to develop programs which will use gnumeric.
  67. %prep
  68. %setup -q
  69. %patch0 -p1 -b .vlgothic
  70. %patch1 -p1 -b .libgsf
  71. %build
  72. %ifarch alpha
  73. MYARCH_FLAGS="--host=alpha-redhat-linux"
  74. %endif
  75. export mllibname=%{_lib}
  76. %configure --with-gnome \
  77. --with-gda --without-gb --with-perl --with-python \
  78. --disable-schemas-install
  79. make
  80. %install
  81. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  82. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  83. make DESTDIR=$RPM_BUILD_ROOT install
  84. unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  85. ./mkinstalldirs $RPM_BUILD_ROOT%{_datadir}/applications
  86. desktop-file-install --vendor gnome --delete-original \
  87. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  88. --add-category Office \
  89. --add-category Application \
  90. --add-category Spreadsheet \
  91. --remove-mime-type="zz-application/zz-winassoc-xls" \
  92. $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
  93. %find_lang %{name}
  94. %find_lang %{name}-functions
  95. cat %{name}-functions.lang >> %{name}.lang
  96. rm -rf $RPM_BUILD_ROOT%{_libdir}/libspreadsheet.la
  97. rm -rf $RPM_BUILD_ROOT%{_libdir}/goffice/%{goffice_version}/plugins/gnumeric/*.la
  98. rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig
  99. rm -rf $RPM_BUILD_ROOT%{_includedir}/libspreadsheet-1.10
  100. rm -rf $RPM_BUILD_ROOT%{_localstatedir}/scrollkeeper
  101. %clean
  102. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  103. %post
  104. /sbin/ldconfig
  105. scrollkeeper-update > /dev/null 2>&1 || :
  106. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  107. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gnumeric*.schemas > /dev/null
  108. touch --no-create %{_datadir}/icons/hicolor || :
  109. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  110. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  111. fi
  112. %pre
  113. if [ "$1" -gt 1 ]; then
  114. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  115. gconftool-2 --makefile-uninstall-rule \
  116. %{_sysconfdir}/gconf/schemas/gnumeric*.schemas >& /dev/null ||:
  117. fi
  118. %preun
  119. if [ "$1" -eq 0 ]; then
  120. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  121. gconftool-2 --makefile-uninstall-rule \
  122. %{_sysconfdir}/gconf/schemas/gnumeric*.schemas >& /dev/null ||:
  123. fi
  124. %postun
  125. /sbin/ldconfig
  126. scrollkeeper-update > /dev/null 2>&1 || :
  127. touch --no-create %{_datadir}/icons/hicolor || :
  128. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  129. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  130. fi
  131. %files -f %{name}.lang
  132. %defattr (-, root, root)
  133. %doc AUTHORS BUGS *ChangeLog* COPYING HACKING NEWS README
  134. %config %{_sysconfdir}/gconf/schemas/*
  135. %{_bindir}/*
  136. %{_libdir}/lib*.so*
  137. %{_libdir}/gnumeric
  138. %{_libdir}/goffice/%{goffice_version}/plugins/gnumeric/*
  139. #{_libdir}/bonobo/servers/*
  140. %{_datadir}/applications/*.desktop
  141. %{_datadir}/glib-2.0/schemas/*.xml
  142. %{_datadir}/gnome/help/gnumeric
  143. %{_datadir}/gnumeric
  144. %{_datadir}/pixmaps/*
  145. #{_datadir}/mime-info/*
  146. #{_datadir}/mc/templates/*
  147. %{_datadir}/omf/*
  148. %{_datadir}/icons/hicolor/*
  149. %{_mandir}/man*/*
  150. %exclude %{_datadir}/pixmaps/win32-gnumeric.ico
  151. #%{_libexecdir}/gnumeric-component
  152. #%#dir %{_libdir}/gnumeric
  153. #%#dir %{_libdir}/gnumeric/%{bonobover}
  154. #%#dir %{_libdir}/gnumeric/%{bonobover}/plugins
  155. #%#dir %{_libdir}/gnumeric/%{bonobover}/plugins/*
  156. # This is really silly. The .la files are useless for plugins.
  157. #%#{_libdir}/gnumeric/%{bonobover}/plugins/*/*.la
  158. #%#{_libdir}/gnumericConf.sh
  159. #%#if %{bonobo}
  160. #%#dir %{_datadir}/gnumeric
  161. #%#dir %{_datadir}/gnumeric/%{bonobover}
  162. #%#{_datadir}/gnumeric/%{bonobover}/idl
  163. #%#endif
  164. %changelog
  165. * Fri Dec 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.17-2
  166. - rebuild with libgsf-1.14.22
  167. - add Patch1 (gnumeric-1.10.17-libgsf.patch)
  168. * Wed Aug 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.17-1
  169. - new upstream release
  170. - update Patch0
  171. * Sat Apr 09 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.14-1
  172. - new upstream release
  173. * Sat Feb 05 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.13-1
  174. - new upstream release
  175. - add Patch0 (gnumeric-1.10.13-vlgothic.patch)
  176. * Thu Dec 09 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.12-1
  177. - new upstream release
  178. * Sat Oct 16 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.11-1
  179. - new upstream release
  180. * Sun Sep 12 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.10-1
  181. - new upstream release
  182. * Mon Aug 23 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.9-1
  183. - new upstream release
  184. - add desktop-file-install option: --remove-mime-type="zz-application/zz-winassoc-xls"
  185. (fix error of MIME type)
  186. * Sun Aug 15 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.8-1
  187. - new upstream release
  188. * Mon Jul 19 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.7-1
  189. - new upstream release
  190. * Wed Jun 23 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.6-1
  191. - new upstream release
  192. - fix %post and %postun
  193. * Thu Apr 29 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.2-1
  194. - new upstream release
  195. * Sun Feb 28 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.1-1
  196. - new upstream release
  197. - add BuildRequires: libSM-devel
  198. - fix BuildRequires: goffice-devel >= 0.8.1
  199. * Sun May 17 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.3-3
  200. - spec in UTF-8 (fixed)
  201. * Sat May 9 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.3-2
  202. - spec in UTF-8
  203. - added BuildRequires: libffi-devel
  204. - added %%pre, %%preun section
  205. * Mon Jun 23 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.3-1
  206. - new upstream release
  207. - built with libgda-3.1.4, libgnomedb-3.1.2
  208. - applied new versioning policy
  209. * Mon Mar 10 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.2-0vl1
  210. - new upstream release
  211. * Sat Jun 17 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.6.3-0vl2
  212. - rebuild
  213. * Fri May 5 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.3-0vl1
  214. - new upstream release
  215. * Sun Mar 12 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.2-0vl1
  216. - new upstream release
  217. - updated build dependancies
  218. - rebuilt with libgsf-1.14.0
  219. - built with libgda and libgnomedb again
  220. * Tue Nov 15 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.1-0vl1
  221. - new upstream release
  222. - updated build dependancies
  223. - not compile with libgda and libgnomedb in this version
  224. * Mon Mar 14 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.3-0vl1
  225. - new upstream release
  226. * Fri Feb 11 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.2-0vl2
  227. - rebuild with libgda 1.2.0 and libgnome 1.2.0
  228. * Tue Jan 18 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.2-0vl1
  229. - new upstream release
  230. * Mon Dec 13 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.1-0vl1
  231. - new upstream release
  232. * Thu Dec 2 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.0-0vl1
  233. - new upstream release
  234. * Fri Nov 12 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.13-0vl2
  235. - rebuild with gnome-2.8 environment and libgsf-1.10.1
  236. * Tue Jun 29 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.13-0vl1
  237. - new upstream release
  238. - added BuildRequires: desktop-file-utils
  239. * Thu May 6 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.12-0vl1
  240. - new upstream release
  241. - Requires: libgsf >= 1.9.0, BuildPrereq: libgsf-devel >= 1.9.0
  242. * Wed Apr 21 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.11-0vl1
  243. - new upstream release
  244. * Wed Apr 14 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.10-0vl1
  245. - new upstream release
  246. * Sun Apr 11 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.9-0vl1
  247. - new upstream release
  248. * Thu Mar 18 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.8-0vl1
  249. - new upstream release
  250. * Wed Mar 17 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.7-0vl1
  251. - new upstream release
  252. - clean up spec file (a little bit!)
  253. * Thu Jan 22 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.5-0vl1
  254. - new upstream release
  255. * Fri Jan 16 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.4-0vl1
  256. - new upstream release
  257. - to use intltool-0.28
  258. * Sun Dec 28 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.3-0vl1
  259. - new upstream release
  260. - rebuild with new toolchains
  261. * Sun Nov 30 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.2-0vl1
  262. - new upstream release
  263. - build with new libgnomeprint, libgnomeprintui
  264. * Fri Oct 10 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.1-0vl1
  265. - new upstream release
  266. * Thu Oct 2 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-0vl2
  267. - rebuild with newer libgda, libgnomedb
  268. * Thu Sep 25 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-0vl1
  269. - updated to 1.2.0 (stable release)
  270. - guile support is temporarily off this version.
  271. * Mon Sep 9 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.20-1vl1
  272. - update to 1.1.20 (gtk+-2 port)
  273. - based on Redhat Rawhide 1.1.20-1
  274. * Thu May 1 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.13-0vl1
  275. - update to 1.0.13
  276. - rebuild with gal 0.24
  277. * Sun Mar 9 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.12-0vl2
  278. - guile support on
  279. - rebuild with new gal, bonobo, libgda
  280. * Fri Feb 7 2003 Masaki Shinomiya <shino@pos.to> 1.0.12-0vl1
  281. - New upstream release, remove xmliobackward.patch
  282. * Mon Dec 16 2002 Masaki Shinomiya <shino@pos.to> 1.0.11-0vl2
  283. - xml-io back to 1.0.10 because japanese corrups with new xml_parser
  284. * Sun Dec 15 2002 Masaki Shinomiya <shino@pos.to> 1.0.11-0vl1
  285. - New upstream release, fix for xml importing files with non ASCII characters.
  286. - Without guile, changelog.archive, requires, build scripts, description
  287. * Mon Nov 19 2002 Masaki Shinomiya <shino@pos.to> 1.0.10-0vl2
  288. - files: add gnumericConf.sh, which was missing
  289. * Mon Nov 4 2002 Masaki Shinomiya <shino@pos.to> 1.0.10-0vl1
  290. - New upstream release.
  291. - BuildPrereq oaf-devel
  292. * Mon Jul 29 2002 Masaki Shinomiya <shino@pos.to> 1.0.9-0vl1
  293. - New upstream release.
  294. * Mon Jul 1 2002 Masaki Shinomiya <shino@pos.to> 1.0.8-0vl1
  295. - New upstream release.
  296. - Default font and Japanese fonts in excel
  297. - requires
  298. * Sun Jun 30 2002 Masaki Shinomiya <shino@pos.to> 1.0.7-0vl1
  299. - New upstream release.
  300. - fixed plugins, apply patch2, remove patch3
  301. - files - no longer devel package
  302. - function-reference.html in help file
  303. * Thu Jan 24 2002 Akira TAGOH <tagoh@gnome.gr.jp> 1.0.3-0vl1
  304. - New upstream release.
  305. * Wed Jan 16 2002 Akira TAGOH <tagoh@gnome.gr.jp> 1.0.2-0vl1
  306. - New upstream release.
  307. - Fixed several owner dir.
  308. * Tue Jan 15 2002 Akira TAGOH <tagoh@gnome.gr.jp> 1.0.1-0vl2
  309. - Build against with new gal
  310. * Mon Jan 7 2002 Akira TAGOH <tagoh@gnome.gr.jp> 1.0.1-0vl1
  311. - New upstream release.
  312. * Fri Jan 4 2002 Akira TAGOH <tagoh@gnome.gr.jp> 1.0.0-0vl1
  313. - New upstream release.
  314. * Fri Dec 28 2001 Akira TAGOH <tagoh@gnome.gr.jp> 0.99.1-0vl1
  315. - New upstream release.
  316. - Applied XIM over-the-spot patch.
  317. - Fixed directories owner.
  318. * Wed Dec 19 2001 Akira TAGOH <tagoh@gnome.gr.jp> 0.99.0-0vl1
  319. - New upstream release.
  320. - Enable Bonobo.
  321. - Merged several RH patches.
  322. - Added BuildPreReq tags.
  323. * Tue Jun 19 2001 Akira TAGOH <tagoh@gnome.gr.jp> 0.61-0vl3
  324. - Fixed packaging mistake.
  325. * Mon May 14 2001 Akira TAGOH <tagoh@gnome.gr.jp> 0.61-0vl2
  326. - Rebuild for GAL 0.7
  327. * Fri Mar 23 2001 Akira TAGOH <tagoh@gnome.gr.jp> 0.61-0vl1
  328. - New upstream release.
  329. - Use rpmmacros.
  330. * Mon Feb 5 2001 Jun Nishii <jun@vinelinux.org>
  331. - 0.56-0vl2
  332. - update ja.po
  333. - avoid core dump when inserting a row
  334. * Mon Jul 10 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  335. - updated to 0.56
  336. - remake spec with the orginal gnumeric spec file.
  337. - added ms_excel_read and edit_item patch from Japanese gnome users mailing list.
  338. * Tue May 16 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  339. - updated to 0.53
  340. - remake SPEC based on gnumeric original.
  341. - added libxml183 patch for libxml 1.8.3
  342. * Thu Mar 29 2000 Kjartan Maraas <kmaraas@online.no>
  343. - Removed gnome-gnumeric-xl.png since it is nowhere to be found.
  344. - Added --without-bonobo and --without-gb.
  345. - Added %define for sysconfdir
  346. * Mon Feb 29 2000 Jody Goldberg <jgolbderg@home.com>
  347. - Updated version requirements for gnome-print, and gnome-libs.
  348. * Sun Jan 30 2000 Gregory McLean <gregm@comstar.net>
  349. - Added in some auto-detect the language files logic (rpm 3.0.xx only)
  350. * Mon Jan 12 2000 Jody Goldberg <jgolbderg@home.com>
  351. - Add depend on gtk+ >= 1.2.2 so that we can get gtk_object_get.
  352. * Mon Jan 03 2000 Gregory McLean <gregm@comstar.net>
  353. - Updated to 0.47
  354. * Mon Dec 20 1999 Jody Goldberg <jgolbderg@home.com>
  355. - Updated the libglade dependancy.
  356. - Remove req for guile. We can build without it.
  357. * Thu Sep 02 1999 Gregory McLean <gregm@comstar.net>
  358. - Added small fix so glade generated dialogs appear.
  359. * Wed Jul 14 1999 Gregory McLean <gregm@comstar.net>
  360. - Added the gnome-print requirement.
  361. - Updated the file list to try and quiet down the updating.
  362. - added the sysconfdir
  363. * Tue Mar 9 1999 Gregory McLean <gregm@comstar.net>
  364. - Updated the spec file.
  365. * Thu Sep 24 1998 Michael Fulbright <msf@redhat.com>
  366. - Version 0.2