libdazzle-vl.spec 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. %bcond_with tests
  2. %global glib2_version 2.55.0
  3. Name: libdazzle
  4. Version: 3.30.1
  5. Release: 1%{?_dist_release}
  6. Summary: A companion library to GObject and Gtk+
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. License: GPLv3+
  10. URL: https://git.gnome.org/browse/libdazzle/
  11. Source0: https://download.gnome.org/sources/%{name}/3.31/%{name}-%{version}.tar.xz
  12. BuildRequires: gtk-doc
  13. BuildRequires: meson
  14. BuildRequires: vala
  15. BuildRequires: glib2-devel >= %{glib2_version}
  16. BuildRequires: gobject-introspection-devel
  17. BuildRequires: gtk3-devel
  18. # for tests
  19. %if %{with tests}
  20. BuildRequires: dbus
  21. BuildRequires: xorg-x11-server-Xvfb
  22. BuildRequires: xorg-x11-xauth
  23. BuildRequires: words
  24. %endif
  25. Requires: glib2%{?_isa} >= %{glib2_version}
  26. %description
  27. The libdazzle library is a companion library to GObject and Gtk+.
  28. It provides various features that we wish were in the underlying
  29. library but cannot for various reasons. In most cases, they are
  30. wildly out of scope for those libraries. In other cases, our design
  31. isn't quite generic enough to work for everyone.
  32. %package devel
  33. Summary: Development files for %{name}
  34. Requires: %{name}%{?_isa} = %{version}-%{release}
  35. %description devel
  36. The %{name}-devel package contains libraries and header files for
  37. developing applications that use %{name}.
  38. %prep
  39. %autosetup -p1
  40. %build
  41. export LANG=ja_JP.UTF-8
  42. %meson \
  43. -Denable_gtk_doc=true
  44. %meson_build
  45. %install
  46. export LANG=ja_JP.UTF-8
  47. %meson_install
  48. %if %{with tests}
  49. %check
  50. dbus-run-session -- xvfb-run -w 10 ninja test %{__ninja_common_opts} -C %{_vpath_builddir}
  51. %endif
  52. %files
  53. %license COPYING
  54. %doc AUTHORS NEWS README.md
  55. %{_bindir}/dazzle-list-counters
  56. %{_libdir}/libdazzle-1.0.so.*
  57. %dir %{_libdir}/girepository-1.0
  58. %{_libdir}/girepository-1.0/Dazzle-1.0.typelib
  59. %files devel
  60. %doc CONTRIBUTING.md examples
  61. %dir %{_datadir}/gir-1.0
  62. %{_datadir}/gir-1.0/Dazzle-1.0.gir
  63. %dir %{_datadir}/gtk-doc
  64. %dir %{_datadir}/gtk-doc/html
  65. %{_datadir}/gtk-doc/html/libdazzle
  66. %dir %{_datadir}/vala
  67. %dir %{_datadir}/vala/vapi
  68. %{_datadir}/vala/vapi/libdazzle-1.0.*
  69. %{_includedir}/*
  70. %{_libdir}/*.so
  71. %{_libdir}/pkgconfig/libdazzle-1.0.pc
  72. %changelog
  73. * Mon Dec 31 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.30.1-1
  74. - initial build for Vine Linux.
  75. - this is not newest release: version 3.30.2 or later needs gtk+-3.24.