libdazzle-vl.spec 2.5 KB

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