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