diff --git a/libadwaita.spec b/libadwaita.spec index 5ea8e64b1e2da0d4d5c403b7218f64d4afb0a2bb..659f21904accf3cb785606da62f267addd1ff987 100644 --- a/libadwaita.spec +++ b/libadwaita.spec @@ -1,7 +1,5 @@ -%define anolis_release 1 -%global apiver 1 - -%global tarball_version %%(echo %{version} | tr '~' '.') +%define anolis_release 2 +%global apiver %%(echo %{version} | cut -d '.' -f 1) Name: libadwaita Version: 1.3.1 @@ -10,15 +8,10 @@ Summary: Building blocks for modern GNOME applications License: LGPLv2+ URL: https://gitlab.gnome.org/GNOME/libadwaita -Source0: https://download.gnome.org/sources/%{name}/1.3/%{name}-%{tarball_version}.tar.xz +Source0: https://download.gnome.org/sources/%{name}/1.3/%{name}-%{version}.tar.xz -BuildRequires: gcc -BuildRequires: gi-docgen -BuildRequires: intltool +BuildRequires: intltool gcc gi-docgen meson >= 0.59.0 sassc vala BuildRequires: libappstream-glib -BuildRequires: meson >= 0.59.0 -BuildRequires: sassc -BuildRequires: vala BuildRequires: pkgconfig(fribidi) BuildRequires: pkgconfig(gio-2.0) >= 2.66 @@ -28,7 +21,17 @@ BuildRequires: pkgconfig(gtk4) >= 4.9.5 %description Building blocks for modern GNOME applications. - +%{name} is a library developed by the GNOME project to +provide a set of user interface components for creating +modern and responsive applications. It follows the GNOME +design guidelines and supports both desktop and mobile +platforms. + +The library includes components such as buttons, switches, +text fields, menus, and more, all of which are customizable +and easily integrated into applications. The components are +designed to be accessible and support the latest accessibility +standards. %package devel Summary: Development files for %{name} @@ -62,7 +65,7 @@ Demo files for %{name}. %prep -%autosetup -p1 -n %{name}-%{tarball_version} +%autosetup -p1 -n %{name}-%{version} %build %meson \ @@ -95,9 +98,6 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.xml %{_libdir}/*-%{apiver}.so %{_libdir}/pkgconfig/*-%{apiver}.pc -%files doc -%doc HACKING.md README.md AUTHORS NEWS -%{_docdir}/%{name}-%{apiver}/ %files demo %{_bindir}/adwaita-%{apiver}-demo @@ -106,8 +106,15 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.xml %{_datadir}/icons/hicolor/*/apps/*.svg %{_metainfodir}/*.metainfo.xml +%files doc +%doc HACKING.md README.md AUTHORS NEWS +%{_docdir}/%{name}-%{apiver}/ + %changelog +* Wed Apr 12 2023 Kun(llfl) - 1.3.1-2 +- optimize spec file + * Sat Mar 18 2023 yuanhui - 1.3.1-1 - Update to 1.3.1