gedit-vl.spec 14 KB

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