gtk3-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. # Note that this is NOT a relocatable package
  2. %define glib2_base_version 2.32.1
  3. %define glib2_version %{glib2_base_version}-1
  4. %define pango_base_version 1.30.0
  5. %define pango_version %{pango_base_version}-1
  6. %define atk_base_version 2.4.0
  7. %define atk_version %{atk_base_version}-1
  8. %define cairo_base_version 1.12.0
  9. %define cairo_version %{cairo_base_version}-1
  10. %define gdkpixbuf2_base_version 2.26.1
  11. %define gdkpixbuf2_version %{gdkpixbuf2_base_version}-1
  12. %define gobject_introspection_version 1.32.1
  13. %define base_version 3.4.2
  14. %define bin_version 3.0.0
  15. # biarch support
  16. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  17. %define _query_suffix %{nil}
  18. %if %{build_compat32}
  19. %define _query_suffix -32
  20. %endif
  21. Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X.
  22. Summary(ja): X 用 GUI 作成ライブラリ: GIMP ツールキット(GTK+)
  23. Name: gtk3
  24. Version: %{base_version}
  25. Release: 1%{?_dist_release}
  26. License: LGPL
  27. Group: System Environment/Libraries
  28. Source: http://ftp.gnome.org/pub/GNOME/sources/gtk+/3.4/gtk+-%{version}.tar.xz
  29. Patch0: gtk3-3.1.12-gtk-widget-size-allocate.patch
  30. Patch100: gtk+-3.4.0-vine-default-theme.patch
  31. BuildRequires: atk-devel >= %{atk_version}
  32. BuildRequires: pango-devel >= %{pango_version}
  33. BuildRequires: glib2-devel >= %{glib2_version}
  34. BuildRequires: cairo-devel >= %{cairo_version}
  35. BuildRequires: gdk-pixbuf2-devel >= %{gdkpixbuf2_version}
  36. BuildRequires: gobject-introspection-devel >= %{gobject_introspection_version}
  37. BuildRequires: libtiff-devel >= 3.7
  38. BuildRequires: libjpeg-turbo-devel
  39. BuildRequires: libpng-devel
  40. BuildRequires: jasper-devel
  41. BuildRequires: colord-devel
  42. BuildRequires: gtk-doc
  43. BuildRequires: gamin-devel
  44. BuildRequires: cups-devel
  45. BuildRequires: libICE-devel
  46. BuildRequires: libXext-devel
  47. BuildRequires: libXi-devel
  48. BuildRequires: libXrandr-devel >= 1.3.0
  49. BuildRequires: libXrender-devel
  50. BuildRequires: libXcursor-devel
  51. BuildRequires: libXfixes-devel
  52. BuildRequires: libXinerama-devel
  53. BuildRequires: libXcomposite-devel
  54. BuildRequires: libXdamage-devel
  55. BuildRoot: %{_tmppath}/gtk-%{version}-root
  56. URL: http://www.gtk.org
  57. # required for icon themes apis to work
  58. Requires: hicolor-icon-theme
  59. # We need to prereq these so we can run gtk-query-immodules-2.0
  60. Requires(post): glib2 >= %{glib2_version}
  61. Requires(post): atk >= %{atk_version}
  62. Requires(post): pango >= %{pango_version}
  63. Requires(post): libSM >= 1.1.0
  64. # We need to prereq libtiff >= 3.7 to run gdk-pixbuf-query-loaders
  65. Requires(post): libtiff >= 3.7
  66. Requires: libXrandr >= 1.3.0
  67. Vendor: Project Vine
  68. Distribution: Vine Linux
  69. Packager: Takemikaduchi
  70. %description
  71. GTK+ is a multi-platform toolkit for creating graphical user
  72. interfaces. Offering a complete set of widgets, GTK+ is suitable for
  73. projects ranging from small one-off tools to complete application
  74. suites.
  75. %package devel
  76. Summary: Development tools for GTK+ applications.
  77. Summary(ja): GTK+ (GIMP ツールキット) アプリケーション開発ツール
  78. Group: Development/Libraries
  79. Requires: %{name} = %{version}-%{release}
  80. Requires: pango-devel >= %{pango_version}
  81. Requires: atk-devel >= %{atk_version}
  82. Requires: glib2-devel >= %{glib2_version}
  83. Requires: gdk-pixbuf2-devel >= %{gdkpixbuf2_version}
  84. Requires: libX11-devel, libXcursor-devel, libXinerama-devel
  85. Requires: libXext-devel, libXi-devel, libXrandr-devel
  86. Requires: libXfixes-devel, libXcomposite-devel
  87. Requires: libpng-devel
  88. %description devel
  89. The gtk+-devel package contains the header files and developer
  90. docs for the GTK+ widget toolkit.
  91. #######################################################################
  92. # compat32
  93. %package -n compat32-%{name}
  94. Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X.
  95. Summary(ja): X 用 GUI 作成ライブラリ: GIMP ツールキット(GTK+)
  96. Group: System Environment/Libraries
  97. Requires(post): compat32-glib2 >= %{glib2_version}
  98. Requires(post): compat32-atk >= %{atk_version}
  99. Requires(post): compat32-pango >= %{pango_version}
  100. Requires(post): compat32-libSM >= 1.1.0
  101. Requires(post): compat32-libtiff >= 3.7
  102. Requires: compat32-libXrandr >= 1.3.0
  103. %description -n compat32-%{name}
  104. GTK+ is a multi-platform toolkit for creating graphical user
  105. interfaces. Offering a complete set of widgets, GTK+ is suitable for
  106. projects ranging from small one-off tools to complete application
  107. suites.
  108. %package -n compat32-%{name}-devel
  109. Summary: Development tools for GTK+ applications.
  110. Summary(ja): GTK+ (GIMP ツールキット) アプリケーション開発ツール
  111. Group: Development/Libraries
  112. Requires: compat32-%{name} = %{version}-%{release}
  113. Requires: %{name}-devel = %{version}
  114. Requires: compat32-libX11-devel, compat32-libXcursor-devel, compat32-libXinerama-devel
  115. Requires: compat32-libXext-devel, compat32-libXi-devel, compat32-libXrandr-devel
  116. Requires: compat32-libXfixes-devel, compat32-libXcomposite-devel
  117. Requires: compat32-libpng-devel
  118. %description -n compat32-%{name}-devel
  119. The gtk+-devel package contains the header files and developer
  120. docs for the GTK+ widget toolkit.
  121. %prep
  122. %setup -q -n gtk+-%{version}
  123. %patch0 -p1 -b .allocate
  124. %patch100 -p1 -b .vine-default-theme
  125. #for i in config.guess config.sub ; do
  126. # test -f %{_datadir}/libtool/$i && cp %{_datadir}/libtool/$i .
  127. #done
  128. %build
  129. # if ! pkg-config --exists pangoxft ; then
  130. # echo "No pangoxft.pc!"
  131. # exit 1
  132. # fi
  133. #libtoolize --force --copy
  134. #autoreconf -i
  135. %configure --enable-gtk-doc \
  136. --enable-man \
  137. --enable-debug=minimum \
  138. --disable-rebuilds \
  139. --disable-glibtest \
  140. --enable-introspection=yes \
  141. --enable-xrandr \
  142. --enable-xfixes \
  143. --enable-xcomposite \
  144. --enable-xdamage \
  145. --enable-x11-backend
  146. make ARCH=%{_arch}
  147. #make
  148. %install
  149. rm -rf $RPM_BUILD_ROOT
  150. make install DESTDIR=$RPM_BUILD_ROOT RUN_QUERY_IMMODULES_TEST=false RUN_QUERY_LOADER_TEST=false
  151. %find_lang gtk30
  152. %find_lang gtk30-properties
  153. cat gtk30.lang gtk30-properties.lang > all.lang
  154. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/gtk-3.0
  155. #
  156. # Make cleaned-up versions of examples and tutorial for installation
  157. #
  158. mkdir -p tmpdocs/tutorial
  159. # install -m 0644 docs/html/gtk_tut.html docs/html/gtk_tut-[0-9]*.html docs/html/*.gif tmpdocs/tutorial
  160. for dir in examples/* ; do
  161. if [ -d $dir ] ; then
  162. mkdir -p tmpdocs/$dir
  163. for file in $dir/* ; do
  164. case $file in
  165. *pre1.2.7)
  166. ;;
  167. *)
  168. install -m 0644 $file tmpdocs/$dir
  169. ;;
  170. esac
  171. done
  172. fi
  173. done
  174. # We need to have separate 32-bit and 64-bit binaries
  175. # for places where we have two copies of the GTK+ package installed.
  176. # (we might have x86_64 and i686 packages on the same system, for example.)
  177. %if %{build_compat32}
  178. cp $RPM_BUILD_ROOT%{_bindir}/gtk-query-immodules-3.0 \
  179. $RPM_BUILD_ROOT%{_bindir}/gtk-query-immodules-3.0%{_query_suffix}
  180. %endif
  181. touch $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/%{bin_version}/immodules.cache
  182. mkdir -p $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/modules
  183. mkdir -p $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/immodules
  184. # Remove unpackaged files
  185. find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
  186. rm -rf $RPM_BUILD_ROOT%{_datadir}/themes/Raleigh
  187. mv $RPM_BUILD_ROOT%{_bindir}/gtk-update-icon-cache \
  188. $RPM_BUILD_ROOT%{_bindir}/gtk-update-icon-cache-3.0
  189. %clean
  190. rm -rf $RPM_BUILD_ROOT
  191. %post
  192. /sbin/ldconfig
  193. %{_bindir}/gtk-query-immodules-3.0 --update-cache || : > /dev/null 2>&1
  194. %postun
  195. /sbin/ldconfig
  196. if [ $1 -gt 0 ]; then
  197. %{_bindir}/gtk-query-immodules-3.0 --update-cache || : > /dev/null 2>&1
  198. fi
  199. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  200. %posttrans
  201. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  202. %if %{build_compat32}
  203. %post -n compat32-%{name}
  204. /sbin/ldconfig
  205. %{_bindir}/gtk-query-immodules-3.0%{_query_suffix} --update-cache || : > /dev/null 2>&1
  206. %postun -n compat32-%{name}
  207. /sbin/ldconfig
  208. if [ $1 = 0 ]; then
  209. %{_bindir}/gtk-query-immodules-3.0%{_query_suffix} --update-cache || : > /dev/null 2>&1
  210. fi
  211. %endif
  212. %files -f all.lang
  213. %defattr(-, root, root)
  214. %doc AUTHORS COPYING ChangeLog NEWS README
  215. %{_bindir}/gtk3-demo
  216. %{_bindir}/gtk3-demo-application
  217. %{_bindir}/gtk3-widget-factory
  218. %{_bindir}/gtk-query-immodules-3.0
  219. %{_bindir}/gtk-update-icon-cache-3.0
  220. %{_libdir}/libgtk-3.so.*
  221. %{_libdir}/libgdk-3.so.*
  222. %{_libdir}/libgailutil-3.so.*
  223. %dir %{_libdir}/gtk-3.0
  224. %{_libdir}/gtk-3.0/%{bin_version}
  225. %dir %{_libdir}/gtk-3.0/modules
  226. #%{_libdir}/gtk-3.0/modules/lib*.so
  227. %{_libdir}/girepository-1.0/*.typelib
  228. %{_datadir}/gtk-3.0
  229. %{_datadir}/themes/Default
  230. %{_datadir}/themes/Emacs
  231. %dir %{_sysconfdir}/gtk-3.0
  232. %{_sysconfdir}/gtk-3.0/im-multipress.conf
  233. %{_datadir}/glib-2.0/schemas/*.xml
  234. %files devel
  235. %defattr(-, root, root)
  236. %{_libdir}/lib*.so
  237. %dir %{_libdir}/gtk-3.0
  238. %{_datadir}/gtk-doc/
  239. %{_datadir}/gir-1.0/*.gir
  240. %{_mandir}/man1/*
  241. %exclude %{_mandir}/man1/gtk-update-icon-cache.1.gz
  242. %{_includedir}/*
  243. %{_datadir}/aclocal/*
  244. %{_libdir}/pkgconfig/*
  245. %doc tmpdocs/tutorial
  246. # compat32
  247. %if %{build_compat32}
  248. %files -n compat32-%{name}
  249. %defattr(-, root, root)
  250. %{_bindir}/gtk-query-immodules-3.0%{_query_suffix}
  251. %{_libdir}/libgtk-3.so.*
  252. %{_libdir}/libgdk-3.so.*
  253. %{_libdir}/libgailutil-3.so.*
  254. %dir %{_libdir}/gtk-3.0
  255. %{_libdir}/gtk-3.0/%{bin_version}
  256. %dir %{_libdir}/gtk-3.0/modules
  257. #%{_libdir}/gtk-3.0/modules/lib*.so
  258. %dir %{_sysconfdir}/gtk-3.0
  259. %files -n compat32-%{name}-devel
  260. %defattr(-, root, root)
  261. %{_libdir}/lib*.so
  262. %dir %{_libdir}/gtk-3.0
  263. %{_libdir}/pkgconfig/*
  264. %endif
  265. %changelog
  266. * Sun May 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.4.2-1
  267. - new upstream release
  268. * Sun Apr 22 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.4.1-1
  269. - new upstream release
  270. - update Patch100 (gtk+-3.4.0-vine-default-theme.patch)
  271. * Sun Mar 18 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.4-1
  272. - new upstream release
  273. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.3-1
  274. - new upstream release
  275. * Wed Nov 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.2-1
  276. - new upstream release
  277. - remove Patch1
  278. * Sun Oct 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.1-1
  279. - new upstream release
  280. - add Patch1 (gtk3-3.2.1-bug658772.patch)
  281. * Wed Sep 28 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.0-1
  282. - new upstream release
  283. * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.92-1
  284. - new upstream release
  285. * Tue Sep 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.18-1
  286. - new upstream release
  287. * Sat Sep 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.16-1
  288. - new upstream release
  289. * Tue Aug 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.12-1
  290. - new upstream release
  291. - add Patch0 (gtk3-3.1.12-gtk-widget-size-allocate.patch)
  292. * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.10-2
  293. - fix %%files
  294. * Sat Jul 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.10-1
  295. - new upstream release
  296. - add BuildRequires: colord-devel
  297. * Sun Jun 26 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.11-1
  298. - new upstream release
  299. * Sun Apr 24 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.9-1
  300. - new upstream release
  301. * Sun Apr 09 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.8-1
  302. - new upstream release
  303. * Sun Apr 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.7-1
  304. - new upstream release
  305. * Sun Mar 27 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.6-1
  306. - new upstream release
  307. * Wed Mar 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.4-1
  308. - new upstream release
  309. * Sat Mar 19 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.3-1
  310. - new upstream release
  311. * Sun Mar 13 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.2-1
  312. - new upstream release
  313. * Fri Feb 22 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.1-1
  314. - new upstream release
  315. * Fri Feb 18 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.0-1
  316. - initial build for Vine Linux