diff --git a/README.md b/README.md index 4389f57..4862dbb 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libxmlb +A library to help create and query binary XML blobs. + diff --git a/libxmlb.spec b/libxmlb.spec new file mode 100644 index 0000000..2b73f81 --- /dev/null +++ b/libxmlb.spec @@ -0,0 +1,77 @@ +Name: libxmlb +Version: 0.1.11 +Release: 1mamba +Summary: A library to help create and query binary XML blobs +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/hughsie/libxmlb +## GITSOURCE https://github.com/hughsie/libxmlb.git 0.1.11 +Source: https://github.com/hughsie/libxmlb.git/%{version}/libxmlb-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libglib-devel +BuildRequires: libuuid-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +A library to help create and query binary XML blobs. + +%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}/libxmlb.so.* +%{_libdir}/girepository-1.0/Xmlb-1.0.typelib +%{_libexecdir}/xb-self-test +%{_libexecdir}/xb-tool +%doc LICENSE + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/libxmlb-1 +%dir %{_includedir}/libxmlb-1/libxmlb +%{_includedir}/libxmlb-1/libxmlb/*.h +%{_includedir}/libxmlb-1/xmlb.h +%{_libdir}/libxmlb.so +%{_libdir}/pkgconfig/xmlb.pc +%{_datadir}/gir-1.0/Xmlb-1.0.gir +%dir %{_datadir}/gtk-doc/html/libxmlb +%{_datadir}/gtk-doc/html/libxmlb/* +%dir %{_datadir}/installed-tests/libxmlb +%{_datadir}/installed-tests/libxmlb/* +%doc NEWS README.md + +%changelog +* Sat Jul 27 2019 Silvan Calarco 0.1.11-1mamba +- package created using the webbuild interface