anjuta-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. %define pkg_version 2.30.2.1
  2. %define glib_required 2.24.0
  3. %define gtk_required 2.20.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. Requires: GConf2-devel
  137. Requires: gtk2-devel
  138. Requires: pkgconfig
  139. %description devel
  140. Libraries, header files and API docs for developing Anjuta plugins.
  141. %prep
  142. %setup -q
  143. #%patch -p1
  144. %build
  145. %configure --disable-scrollkeeper --disable-plugin-valgrind
  146. make %{?_smp_mflags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fPIC"
  147. %install
  148. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  149. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  150. %makeinstall
  151. unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  152. %find_lang %{name}
  153. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
  154. rm -f $RPM_BUILD_ROOT%{_libdir}/anjuta/lib*.la
  155. rm -f $RPM_BUILD_ROOT%{_libdir}/glade3/modules/libgladeanjuta.la
  156. # conflicts file from gnome-panel
  157. rm -f $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
  158. %clean
  159. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  160. %post
  161. if which update-mime-database>/dev/null 2>&1; then \
  162. update-mime-database %{_datadir}/mime; \
  163. fi
  164. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  165. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/anjuta*.schemas > /dev/null
  166. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/file-manager.schemas > /dev/null
  167. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/preferences.schemas > /dev/null
  168. touch --no-create %{_datadir}/icons/hicolor
  169. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  170. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  171. fi
  172. #%%post docs
  173. if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update; fi
  174. %postun
  175. if which update-mime-database>/dev/null 2>&1; then \
  176. update-mime-database %{_datadir}/mime; \
  177. fi
  178. touch --no-create %{_datadir}/icons/hicolor
  179. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  180. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  181. fi
  182. #%%postun docs
  183. if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update; fi
  184. %preun
  185. if [ $1 = 0 ]; then
  186. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  187. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/anjuta*.schemas > /dev/null
  188. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/file-manager.schemas > /dev/null
  189. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/preferences.schemas > /dev/null
  190. fi
  191. %files -f %{name}.lang
  192. %defattr(-,root,root)
  193. %doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
  194. %doc doc/ScintillaDoc.html
  195. %{_sysconfdir}/gconf/schemas/%{name}*.schemas
  196. %{_sysconfdir}/gconf/schemas/file-manager.schemas
  197. %{_sysconfdir}/gconf/schemas/preferences.schemas
  198. %{_bindir}/%{name}*
  199. %{_bindir}/gbf-*
  200. %{_libdir}/lib%{name}.so.*
  201. %{_libdir}/%{name}/lib%{name}*.so
  202. %{_libdir}/%{name}/libfile-manager.so*
  203. %{_libdir}/%{name}/libjs*.so*
  204. %{_libdir}/%{name}/libgbf*.so
  205. %{_libdir}/%{name}/liblanguage-manager.so
  206. %{_libdir}/%{name}/libdir-project.so
  207. %{_libdir}/%{name}/*.plugin
  208. %{_libdir}/glade3/modules/libgladeanjuta.so
  209. %{_datadir}/%{name}
  210. %{_datadir}/applications/*%{name}.desktop
  211. %{_datadir}/icons/*
  212. %{_datadir}/mime/packages/%{name}.xml
  213. %{_datadir}/pixmaps/%{name}/*
  214. %{_mandir}/man1/*
  215. %{_datadir}/doc/%{name}
  216. #%%files docs
  217. #%%defattr(-, root, root)
  218. %{_datadir}/gnome/help/%{name}-faqs
  219. %{_datadir}/gnome/help/%{name}-manual
  220. %{_datadir}/gnome/help/%{name}-build-tutorial
  221. %{_datadir}/omf/anjuta-manual/%{name}-manual-*.omf
  222. %files devel
  223. %defattr(-, root, root)
  224. %{_libdir}/lib%{name}.so
  225. %{_libdir}/pkgconfig/libanjuta-1.0.pc
  226. %{_includedir}/libanjuta-1.0
  227. %{_datadir}/gtk-doc/html/lib%{name}
  228. %{_datadir}/glade3/catalogs/anjuta-glade.xml
  229. %changelog
  230. * Sat Jun 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.2.1-1
  231. - new upstream release
  232. * Mon Jun 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.2.0-1
  233. - new upstream release
  234. * Sat May 01 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.1.0-1
  235. - new upstream release
  236. * Sun Apr 18 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0.0-1
  237. - new upstream release
  238. - add Requires: GConf2-devel, gtk2-devel (devel package)
  239. * Fri Feb 26 2010 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.28.2.0-1
  240. - new upstream version
  241. - add gnome-doc-utils to BuildRequires
  242. * Thu Nov 12 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.28.1.0-2
  243. - rebuilt with devhelp-2.28.1
  244. * Tue Nov 03 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.28.1.0-1
  245. - new upstream version
  246. - remove libglade2, graphviz, binutils from reqires.
  247. - add file-manager and preferencs to schemas file
  248. - add gtksourceview2(-devel) to (Build)Requires.
  249. * Sat Aug 01 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org>
  250. - care icon cache (no build)
  251. * Fri Jul 31 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.26.2.2-6
  252. - enable devhelp plugin again.
  253. * Fri Jul 31 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.26.2.2-5
  254. - add gda-sqlite to Requires.
  255. * Thu Jul 30 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.26.2.2-4
  256. - update patch (anjuta-utils.patch)
  257. * Tue Jul 28 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.26.2.2-3
  258. - add patch anjuta-mkdir.patch [VineLinux:0737]
  259. * Sun Jul 26 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.26.2.2-2
  260. - add autogen to Requires [VineLinux:0738]
  261. - docs sub-package integrated into the main package.
  262. * Sun Jul 12 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.26.2.2-1
  263. - new upstream version
  264. * Sat Jul 11 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.26.1.0-3
  265. - added Requires libSM
  266. - added BR: libSM-devel perl-gettext intltool
  267. - added anjuta-build-tutorial to docs
  268. - move any so file from devel to main
  269. - added Provides perl(GBF::Make)
  270. - added Obsoletes gnome-build
  271. * Fri May 01 2009 Shu KONNO <owa@bg.wakwak.com> 2.6.1.0-2vl5
  272. - added BR: glade3-devel
  273. * Tue Apr 28 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.6.1.0-1vl5
  274. - update anjuta to 2.6.1.0
  275. - update *Requires
  276. * Sun Aug 24 2008 Shu KONNO <owa@bg.wakwak.com> 2.4.2-1vl5
  277. - update anjuta to 2.4.2
  278. - added --disable-plugin-valgrind
  279. * Wed May 14 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.4.1-3vl5
  280. - removed --disable-plugin-glade
  281. * Tue May 13 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.4.1-2vl5
  282. - use macro for Release
  283. * Sat May 10 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.4.1-1vl5
  284. - update anjuta to 2.4.1
  285. - remove *.la
  286. * Tue Apr 08 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.4.0-1vl5
  287. - update anjuta to 2.4.0
  288. - comment out BuildRequires: binutils-devel
  289. - comment out BuildRequires: automake14
  290. * Mon Jan 14 2008 Shu KONNO <owa@bg.wakwak.com> 2.2.3-0vl3
  291. - moved %%{_libdir}/libanjuta*.so.* to anjuta main package from devel
  292. * Sun Jan 13 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.3-0vl2
  293. - rebuilt with libwnck-2.20.2
  294. * Sat Jan 05 2008 Shu KONNO <owa@bg.wakwak.com> 2.2.3-0vl1
  295. - new upstream release
  296. - updated Requires, BuildRequires by anjuta-2.2.3/anjuta.spec
  297. - added BuildRequires: binutils-devel
  298. - added --disable-scrollkeeper to %%configure
  299. - added -fPIC to make
  300. - added package anjuta-docs (dropt docs-en, doc-ja)
  301. - added package anjuta-devel
  302. * Mon Jul 30 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.4a-0vl3
  303. - rebuilt with new toolchain
  304. * Sun Apr 29 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.4a-0vl2
  305. - rebuild with gnome-2.18
  306. * Sat Jul 15 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.4a-0vl1
  307. - updated anjuta to 1.2.4a
  308. - changed Group to Applications/Development
  309. - changed docs Group to Applications/Documentation
  310. * Sat Dec 31 2005 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.2.4-1vl1
  311. - updated anjuta to 1.2.4
  312. - add patch from http://bugzilla.gnome.org/show_bug.cgi?id=323918
  313. * Fri Jan 21 2005 Shu KONNO <owa@bg.wakwak.com> 1.2.2-1vl5
  314. - changed "BuildRequires: automake" with "automake14" in data definitions
  315. - changed "Requires: gettext" with "BuildRequires" in data definitions
  316. * Sat Jan 15 2005 Shu KONNO <owa@bg.wakwak.com> 1.2.2-1vl3
  317. - added requires to spec
  318. * Wed Dec 01 2004 Shu KONNO <owa@bg.wakwak.com> 1.2.2-1vl1
  319. - updated anjuta to 1.2.2
  320. * Sun Feb 1 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.1-1vl1
  321. - new upstream release
  322. - merged i18n package into main package
  323. - changed package Group:
  324. * Mon Nov 8 2002 Yasumichi Akahoshi <w2linux@lapis.plala.or.jp>
  325. - Replace ja.po
  326. * Mon Nov 7 2002 Yasumichi Akahoshi <w2linux@lapis.plala.or.jp>
  327. - change spec file
  328. * Mon Nov 6 2002 Yasumichi Akahoshi <w2linux@lapis.plala.or.jp>
  329. - packaged for Vine Linux