diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dde812a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/libadwaita-1.0.0-alpha.1.tar.gz diff --git a/libadwaita.spec b/libadwaita.spec new file mode 100644 index 0000000..29cbd15 --- /dev/null +++ b/libadwaita.spec @@ -0,0 +1,86 @@ +%global apiver 1 +%global versuf alpha.1 + +Name: libadwaita +Version: 1.0.0 +Release: 0.3.%{versuf}%{?dist} +Summary: Building blocks for modern GNOME applications + +License: LGPLv2+ +URL: https://gitlab.gnome.org/GNOME/libadwaita +Source0: %{url}/-/archive/%{version}-%{versuf}/libadwaita-%{version}-%{versuf}.tar.gz + +BuildRequires: gcc +BuildRequires: gi-docgen +BuildRequires: intltool +BuildRequires: meson >= 0.53.0 +BuildRequires: sassc +BuildRequires: vala + +BuildRequires: pkgconfig(gobject-introspection-1.0) +BuildRequires: pkgconfig(gtk4) + +%description +Building blocks for modern GNOME applications. + + +%package devel +Summary: Development files for %{name} + +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: vala +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} + +%description doc +Documentation files for %{name}. + + +%prep +%autosetup -n %{name}-%{version}-%{versuf} -p1 + + +%build +%meson \ + -Dgtk_doc=true \ + %{nil} +%meson_build + + +%install +%meson_install +%find_lang %{name} + + +%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}/ + + +%changelog +* Thu Jun 24 2021 Artem Polishchuk - 1.0.0-0.3.alpha.1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..9d6c6bb --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libadwaita-1.0.0-alpha.1.tar.gz) = 214f29ffb9f5ce2b8395564753af572d94c42b48b81872ba05a6aa1fae62a02781527b763b278b97397106336b89cf150ff0b1d4097a29a2bf9f3dcb31b8ce2f