libadwaita/libadwaita.spec

117 lines
2.7 KiB
RPMSpec
Raw Normal View History

2021-08-06 16:29:21 +00:00
%global apiver 1
2023-03-05 13:03:22 +00:00
%global gtk_version 4.9.5
2021-08-06 16:29:21 +00:00
2022-02-14 18:13:54 +00:00
%global tarball_version %%(echo %{version} | tr '~' '.')
2021-08-06 16:29:21 +00:00
Name: libadwaita
2023-04-22 10:38:29 +00:00
Version: 1.3.2
2022-06-01 18:08:04 +00:00
Release: %autorelease
2021-08-06 16:29:21 +00:00
Summary: Building blocks for modern GNOME applications
License: LGPLv2+
URL: https://gitlab.gnome.org/GNOME/libadwaita
2023-02-06 16:38:28 +00:00
Source0: https://download.gnome.org/sources/%{name}/1.3/%{name}-%{tarball_version}.tar.xz
2021-08-06 16:29:21 +00:00
BuildRequires: desktop-file-utils
2021-08-06 16:29:21 +00:00
BuildRequires: gcc
BuildRequires: gettext
2021-08-06 16:29:21 +00:00
BuildRequires: gi-docgen
BuildRequires: libappstream-glib
BuildRequires: meson >= 0.59.0
2021-08-06 16:29:21 +00:00
BuildRequires: sassc
BuildRequires: vala
BuildRequires: pkgconfig(gobject-introspection-1.0)
2023-02-06 16:38:28 +00:00
BuildRequires: pkgconfig(gtk4) >= %{gtk_version}
Requires: gtk4%{?_isa} >= %{gtk_version}
2021-08-06 16:29:21 +00:00
%description
Building blocks for modern GNOME applications.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: vala
Recommends: %{name}-demo = %{version}-%{release}
2021-08-06 16:29:21 +00:00
Recommends: %{name}-doc = %{version}-%{release}
%description devel
Development files for %{name}.
%package doc
Summary: Documentation files for %{name}
BuildArch: noarch
Recommends: %{name}-devel = %{version}-%{release}
# Because web fonts from upstream are not bundled in the gi-docgen package,
# packages containing documentation generated with gi-docgen should depend on
# this metapackage to ensure the proper system fonts are present.
Recommends: gi-docgen-fonts
2021-08-06 16:29:21 +00:00
%description doc
Documentation files for %{name}.
%package demo
Summary: Demo files for %{name}
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
Suggests: %{name}-devel = %{version}-%{release}
%description demo
Demo files for %{name}.
2021-08-06 16:29:21 +00:00
%prep
2022-09-15 15:46:59 +00:00
%autosetup -n %{name}-%{tarball_version}
2021-08-06 16:29:21 +00:00
%build
%meson \
-Dgtk_doc=true \
%{nil}
%meson_build
%install
%meson_install
%find_lang %{name}
%check
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.xml
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
2021-08-06 16:29:21 +00:00
%files -f %{name}.lang
%license COPYING
%doc README.md AUTHORS NEWS
%{_bindir}/adwaita-%{apiver}-demo
%{_libdir}/*-%{apiver}.so.0*
%{_libdir}/girepository-1.0/*.typelib
%files devel
%dir %{_datadir}/gir-1.0
%{_datadir}/gir-1.0/*-%{apiver}.gir
%{_datadir}/vala/vapi/%{name}-%{apiver}.*
%{_includedir}/%{name}-%{apiver}/
%{_libdir}/*-%{apiver}.so
%{_libdir}/pkgconfig/*-%{apiver}.pc
%files doc
%doc HACKING.md
%{_docdir}/%{name}-%{apiver}/
%files demo
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/*.svg
%{_metainfodir}/*.metainfo.xml
2021-08-06 16:29:21 +00:00
%changelog
2022-06-01 18:08:04 +00:00
%autochangelog