gtk3-engines-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: Theme engines for GTK+ 3.x
  3. Summary(ja): GTK+ 3.x 用テーマエンジン
  4. Name: gtk3-engines
  5. Version: 2.91.1
  6. Release: 2%{?_dist_release}
  7. License: GPL
  8. Group: System Environment/Libraries
  9. Source: ftp://ftp.gnome.org/pub/gnome/sources/gtk-engines/2.91/gtk-engines-%{version}.tar.bz2
  10. Requires: gtk3 >= 2.91.0
  11. BuildRequires: gtk3-devel >= 2.91.0
  12. Conflicts: gnome-themes < 2.8.2-0vl1
  13. Conflicts: gnome-themes-extras < 0.8-0vl2
  14. URL: http://www.gnome.org/
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. %description
  19. The gtk3-engines package contains shared objects and configuration
  20. files that implement a number of GTK+ theme engines. Theme engines
  21. provide different looks for GTK+, some of which resemble other
  22. toolkits or operating systems. This package is for GTK+ 3.0,
  23. the gtk+-engines package is for GTK+ 1.2.
  24. the gtk2-engines package is for GTK+ 2.x.
  25. %package devel
  26. Summary: Development environment for gtk3-engines
  27. Summary(ja): gtk3-enginesの開発環境
  28. Group: Development/Libraries
  29. Requires: %{name} = %{version}-%{release}
  30. Requires: pkgconfig
  31. %description devel
  32. Header files and libraries for building a extension library for the
  33. gtk3-engines.
  34. # compat32
  35. %package -n compat32-%{name}
  36. Summary: Theme engines for GTK+ 3.x
  37. Summary(ja): GTK+ 3.x 用テーマエンジン
  38. Group: System Environment/Libraries
  39. Requires: %{name} = %{version}-%{release}
  40. %description -n compat32-%{name}
  41. The gtk3-engines package contains shared objects and configuration
  42. files that implement a number of GTK+ theme engines. Theme engines
  43. provide different looks for GTK+, some of which resemble other
  44. toolkits or operating systems. This package is for GTK+ 3.0,
  45. the gtk+-engines package is for GTK+ 1.2.
  46. the gtk2-engines package is for GTK+ 2.x.
  47. %package -n compat32-%{name}-devel
  48. Summary: Development environment for gtk3-engines
  49. Summary(ja): gtk3-enginesの開発環境
  50. Group: Development/Libraries
  51. Requires: %{name} = %{version}-%{release}
  52. Requires: pkgconfig
  53. %description -n compat32-%{name}-devel
  54. Header files and libraries for building a extension library for the
  55. gtk3-engines.
  56. %prep
  57. %setup -q -n gtk-engines-%{version}
  58. %build
  59. %configure
  60. %__make
  61. %install
  62. rm -rf $RPM_BUILD_ROOT
  63. %makeinstall
  64. # remove backup files that shouldn't be here. Fix me.
  65. find $RPM_BUILD_ROOT%{_datadir}/themes -name \*~ | xargs rm -rvf
  66. # No, we don't need to package these either
  67. find $RPM_BUILD_ROOT%{_datadir}/themes -type d -name ".xvpics" | xargs rm -rvf
  68. # sanitize permissions
  69. find $RPM_BUILD_ROOT%{_datadir}/themes -type d -exec chmod 755 {} \;
  70. find $RPM_BUILD_ROOT%{_datadir}/themes -type f -name "*.png" -exec chmod 644 {} \;
  71. find $RPM_BUILD_ROOT%{_datadir}/themes -name "gtkrc*" -perm +111 -exec chmod 644 {} \;
  72. # remove unpackaged files
  73. rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/*/engines/lib*.la
  74. %clean
  75. rm -rf $RPM_BUILD_ROOT
  76. %files
  77. %defattr(-, root, root, -)
  78. %doc COPYING README ChangeLog
  79. %attr (755, root, root) %{_libdir}/gtk-3.0/*/engines/*.so
  80. %dir %{_libdir}/gtk-3.0
  81. %dir %{_libdir}/gtk-3.0/*
  82. %dir %{_libdir}/gtk-3.0/*/engines
  83. %{_datadir}/themes/*
  84. %{_datadir}/gtk-engines/3.0/*.xml
  85. %{_datadir}/locale
  86. %files devel
  87. %defattr(-, root, root, -)
  88. %{_libdir}/pkgconfig/*
  89. # compat32
  90. %if %{build_compat32}
  91. %files -n compat32-%{name}
  92. %defattr(-, root, root, -)
  93. %attr (755, root, root) %{_libdir}/gtk-3.0/*/engines/*.so
  94. %dir %{_libdir}/gtk-3.0
  95. %dir %{_libdir}/gtk-3.0/*
  96. %dir %{_libdir}/gtk-3.0/*/engines
  97. %{_libdir}/pkgconfig/*
  98. %files -n compat32-%{name}-devel
  99. %defattr(-, root, root, -)
  100. %{_libdir}/pkgconfig/*
  101. %endif
  102. %changelog
  103. * Tue Dec 31 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.91.1-2
  104. - rebuild with VineSeed environment
  105. * Sat May 28 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.91.1-1
  106. - initial build for Vine Linux