diff --git a/README.md b/README.md index ccd9a30..e3cfd21 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libportal +libportal provides GIO-style async APIs for most Flatpak portals + diff --git a/libportal.spec b/libportal.spec new file mode 100644 index 0000000..6d65522 --- /dev/null +++ b/libportal.spec @@ -0,0 +1,67 @@ +Name: libportal +Version: 0.3 +Release: 1mamba +Summary: GIO-style async APIs for most Flatpak portals +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/flatpak/libportal +Source: https://github.com/flatpak/libportal.git/%{version}/libportal-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libglib-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +libportal provides GIO-style async APIs for most Flatpak portals + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +%meson +%meson_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%meson_install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libportal.so.* +%doc COPYING + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/libportal +%{_includedir}/libportal/*.h +%{_libdir}/libportal.so +%{_libdir}/pkgconfig/libportal.pc +%dir %{_datadir}/gtk-doc/html/libportal +%{_datadir}/gtk-doc/html/libportal/* +%doc NEWS README.md + +%changelog +* Tue Nov 10 2020 Silvan Calarco 0.3-1mamba +- package created using the webbuild interface