83 lines
2.1 KiB
RPMSpec
83 lines
2.1 KiB
RPMSpec
|
Name: libdex
|
||
|
Version: 0.1.0
|
||
|
Release: %autorelease
|
||
|
Summary: a library supporting "Deferred Execution" for GNOME and GTK
|
||
|
|
||
|
License: LGPL-2.1-or-later
|
||
|
URL: https://gitlab.gnome.org/chergert/libdex
|
||
|
Source0: https://gitlab.gnome.org/chergert/libdex/uploads/8894d387768d3b8375b5d1121988c35a/%{name}-%{version}.tar.xz
|
||
|
Patch0: libdex-0.1.0-doc-dir.patch
|
||
|
# https://gitlab.gnome.org/chergert/libdex/-/issues/3
|
||
|
Patch1: libdex-0.1.0-soversion.patch
|
||
|
|
||
|
BuildRequires: /usr/bin/vapigen
|
||
|
BuildRequires: gcc
|
||
|
BuildRequires: gi-docgen
|
||
|
BuildRequires: libatomic
|
||
|
BuildRequires: meson
|
||
|
BuildRequires: pkgconfig(gio-2.0)
|
||
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
||
|
BuildRequires: pkgconfig(liburing)
|
||
|
BuildRequires: pkgconfig(sysprof-capture-4)
|
||
|
|
||
|
%description
|
||
|
Dex is a library supporting "Deferred Execution" with the explicit goal
|
||
|
of integrating with GNOME and GTK-based applications.
|
||
|
It provides primatives for supporting futures in a variety of ways with both
|
||
|
read-only and writable views. Additionally, integration with existing
|
||
|
asynchronous-based APIs is provided through the use of wrapper promises.
|
||
|
"Fibers" are implemented which allows for writing synchronous looking code
|
||
|
which calls asynchronous APIs from GIO underneath.
|
||
|
|
||
|
%package devel
|
||
|
Summary: Development files for libdex
|
||
|
Requires: libdex%{?_isa} = %{version}-%{release}
|
||
|
|
||
|
%description devel
|
||
|
This package contains the libraries and header files that are needed for
|
||
|
writing applications with libdex.
|
||
|
|
||
|
%package devel-docs
|
||
|
Summary: Developer documentation for libdex
|
||
|
BuildArch: noarch
|
||
|
Requires: libdex = %{version}-%{release}
|
||
|
|
||
|
%description devel-docs
|
||
|
This package contains developer documentation for writing applications with
|
||
|
libdex.
|
||
|
|
||
|
%prep
|
||
|
%autosetup -p1
|
||
|
|
||
|
%build
|
||
|
%meson \
|
||
|
-Ddocs=true \
|
||
|
-Dexamples=false \
|
||
|
-Dsysprof=true
|
||
|
%meson_build
|
||
|
|
||
|
%install
|
||
|
%meson_install
|
||
|
|
||
|
%check
|
||
|
%meson_test
|
||
|
|
||
|
%files
|
||
|
%license COPYING
|
||
|
%doc NEWS README.md
|
||
|
%{_libdir}/libdex-1.so.1{,.*}
|
||
|
%{_libdir}/girepository-1.0/
|
||
|
|
||
|
%files devel
|
||
|
%{_datadir}/gir-1.0/
|
||
|
%{_datadir}/vala/
|
||
|
%{_includedir}/libdex-1/
|
||
|
%{_libdir}/libdex-1.so
|
||
|
%{_libdir}/pkgconfig/libdex-1.pc
|
||
|
|
||
|
%files devel-docs
|
||
|
%doc %{_docdir}/libdex-1/
|
||
|
|
||
|
%changelog
|
||
|
%autochangelog
|