gedit-vl.spec 14 KB

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