libdazzle-vl.spec 2.7 KB

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