-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
%define _unpackaged_files_terminate_build 1 | ||
|
||
%define api_version @LAST_API_VERSION@ | ||
%define minor_version @LAST_MINOR_VERSION@ | ||
%define gir_name AltRepo-%api_version | ||
|
||
Name: libalt-repo-%api_version | ||
Version: %api_version.%minor_version | ||
Release: alt1 | ||
|
||
Summary: ALT Repo API library on Vala | ||
License: GPL-3.0-or-later | ||
Group: System/Libraries | ||
Url: https://github.com/alt-gnome/libalt-repo-vala | ||
Vcs: https://github.com/alt-gnome/libalt-repo-vala.git | ||
|
||
Source0: %name-%version.tar | ||
|
||
BuildRequires(pre): rpm-macros-meson rpm-build-vala rpm-build-gir | ||
BuildRequires: meson | ||
BuildRequires: vala | ||
BuildRequires: pkgconfig(gee-0.8) | ||
BuildRequires: pkgconfig(gio-2.0) | ||
BuildRequires: pkgconfig(libapi-base-1) | ||
BuildRequires: gobject-introspection-devel | ||
|
||
%description | ||
%summary. | ||
|
||
%package devel | ||
Summary: Development files for %name | ||
Group: Development/C | ||
|
||
Requires: %name = %EVR | ||
|
||
%description devel | ||
%summary. | ||
|
||
%package devel-vala | ||
Summary: Development vapi files for %name | ||
Group: System/Libraries | ||
BuildArch: noarch | ||
|
||
Requires: %name = %EVR | ||
|
||
%description devel-vala | ||
%summary. | ||
|
||
%package gir | ||
Summary: Typelib files for %name | ||
Group: System/Libraries | ||
|
||
Requires: %name = %EVR | ||
|
||
%description gir | ||
%summary. | ||
|
||
%package gir-devel | ||
Summary: Development gir files for %name for various bindings | ||
Group: Development/Other | ||
BuildArch: noarch | ||
|
||
Requires: %name = %EVR | ||
|
||
%description gir-devel | ||
%summary. | ||
|
||
%prep | ||
%setup | ||
|
||
%build | ||
%meson | ||
%meson_build | ||
|
||
%install | ||
%meson_install | ||
|
||
%check | ||
%meson_test | ||
|
||
%files | ||
%_libdir/%name.so.* | ||
%doc README.md | ||
|
||
%files devel | ||
%_libdir/%name.so | ||
%_includedir/%name.h | ||
%_pkgconfigdir/%name.pc | ||
|
||
%files devel-vala | ||
%_vapidir/%name.vapi | ||
%_vapidir/%name.deps | ||
|
||
%files gir | ||
%_typelibdir/%gir_name.typelib | ||
|
||
%files gir-devel | ||
%_girdir/%gir_name.gir |