gedit-vl.spec 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467
  1. %define glib2_version 2.24.0
  2. %define gtk2_version 2.20.0
  3. %define desktop_file_utils_version 0.3
  4. %define gtksourceview_version 2.6.0
  5. %define gnome_doc_utils_version 0.6.0
  6. %define pygobject_version 2.16.0
  7. %define gnome_python_desktop_version 2.26.0
  8. Summary: gedit is a small but powerful text editor for GNOME.
  9. Summary(ja): GNOME 用の小さくかつ強力なテキストエディタ
  10. Name: gedit
  11. Version: 2.30.3
  12. Release: 1%{?_dist_release}
  13. License: GPLv2
  14. Group: Applications/Editors
  15. Source0: http://ftp.gnome.org/pub/GNOME/sources/gedit/2.30/%{name}-%{version}.tar.bz2
  16. URL: http://gedit.sourceforge.net/
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. Requires(post,postun): scrollkeeper >= 0.3.11
  19. Requires(post,pre,preun): GConf2
  20. Requires: python pygtk2 pygtksourceview
  21. Requires: pygobject >= %{pygobject_version}
  22. BuildRequires: glib2-devel >= %{glib2_version}
  23. BuildRequires: gtk2-devel >= %{gtk2_version}
  24. BuildRequires: GConf2-devel
  25. BuildRequires: desktop-file-utils >= %{desktop_file_utils_version}
  26. BuildRequires: gtksourceview2-devel >= %{gtksourceview_version}
  27. BuildRequires: gnome-doc-utils >= %{gnome_doc_utils_version}
  28. BuildRequires: python-devel pygtk2-devel gtk-doc
  29. BuildRequires: pygobject-devel >= %{pygobject_version}
  30. BuildRequires: pygtksourceview-devel
  31. BuildRequires: perl-XML-Parser
  32. BuildRequires: libattr-devel
  33. BuildRequires: libffi-devel
  34. BuildRequires: intltool > 0.40
  35. BuildRequires: libSM-devel
  36. #BuildRequires: gnome-python-desktop >= %{gnome_python_desktop_version}
  37. Packager: daisuke, inagaki
  38. %description
  39. gedit is a small but powerful text editor designed specifically for
  40. the GNOME GUI desktop. gedit includes a plug-in API (which supports
  41. extensibility while keeping the core binary small), support for
  42. editing multiple documents using notebook tabs, and standard text
  43. editor functions.
  44. You will need to have GNOME and GTK+ installed to use gedit.
  45. %description -l ja
  46. gedit は GNOME 用の小さく、それでいて、強力なテキストエディタです。
  47. これは、コア部分は小さいままに、geditに対し多くの機能を拡張
  48. できるようにするための(画面分割モード等の)プラグインの機能や、
  49. 『タブ』ノートブックを利用した複数のドキュメント編集、そして、
  50. その他多くの機能を備えています。
  51. gedit には GNOME と GTK+2 が必要です
  52. %package devel
  53. Summary: The files needed for developing plug-ins for the gedit editor.
  54. Summary(ja): gedit エディタ用のプラグイン開発
  55. Group: Development/Libraries
  56. Requires: %{name} = %{version}-%{release}
  57. Requires: gtksourceview2-devel >= %{gtksourceview_version}
  58. %description devel
  59. gedit is a small but powerful text editor for the GNOME GUI desktop.
  60. This package allows you to develop plug-ins that work within gedit.
  61. Install gedit-devel if you want to write plug-ins for gedit.
  62. %description -l ja devel
  63. gedit は GNOME 用の小さく、それでいて、強力なテキストエディタです。
  64. このパッケージを用いてgedit内で動くプラグインを開発することができます。
  65. gedit のプラグインを開発する場合には gedit-devel をインストールしてください。
  66. %prep
  67. %setup -n gedit-%{version} -q
  68. %build
  69. %configure \
  70. --disable-scrollkeeper \
  71. --disable-schemas-install \
  72. --disable-spell \
  73. --disable-updater \
  74. --enable-attr
  75. make %{?_smp_mflags} V=1
  76. %install
  77. rm -rf $RPM_BUILD_ROOT
  78. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  79. make DESTDIR=$RPM_BUILD_ROOT install
  80. unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  81. desktop-file-install --delete-original \
  82. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  83. --add-only-show-in GNOME \
  84. $RPM_BUILD_ROOT%{_datadir}/applications/*
  85. ## clean up all the static libs for plugins (workaround for no -module)
  86. /bin/rm -f `find $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugin-loaders -name "*.la"`
  87. /bin/rm -f `find $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins -name "*.la"`
  88. /bin/rm -rf $RPM_BUILD_ROOT%{_localstatedir}/scrollkeeper
  89. ## clean up unpackage files
  90. #/bin/rm -rf $RPM_BUILD_ROOT%{_includedir}/gedit-2.20
  91. /bin/rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/gedit
  92. %find_lang %{name}
  93. %clean
  94. rm -rf $RPM_BUILD_ROOT
  95. %post
  96. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  97. scrollkeeper-update > /dev/null 2>&1 || :
  98. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  99. SCHEMAS="gedit.schemas gedit-file-browser.schemas"
  100. for S in $SCHEMAS; do
  101. gconftool-2 --makefile-install-rule \
  102. %{_sysconfdir}/gconf/schemas/$S > /dev/null
  103. done
  104. %pre
  105. if [ "$1" -gt 1 ]; then
  106. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  107. SCHEMAS="gedit.schemas gedit-file-browser.schemas"
  108. for S in $SCHEMAS; do
  109. gconftool-2 --makefile-uninstall-rule \
  110. %{_sysconfdir}/gconf/schemas/$S > /dev/null
  111. done
  112. fi
  113. %preun
  114. if [ "$1" -eq 0 ]; then
  115. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  116. SCHEMAS="gedit.schemas gedit-file-browser.schemas"
  117. for S in $SCHEMAS; do
  118. gconftool-2 --makefile-uninstall-rule \
  119. %{_sysconfdir}/gconf/schemas/$S > /dev/null
  120. done
  121. fi
  122. %postun
  123. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  124. scrollkeeper-update > /dev/null 2>&1 || :
  125. %files -f %{name}.lang
  126. %defattr(-, root, root)
  127. %doc AUTHORS COPYING ChangeLog NEWS README
  128. %{_sysconfdir}/gconf/schemas/*
  129. %{_bindir}/*
  130. %{_libdir}/gedit-2
  131. %{_libexecdir}/gedit-2
  132. %{_datadir}/applications
  133. %{_datadir}/gedit-2
  134. %{_datadir}/gnome
  135. %{_datadir}/omf
  136. %{_mandir}/man1/*
  137. %files devel
  138. %defattr(-, root, root)
  139. %{_includedir}/*
  140. %{_libdir}/pkgconfig/*.pc
  141. %changelog
  142. * Tue Jun 29 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.3-1
  143. - new upstream release
  144. * Sun May 30 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.2-1
  145. - new upstream release
  146. * Fri Apr 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-1
  147. - new upstream release
  148. - add BuildRequires: libSM-devel
  149. * Fri Feb 05 2010 Shu KONNO <owa@bg.wakwak.com> 2.28.2-3
  150. - rebuilt with python-2.6.4-3
  151. * Tue Dec 1 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.28.2-2
  152. - split devel package
  153. - added Requires: gtksourceview2 to devel package (<BTS:831>)
  154. * Sat Nov 21 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.28.2-1
  155. - new upstream release
  156. * Sun Nov 1 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.28.0-1
  157. - new upstream release
  158. - dropped Patch1 (merged into upstream)
  159. - added --disable-updater
  160. * Sun Aug 2 2009 Kazutaka HARADA <toshi.kd2@gmail.com> 2.26.3-1
  161. - new upstream release
  162. - added BuildRequires: libffi-devel
  163. * Fri Jun 19 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 2.26.2-2
  164. - add Patch1 to fix errors on external tools (<BTS:VineLinux:710>)
  165. - add BuildRequires: libattr-devel
  166. * Thu May 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.2-1
  167. - new upstream release
  168. * Tue May 05 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.1-2
  169. - s/gEdit/gedit in Summary/Description
  170. * Sat Apr 25 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.1-1
  171. - new upstream release
  172. * Mon Mar 23 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.0-1
  173. - new upstream release
  174. * Sun Nov 23 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.24.1-1
  175. - new upstream release
  176. * Sat Oct 04 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.0-3
  177. - add Requires: pygobject >= 2.15.4
  178. * Sun Sep 28 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.24.0-2
  179. - drop --vendor=gnome option when executing desktop-file-install
  180. * Thu Sep 25 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.0-1
  181. - new upstream release
  182. * Sat Jul 19 2008 Shu KONNO <owa@bg.wakwak.com> 2.22.1-2vl5
  183. - added lBuildRequires: perl-XML-Parser
  184. - rebuilt with python-2.5.2
  185. * Sun Apr 13 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.1-1vl5
  186. - new upstream release
  187. - added BuildRequires: pygtksourceview-devel
  188. * Sat Aug 11 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.18.2-0vl2
  189. - add BuildRequires: pygobject-devel, gnome-python-desktop
  190. because of adding --enable-python
  191. (TODO: moving to pygobjects and gnome-python-desktop to main or not?)
  192. * Wed Aug 8 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.18.2-0vl1
  193. - new upstream release
  194. - added --enable-python option
  195. * Sun May 27 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.18.1-0vl1
  196. - new upstream release
  197. * Sat Jun 03 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.3-0vl1
  198. - new upstream release
  199. * Thu May 11 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.2-0vl2
  200. - temporarily disabled patch10 which has encoding detection bugs.
  201. * Wed Apr 12 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.2-0vl1
  202. - new upstream release
  203. * Tue Mar 14 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.0-0vl1
  204. - new upstream release
  205. * Tue Mar 07 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.13.93-0vl1
  206. - new upstream release
  207. * Wed Oct 05 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.12.1-0vl1
  208. - new upstream release
  209. * Mon Sep 19 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.12.0-0vl1
  210. - new upstream release
  211. - forwardport Patch10 from Vine Linux 3.2.
  212. * Mon Apr 11 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.10.2-0vl1
  213. - new upstream release
  214. * Wed Mar 30 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.10.1-0vl1
  215. - new upstream release
  216. * Mon Mar 21 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.10.0-0vl1
  217. - new upstream version
  218. * Tue Mar 08 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.3-0vl2
  219. - fixed to include message catalogs
  220. * Sat Mar 05 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.3-0vl1
  221. - new upstream release
  222. * Tue Nov 09 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.1-0vl1
  223. - new upstream release
  224. * Sat Feb 14 2004 Tomoya TAKA <taka@vinelinux.org> 2.4.1-0vl2
  225. - add Patch0, fix type mismatch in gedit_document_load()
  226. * Fri Oct 17 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.1-0vl1
  227. - new upstream release
  228. * Tue Oct 07 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-0vl2
  229. - add missing files to %%files
  230. * Thu Sep 11 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-0vl1
  231. - new upstream release
  232. * Wed Sep 03 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.5-0vl2
  233. - remove obsolete ja.po
  234. * Wed Sep 03 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.5-0vl1
  235. - new upstream release
  236. * Mon Jun 16 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.2-0vl1
  237. - new upstream release
  238. - update ja.po
  239. * Thu Apr 24 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.1-0vl1
  240. - new upstream release
  241. - update ja.po
  242. * Tue Jan 28 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.0-0vl1
  243. - new upstream release
  244. * Wed Jan 22 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.91-0vl1
  245. - new upstream release
  246. * Fri Jan 10 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.6-0vl2
  247. - add updated ja.po
  248. * Thu Jan 9 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.6-0vl1
  249. - new upstream release
  250. * Thu Dec 26 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.5-0vl1
  251. - new upstream release
  252. - build for Vine Linux
  253. * Thu Aug 15 2002 Owen Taylor <otaylor@redhat.com>
  254. - Add missing bonobo server files (#71261, Taco Witte)
  255. - Remove empty NEWS, FAQ files from %%doc (#66079)
  256. * Thu Aug 1 2002 Havoc Pennington <hp@redhat.com>
  257. - fix desktop file really
  258. * Thu Aug 1 2002 Havoc Pennington <hp@redhat.com>
  259. - fix desktop file
  260. * Mon Jul 29 2002 Havoc Pennington <hp@redhat.com>
  261. - 2.0.2
  262. - build with new gail
  263. * Tue Jul 23 2002 Havoc Pennington <hp@redhat.com>
  264. - 2.0.1
  265. * Tue Jun 25 2002 Owen Taylor <otaylor@redhat.com>
  266. - 2.0.0, fix missing locale files
  267. * Sun Jun 16 2002 Havoc Pennington <hp@redhat.com>
  268. - 1.199.0
  269. - use desktop-file-install
  270. - remove static libs from plugins dir
  271. * Sat Jun 08 2002 Havoc Pennington <hp@redhat.com>
  272. - rebuild in different environment
  273. * Wed Jun 5 2002 Havoc Pennington <hp@redhat.com>
  274. - 1.121.1
  275. * Sun May 26 2002 Tim Powers <timp@redhat.com>
  276. - automated rebuild
  277. * Tue May 21 2002 Havoc Pennington <hp@redhat.com>
  278. - rebuild in different environment
  279. * Tue May 21 2002 Havoc Pennington <hp@redhat.com>
  280. - 1.120.0
  281. * Fri May 3 2002 Havoc Pennington <hp@redhat.com>
  282. - 1.118.0
  283. * Fri Apr 19 2002 Havoc Pennington <hp@redhat.com>
  284. - move to gnome 2 version
  285. * Thu Apr 18 2002 Havoc Pennington <hp@redhat.com>
  286. - fix ko.po
  287. * Thu Apr 18 2002 Havoc Pennington <hp@redhat.com>
  288. - get correct po files from elvis
  289. * Thu Apr 18 2002 Havoc Pennington <hp@redhat.com>
  290. - gedit-pofiles.tar.gz, not gedit-po.tar.gz
  291. * Mon Apr 15 2002 Havoc Pennington <hp@redhat.com>
  292. - merge translations
  293. * Fri Mar 29 2002 Havoc Pennington <hp@redhat.com>
  294. - gettextize default font
  295. * Thu Mar 28 2002 Havoc Pennington <hp@redhat.com>
  296. - more multibyte fixes #61948
  297. * Wed Mar 27 2002 Havoc Pennington <hp@redhat.com>
  298. - 0.9.7 for multibyte support
  299. * Tue Mar 26 2002 Akira TAGOH <tagoh@redhat.com> 0.9.4-11
  300. - gedit-0.9.4-printprefs.patch: I forgot to add to POTFILES.in...
  301. - gedit-po.tar.gz: added. it's on CVS now.
  302. * Sun Mar 24 2002 Akira TAGOH <tagoh@redhat.com> 0.9.4-10
  303. - gedit-0.9.4-printprefs.patch: fix typo and sanity check.
  304. * Mon Mar 04 2002 Akira TAGOH <tagoh@redhat.com> 0.9.4-9
  305. - Applied a font selector patch for the printing
  306. - fix BuildRequires for automake-1.4
  307. * Mon Jan 28 2002 Havoc Pennington <hp@redhat.com>
  308. - rebuild in rawhide
  309. - fix up cflags for moved gnome headers
  310. * Thu Jul 19 2001 Havoc Pennington <hp@redhat.com>
  311. - add some more build requires
  312. * Tue Jul 17 2001 Havoc Pennington <hp@redhat.com>
  313. - require libglade-devel to build
  314. * Fri Jun 15 2001 Nalin Dahyabhai <nalin@redhat.com>
  315. - rebuild in new environment
  316. * Fri Feb 23 2001 Akira TAGOH <tagoh@redhat.com>
  317. - Fixed preview for !ja locale.
  318. * Wed Feb 07 2001 Akira TAGOH <tagoh@redhat.com>
  319. - Fixed handling fontset. (Bug#24998)
  320. - Added print out for multibyte patch.
  321. * Fri Dec 29 2000 Matt Wilson <msw@redhat.com>
  322. - 0.9.4
  323. * Fri Aug 11 2000 Jonathan Blandford <jrb@redhat.com>
  324. - Up Epoch and release
  325. * Wed Aug 09 2000 Jonathan Blandford <jrb@redhat.com>
  326. - include glade files so that it will actually work.
  327. * Tue Aug 01 2000 Jonathan Blandford <jrb@redhat.com>
  328. - upgrade package to newer version at request of author.
  329. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  330. - automatic rebuild
  331. * Mon Jun 19 2000 Preston Brown <pbrown@redhat.com>
  332. - FHS paths
  333. * Sun Jun 11 2000 Jonathan Blandford <jrb@redhat.com>
  334. - update to 0.7.9. Somewhat untested.
  335. * Fri Feb 11 2000 Jonathan Blandford <jrb@redhat.com>
  336. - removed "reverse search function as it doesn't work.
  337. * Thu Feb 03 2000 Preston Brown <pbrown@redhat.com>
  338. - rebuild to gzip man pages
  339. * Mon Jan 17 2000 Elliot Lee <sopwith@redhat.com>
  340. - If I don't put in a log entry here, people will be very upset about not
  341. being able to find out that I am to blame for the 0.6.1 upgrade
  342. * Mon Aug 16 1999 Michael Fulbright <drmike@redhat.com>
  343. - version 0.5.4
  344. * Sat Feb 06 1999 Michael Johnson <johnsonm@redhat.com>
  345. - Cleaned up a bit for Red Hat use
  346. * Thu Oct 22 1998 Alex Roberts <bse@dial.pipex.com>
  347. - First try at an RPM