anjuta-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. %define pkg_version 2.28.2.0
  2. %define glib_required 2.16.0
  3. %define gtk_required 2.14.0
  4. %define orbit_required 2.6.0
  5. #%define libglade2_required 2.3.0
  6. %define glade3_required 3.6.2
  7. %define gnome_required 2.12.0
  8. %define gconf_required 2.12.0
  9. %define vte_required 0.13.1
  10. %define libxml_required 2.4.23
  11. %define libdevhelp_required 0.22
  12. %define gdl_required 2.28.0
  13. #%define libgraphviz_required 1.0
  14. %define neon_required 0.28.2
  15. %define svn_major 1
  16. %define svn_minor 5
  17. %define svn_patch 0
  18. %define subversion_required %{svn_major}.%{svn_minor}.%{svn_patch}
  19. %define gtksourceview_required 2.4.0
  20. #%define binutils_required 2.15.92
  21. %define libwnck_required 2.12
  22. %define gda_required 4.0.0
  23. %define unique_required 1.0.0
  24. %define desktop_vendor anjuta
  25. Version: %{pkg_version}
  26. Release: 1%{?_dist_release}
  27. Summary: GNOME IDE for C and C++
  28. Name: anjuta
  29. License: GPL2
  30. Group: Applications/Development
  31. URL: http://www.anjuta.org/
  32. Source: %{name}-%{version}.tar.bz2
  33. #Patch: %{name}-utils.patch
  34. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  35. Vendor: Project Vine
  36. Distribution: Vine Linux
  37. Packager: yasumichi,inagaki
  38. Requires: autogen
  39. Requires: gdb
  40. Requires: glib2 >= %{glib_required}
  41. #Requires: gdk-pixbuf >= %{gdk_pixbuf_required}
  42. Requires: gtk2 >= %{gtk_required}
  43. Requires: ORBit2 >= %{orbit_required}
  44. #Requires: libglade2 >= %{libglade2_required}
  45. Requires: libgnome >= %{gnome_required}
  46. Requires: libgnomeui >= %{gnome_required}
  47. #Requires: libgnomeprint >= %{gnome_required}
  48. #Requires: libgnomeprintui >= %{gnome_required}
  49. #Requires: gnome-vfs2 >= 2.10.0
  50. Requires: GConf2 >= %{gconf_required}
  51. Requires: vte >= %{vte_required}
  52. Requires: libxml2 >= %{libxml_required}
  53. Requires: devhelp >= %{libdevhelp_required}
  54. Requires: gdl >= %{gdl_required}
  55. #Requires: graphviz >= %{libgraphviz_required}
  56. Requires: neon >= %{neon_required}
  57. Requires: subversion >= %{subversion_required}
  58. Requires: libwnck >= %{libwnck_required}
  59. Requires: libgda >= %{gda_required}
  60. Requires: gda-sqlite >= %{gda_required}
  61. Requires: unique >= %{unique_required}
  62. #Requires: pango >= 1.1.1
  63. #Requires: pcre >= 3.9
  64. #Requires: gnome-build >= 0.2.0
  65. Requires: e2fsprogs
  66. Requires: libSM
  67. #Requires: valgrind
  68. Requires: libuuid
  69. Requires: gtksourceview2
  70. BuildRequires: autogen
  71. BuildRequires: pkgconfig
  72. BuildRequires: autoconf >= 2.13
  73. BuildRequires: gettext >= 0.10
  74. BuildRequires: glib2-devel >= %{glib_required}
  75. BuildRequires: gtk2-devel >= %{gtk_required}
  76. BuildRequires: ORBit2-devel >= %{orbit_required}
  77. #BuildRequires: libglade2-devel >= %{libglade2_required}
  78. BuildRequires: glade3-devel >= %{glade3_required}
  79. BuildRequires: libgnome-devel >= 2.12.0
  80. BuildRequires: libgnomeui-devel >= 2.12.0
  81. #BuildRequires: libgnomeprint-devel >= 2.12.0
  82. #BuildRequires: libgnomeprintui-devel >= 2.12.0
  83. #BuildRequires: gnome-vfs2-devel >= 2.10.0
  84. BuildRequires: GConf2-devel >= %{gconf_required}
  85. BuildRequires: vte-devel >= %{vte_required}
  86. BuildRequires: libxml2-devel >= %{libxml_required}
  87. BuildRequires: devhelp-devel >= %{libdevhelp_required}
  88. BuildRequires: gdl-devel >= %{gdl_required}
  89. #BuildRequires: graphviz-devel >= %{libgraphviz_required}
  90. BuildRequires: neon-devel >= %{neon_required}
  91. BuildRequires: subversion-devel >= %{subversion_required}
  92. BuildRequires: libwnck-devel >= %{libwnck_required}
  93. BuildRequires: libgda-devel >= %{gda_required}
  94. BuildRequires: unique-devel >= %{unique_required}
  95. #BuildRequires: pango-devel >= 1.1.1
  96. #BuildRequires: pcre-devel >= 3.9
  97. #BuildRequires: gnome-build-devel >= 0.2.0
  98. BuildRequires: e2fsprogs-devel
  99. BuildRequires: perl-gettext
  100. BuildRequires: intltool
  101. BuildRequires: libSM-devel
  102. #BuildRequires: binutils-devel
  103. BuildRequires: libuuid-devel
  104. BuildRequires: gtksourceview2-devel
  105. BuildRequires: gnome-doc-utils
  106. Provides: perl(GBF::Make)
  107. Obsoletes: anjuta-i18n
  108. Obsoletes: anjuta-docs-en anjuta-docs-ja
  109. Obsoletes: anjuta-docs
  110. Obsoletes: gnome-build
  111. %description
  112. Anjuta is a versatile Integrated Development Environment (IDE) for C and C++.
  113. It has been written for GTK/GNOME, and features a number of advanced
  114. programming facilities. It is basically a GUI interface for the collection
  115. of command line programming utilities and tools available for the GNU system.
  116. These are usually run via a text console, and can be unfriendly to use.
  117. %description -l ja
  118. Anjutaは、多才なC言語及びC++の統合開発環境です。GTK/GNOME用に記述され、
  119. 進化したプログラミング環境としての特徴を備えています。
  120. 基本的には、GNUシステムのためのコマンドラインプログラミングの
  121. ユーティリティやツール群のGUIインターフェースです。今までのツール群は、
  122. テキストコンソール経由で動作し、ユーザにはやさしくないのが常でしたが、
  123. Anjuta がそれを解決してくれます。
  124. #%%package docs
  125. #Summary: Anjuta docuemntation
  126. #Summary(ja): Anjuta のドキュメント
  127. #Group: Applications/Documentation
  128. #Prereq: scrollkeeper
  129. #%%description docs
  130. #Anjuta documentation
  131. %package devel
  132. Summary: Libraries and include files for Anjuta plugins development.
  133. Summary(ja): Anjuta の開発環境
  134. Group: Development/Libraries
  135. Requires: %{name} = %{version}-%{release}
  136. %description devel
  137. Libraries, header files and API docs for developing Anjuta plugins.
  138. %prep
  139. %setup -q
  140. #%patch -p1
  141. %build
  142. %configure --disable-scrollkeeper --disable-plugin-valgrind
  143. make %{?_smp_mflags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fPIC"
  144. %install
  145. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  146. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  147. %makeinstall
  148. unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  149. %find_lang %{name}
  150. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
  151. rm -f $RPM_BUILD_ROOT%{_libdir}/anjuta/lib*.la
  152. rm -f $RPM_BUILD_ROOT%{_libdir}/glade3/modules/libgladeanjuta.la
  153. # conflicts file from gnome-panel
  154. rm -f $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
  155. %clean
  156. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  157. %post
  158. if which update-mime-database>/dev/null 2>&1; then \
  159. update-mime-database %{_datadir}/mime; \
  160. fi
  161. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  162. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/anjuta*.schemas > /dev/null
  163. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/file-manager.schemas > /dev/null
  164. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/preferences.schemas > /dev/null
  165. touch --no-create %{_datadir}/icons/hicolor
  166. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  167. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  168. fi
  169. #%%post docs
  170. if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update; fi
  171. %postun
  172. if which update-mime-database>/dev/null 2>&1; then \
  173. update-mime-database %{_datadir}/mime; \
  174. fi
  175. touch --no-create %{_datadir}/icons/hicolor
  176. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  177. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  178. fi
  179. #%%postun docs
  180. if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update; fi
  181. %preun
  182. if [ $1 = 0 ]; then
  183. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  184. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/anjuta*.schemas > /dev/null
  185. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/file-manager.schemas > /dev/null
  186. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/preferences.schemas > /dev/null
  187. fi
  188. %files -f %{name}.lang
  189. %defattr(-,root,root)
  190. %doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
  191. %doc doc/ScintillaDoc.html
  192. %{_sysconfdir}/gconf/schemas/%{name}*.schemas
  193. %{_sysconfdir}/gconf/schemas/file-manager.schemas
  194. %{_sysconfdir}/gconf/schemas/preferences.schemas
  195. %{_bindir}/%{name}*
  196. %{_bindir}/gbf-*
  197. %{_libdir}/lib%{name}.so.*
  198. %{_libdir}/%{name}/lib%{name}*.so
  199. %{_libdir}/%{name}/libfile-manager.so*
  200. %{_libdir}/%{name}/libgbf*.so
  201. %{_libdir}/%{name}/liblanguage-manager.so
  202. %{_libdir}/%{name}/*.plugin
  203. %{_libdir}/glade3/modules/libgladeanjuta.so
  204. %{_datadir}/%{name}
  205. %{_datadir}/applications/*%{name}.desktop
  206. %{_datadir}/icons/*
  207. %{_datadir}/mime/packages/%{name}.xml
  208. %{_datadir}/pixmaps/%{name}/*
  209. %{_mandir}/man1/*
  210. %{_datadir}/doc/%{name}
  211. #%%files docs
  212. #%%defattr(-, root, root)
  213. %{_datadir}/gnome/help/%{name}-faqs
  214. %{_datadir}/gnome/help/%{name}-manual
  215. %{_datadir}/gnome/help/%{name}-build-tutorial
  216. %{_datadir}/omf/anjuta-manual/%{name}-manual-*.omf
  217. %files devel
  218. %defattr(-, root, root)
  219. %{_libdir}/lib%{name}.so
  220. %{_libdir}/pkgconfig/libanjuta-1.0.pc
  221. %{_includedir}/libanjuta-1.0
  222. %{_datadir}/gtk-doc/html/lib%{name}
  223. %{_datadir}/glade3/catalogs/anjuta-glade.xml
  224. %changelog
  225. * Fri Feb 26 2010 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.28.2.0-1
  226. - new upstream version
  227. - add gnome-doc-utils to BuildRequires
  228. * Thu Nov 12 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.28.1.0-2
  229. - rebuilt with devhelp-2.28.1
  230. * Tue Nov 03 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.28.1.0-1
  231. - new upstream version
  232. - remove libglade2, graphviz, binutils from reqires.
  233. - add file-manager and preferencs to schemas file
  234. - add gtksourceview2(-devel) to (Build)Requires.
  235. * Sat Aug 01 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org>
  236. - care icon cache (no build)
  237. * Fri Jul 31 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.26.2.2-6
  238. - enable devhelp plugin again.
  239. * Fri Jul 31 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.26.2.2-5
  240. - add gda-sqlite to Requires.
  241. * Thu Jul 30 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.26.2.2-4
  242. - update patch (anjuta-utils.patch)
  243. * Tue Jul 28 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.26.2.2-3
  244. - add patch anjuta-mkdir.patch [VineLinux:0737]
  245. * Sun Jul 26 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.26.2.2-2
  246. - add autogen to Requires [VineLinux:0738]
  247. - docs sub-package integrated into the main package.
  248. * Sun Jul 12 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.26.2.2-1
  249. - new upstream version
  250. * Sat Jul 11 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.26.1.0-3
  251. - added Requires libSM
  252. - added BR: libSM-devel perl-gettext intltool
  253. - added anjuta-build-tutorial to docs
  254. - move any so file from devel to main
  255. - added Provides perl(GBF::Make)
  256. - added Obsoletes gnome-build
  257. * Fri May 01 2009 Shu KONNO <owa@bg.wakwak.com> 2.6.1.0-2vl5
  258. - added BR: glade3-devel
  259. * Tue Apr 28 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.6.1.0-1vl5
  260. - update anjuta to 2.6.1.0
  261. - update *Requires
  262. * Sun Aug 24 2008 Shu KONNO <owa@bg.wakwak.com> 2.4.2-1vl5
  263. - update anjuta to 2.4.2
  264. - added --disable-plugin-valgrind
  265. * Wed May 14 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.4.1-3vl5
  266. - removed --disable-plugin-glade
  267. * Tue May 13 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.4.1-2vl5
  268. - use macro for Release
  269. * Sat May 10 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.4.1-1vl5
  270. - update anjuta to 2.4.1
  271. - remove *.la
  272. * Tue Apr 08 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.4.0-1vl5
  273. - update anjuta to 2.4.0
  274. - comment out BuildRequires: binutils-devel
  275. - comment out BuildRequires: automake14
  276. * Mon Jan 14 2008 Shu KONNO <owa@bg.wakwak.com> 2.2.3-0vl3
  277. - moved %%{_libdir}/libanjuta*.so.* to anjuta main package from devel
  278. * Sun Jan 13 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.3-0vl2
  279. - rebuilt with libwnck-2.20.2
  280. * Sat Jan 05 2008 Shu KONNO <owa@bg.wakwak.com> 2.2.3-0vl1
  281. - new upstream release
  282. - updated Requires, BuildRequires by anjuta-2.2.3/anjuta.spec
  283. - added BuildRequires: binutils-devel
  284. - added --disable-scrollkeeper to %%configure
  285. - added -fPIC to make
  286. - added package anjuta-docs (dropt docs-en, doc-ja)
  287. - added package anjuta-devel
  288. * Mon Jul 30 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.4a-0vl3
  289. - rebuilt with new toolchain
  290. * Sun Apr 29 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.4a-0vl2
  291. - rebuild with gnome-2.18
  292. * Sat Jul 15 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.4a-0vl1
  293. - updated anjuta to 1.2.4a
  294. - changed Group to Applications/Development
  295. - changed docs Group to Applications/Documentation
  296. * Sat Dec 31 2005 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.2.4-1vl1
  297. - updated anjuta to 1.2.4
  298. - add patch from http://bugzilla.gnome.org/show_bug.cgi?id=323918
  299. * Fri Jan 21 2005 Shu KONNO <owa@bg.wakwak.com> 1.2.2-1vl5
  300. - changed "BuildRequires: automake" with "automake14" in data definitions
  301. - changed "Requires: gettext" with "BuildRequires" in data definitions
  302. * Sat Jan 15 2005 Shu KONNO <owa@bg.wakwak.com> 1.2.2-1vl3
  303. - added requires to spec
  304. * Wed Dec 01 2004 Shu KONNO <owa@bg.wakwak.com> 1.2.2-1vl1
  305. - updated anjuta to 1.2.2
  306. * Sun Feb 1 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.1-1vl1
  307. - new upstream release
  308. - merged i18n package into main package
  309. - changed package Group:
  310. * Mon Nov 8 2002 Yasumichi Akahoshi <w2linux@lapis.plala.or.jp>
  311. - Replace ja.po
  312. * Mon Nov 7 2002 Yasumichi Akahoshi <w2linux@lapis.plala.or.jp>
  313. - change spec file
  314. * Mon Nov 6 2002 Yasumichi Akahoshi <w2linux@lapis.plala.or.jp>
  315. - packaged for Vine Linux