gtk3-vl.spec 13 KB

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